예제 #1
0
파일: Program.cs 프로젝트: photo-bro/XFiles
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

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

            if (lgForm.DialogResult == DialogResult.OK)
                Application.Run(new Database());
        }
예제 #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();
 }