示例#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;
            }
        }
示例#2
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     FormLogin formlogin = new FormLogin();
 }