Ejemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (BluetoothButton != null)
            {
                BluetoothButton.Dispose();
                BluetoothButton = null;
            }

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

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

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

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

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

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

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

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

            if (TopBar != null)
            {
                TopBar.Dispose();
                TopBar = null;
            }
        }
Ejemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (BatteryLevel1 != null)
            {
                BatteryLevel1.Dispose();
                BatteryLevel1 = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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