Esempio n. 1
0
        void ReleaseDesignerOutlets()
        {
            if (btnGetCourtDate != null)
            {
                btnGetCourtDate.Dispose();
                btnGetCourtDate = null;
            }

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

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

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

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

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