Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Login lgForm = new Login();
            Application.Run(lgForm);

            if (lgForm.DialogResult == DialogResult.OK)
                Application.Run(new Database());
        }
Exemplo n.º 2
0
 /// <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();
 }