예제 #1
0
        ///-------------------------------------------------------------------------------------------------
        /// \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;
            }
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
        ///-------------------------------------------------------------------------------------------------
        /// \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;
            }
        }
예제 #4
0
 public override void Dispose()
 {
     moveButton.Dispose();
     base.Dispose();
 }