Esempio n. 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FormLogin fl = new FormLogin();

            fl.ShowDialog();
            if (fl.DialogResult == DialogResult.Cancel)
            {
                Application.Run(new FormMain());
            }
            else
            {
                return;
            }
        }
Esempio n. 2
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     FormLogin formlogin = new FormLogin();
 }