static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Login lgForm = new Login(); Application.Run(lgForm); if (lgForm.DialogResult == DialogResult.OK) Application.Run(new Database()); }
/// <summary> /// Show Login form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void loginToolStripMenuItem_Click(object sender, EventArgs e) { m_xFacade.DisconnectDatabase(); Login lgForm = new Login(); lgForm.Show(); }