Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            CConnectionController.Start();

            Application.Run(new CLoginView());
            if (CFormController.LoggedIn)
            {
                Application.Run(new CMainView());
            }

            CConnectionController.Stop();
        }
Beispiel #2
0
 private void CMainView_FormClosed(object sender, FormClosedEventArgs e)
 {
     CConnectionController.Stop();
 }