static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmLogin f1 = new FrmLogin(); if (f1.ShowDialog() == DialogResult.OK) { Application.Run(new FrmMain()); } // Application.Run(new FrmLogin()); }
private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmLogin login = new FrmLogin(); if (login.ShowDialog() == DialogResult.OK) { Application.Run(new FrmMain()); } //Application.Run(FrmRoomAndDesk.Instance); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ////FrmLogin f1 = new FrmLogin(); ////if (f1.ShowDialog() == DialogResult.OK) ////{ // // Application.Run(FrmMember.Instance); // Application.Run(new FrmLogin()); ////} FrmLogin f2 = new FrmLogin(); if (f2.ShowDialog() == DialogResult.OK) { Application.Run(new FrmMain()); } }