示例#1
0
 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());
     }
 }
示例#2
0
        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());
            }
        }