Beispiel #1
0
        public void Dispose()
        {
            frm?.Dispose();

            btn.ItemClick -= OnItemClick;
            btn.Dispose();
        }
Beispiel #2
0
 public void RemoveUglyButton()
 {
     barManager.Bars["StatusBar"].RemoveLink(hackButton);
     hackButton.Dispose();
     m_hackButtonItem.Dispose();
 }
Beispiel #3
0
        void ReleaseDesignerOutlets()
        {
            if (BannerLogo != null)
            {
                BannerLogo.Dispose();
                BannerLogo = null;
            }

            if (BarButtonItem != null)
            {
                BarButtonItem.Dispose();
                BarButtonItem = null;
            }

            if (BarButtonItem2 != null)
            {
                BarButtonItem2.Dispose();
                BarButtonItem2 = null;
            }

            if (BarButtonItem3 != null)
            {
                BarButtonItem3.Dispose();
                BarButtonItem3 = null;
            }

            if (BarButtonItem4 != null)
            {
                BarButtonItem4.Dispose();
                BarButtonItem4 = null;
            }

            if (BarButtonItem5 != null)
            {
                BarButtonItem5.Dispose();
                BarButtonItem5 = null;
            }

            if (MainTitle != null)
            {
                MainTitle.Dispose();
                MainTitle = null;
            }

            if (MainView != null)
            {
                MainView.Dispose();
                MainView = null;
            }

            if (MapType_Segmented != null)
            {
                MapType_Segmented.Dispose();
                MapType_Segmented = null;
            }

            if (MapView != null)
            {
                MapView.Dispose();
                MapView = null;
            }

            if (Pause_Button != null)
            {
                Pause_Button.Dispose();
                Pause_Button = null;
            }

            if (SoundBar != null)
            {
                SoundBar.Dispose();
                SoundBar = null;
            }

            if (Start_Button != null)
            {
                Start_Button.Dispose();
                Start_Button = null;
            }

            if (Stop_Button != null)
            {
                Stop_Button.Dispose();
                Stop_Button = null;
            }
        }