Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            frmUsers frmUsers = new frmUsers();

            this.Hide();
            frmUsers.ShowDialog();
            Application.ExitThread();
        }
Exemple #2
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());
            }
        }