void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (ContentText != null) { ContentText.Dispose(); ContentText = null; } if (CustomView != null) { CustomView.Dispose(); CustomView = null; } if (HeaderLabel != null) { HeaderLabel.Dispose(); HeaderLabel = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } }
void ReleaseDesignerOutlets() { if (SearchFieldCell != null) { SearchFieldCell.Dispose(); SearchFieldCell = null; } if (BackForwardToolBarItem != null) { BackForwardToolBarItem.Dispose(); BackForwardToolBarItem = null; } if (ConnectionToolBarItem != null) { ConnectionToolBarItem.Dispose(); ConnectionToolBarItem = null; } if (CustomView != null) { CustomView.Dispose(); CustomView = null; } if (LoggedInLabel != null) { LoggedInLabel.Dispose(); LoggedInLabel = null; } if (RefreshToolBarItem != null) { RefreshToolBarItem.Dispose(); RefreshToolBarItem = null; } if (SearchToolBarItem != null) { SearchToolBarItem.Dispose(); SearchToolBarItem = null; } if (ShowServerInfoToolBarItem != null) { ShowServerInfoToolBarItem.Dispose(); ShowServerInfoToolBarItem = null; } }
public void CustomViewConstructor() { tlog.Debug(tag, $"CustomViewConstructor START"); ViewStyle style = new ViewStyle() { Padding = new Extents(3, 3, 3, 3), }; var testingTarget = new CustomView("CustomView", CustomViewBehaviour.ViewBehaviourDefault, style); Assert.IsNotNull(testingTarget, "Can't create success object CustomView"); Assert.IsInstanceOf <CustomView>(testingTarget, "Should be an instance of CustomView type."); testingTarget.Dispose(); tlog.Debug(tag, $"CustomViewConstructor END (OK)"); }
void ReleaseDesignerOutlets() { if (CustomView != null) { CustomView.Dispose(); CustomView = null; } if (ToggleButton != null) { ToggleButton.Dispose(); ToggleButton = null; } if (PanelButton != null) { PanelButton.Dispose(); PanelButton = null; } }
public void CustomViewFocusNavigationSupport() { tlog.Debug(tag, $"CustomViewFocusNavigationSupport START"); ViewStyle style = new ViewStyle() { Padding = new Extents(3, 3, 3, 3), }; var testingTarget = new CustomView("CustomView", CustomViewBehaviour.ViewBehaviourDefault, style); Assert.IsNotNull(testingTarget, "Can't create success object CustomView"); Assert.IsInstanceOf <CustomView>(testingTarget, "Should be an instance of CustomView type."); Assert.AreEqual(false, testingTarget.FocusNavigationSupport, "Should be equal!"); testingTarget.FocusNavigationSupport = true; Assert.AreEqual(true, testingTarget.FocusNavigationSupport, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"CustomViewFocusNavigationSupport END (OK)"); }