示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            frmLogin frmL = new frmLogin();


            frmUsers frmUsers = new frmUsers();

            frmGoods frmGoods = new frmGoods();

            Application.Run(frmL);

            if (frmL.LoginOk == true)
            {
                Application.Run(new frmMain());
            }

            if (frmL.LoginYes == true)
            {
                Application.Run(new frmUserMain());
            }
        }