static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form_Connect con = new Form_Connect(); con.ShowDialog(); if (con.DialogResult == DialogResult.OK) { Form_Login login = new Form_Login(); login.ShowDialog(); if (login.DialogResult == DialogResult.OK) Application.Run(new Form_Main()); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form_Connect con = new Form_Connect(); con.ShowDialog(); if (con.DialogResult == DialogResult.OK) { Form_Login login = new Form_Login(); login.ShowDialog(); if (login.DialogResult == DialogResult.OK) { Application.Run(new Form_Main()); } } }