Beispiel #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(AanmeldenForm.GetInstance());
     //Application.Run(new MenuKaartAanpassenForm());
 }
Beispiel #2
0
        public static AanmeldenForm GetInstance()
        {
            if (Instance == null)
            {
                Instance = new AanmeldenForm();
            }

            return(Instance);
        }
        private void btnAfmelden_Click(object sender, EventArgs e)
        {
            //sluit het huidige venster en het home scherm, laat het oude aanmelden form zien.
            this.Close();
            Chapoo form = Chapoo.GetInstance();

            form.Close();

            AanmeldenForm form2 = AanmeldenForm.GetInstance();

            form2.Show();
        }