if (__pSearchBar)
{
SetContent(null);
+ if (__pSearchBar->GetClippedGroupControl())
+ {
+ _Control* pControl = __pSearchBar->GetClippedGroupControl();
+ pControl->DetachAllChildren();
+ }
+ }
+
+ if (__pEditField)
+ {
+ delete __pEditField;
+ __pEditField = null;
+ }
+
+ if (__pButton)
+ {
+ delete __pButton;
+ __pButton = null;
}
if (__pPublicActionEvent)
__pPublicSearchBarEvent = null;
}
- if (__pSearchBar)
- {
- if (__pSearchBar->GetClippedGroupControl())
- {
- _Control* pControl = __pSearchBar->GetClippedGroupControl();
- pControl->DetachAllChildren();
- }
- }
-
- if (__pEditField)
- {
- delete __pEditField;
- __pEditField = null;
- }
-
- if (__pButton)
+ if (__pPublicLanguageEvent)
{
- delete __pButton;
- __pButton = null;
+ delete __pPublicLanguageEvent;
+ __pPublicLanguageEvent = null;
}
if (__pPublicFocusEventListeners)