///------------------------------------------------------------------------------------------------- /// \fn public override void ShowAsNotSelected() /// /// \brief Shows as not selected ///------------------------------------------------------------------------------------------------- public override void ShowAsNotSelected() { base.ShowAsNotSelected(); try { adjustButton.Visible = moveButton.Visible = false; adjustButton.Dispose(); moveButton.Dispose(); } catch (NullReferenceException) { ; } finally { adjustButton = null; moveButton = null; } }
void ReleaseDesignerOutlets() { if (DirectionValueLabel != null) { DirectionValueLabel.Dispose(); DirectionValueLabel = null; } if (LeftButton != null) { LeftButton.Dispose(); LeftButton = null; } if (MoveButton != null) { MoveButton.Dispose(); MoveButton = null; } if (RightButton != null) { RightButton.Dispose(); RightButton = null; } if (XCoordinateValueLabel != null) { XCoordinateValueLabel.Dispose(); XCoordinateValueLabel = null; } if (YCoordinateValueLabel != null) { YCoordinateValueLabel.Dispose(); YCoordinateValueLabel = null; } }
///------------------------------------------------------------------------------------------------- /// \fn public override void ShowAsNotSelected() /// /// \brief Shows as not selected ///------------------------------------------------------------------------------------------------- public override void ShowAsNotSelected() { base.ShowAsNotSelected(); try { foreach (AdjustButton item in adjustButtons) { item.Visible = false; item.Dispose(); } moveButton.Visible = false; moveButton.Dispose(); } catch (NullReferenceException) { ; } finally { adjustButtons.Clear(); moveButton = null; } }
public override void Dispose() { moveButton.Dispose(); base.Dispose(); }