Example #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //(new LoginForm()).Show();
            //Application.Run();

            Application.Run(new LoginForm());

            //(new AdministrationForm()).Show();a

            if (Commons.LOGINUSERID == "admin")
            {
                AdministrationForm fr = new AdministrationForm();
                Application.Run(fr);
                //fr.Show();
                fr.ShowInTaskbar = true;
            }
            else
            {
                ProductForm pf = new ProductForm();
                Application.Run(pf);
                pf.ShowInTaskbar = true;
            }


            //QueFrom1 queForm = new QueFrom1();
            //Application.Run(queForm);

            //Form2 form2 = new Form2();
            //Application.Run(form2);

            //All_Products all_Products = new All_Products();
            //Application.Run(all_Products);
        }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new LoginForm());

            if (Commons.LOGINUSERID == "admin")
            {
                AdministrationForm fr = new AdministrationForm();
                Application.Run(fr);
                fr.ShowInTaskbar = true;
            }
            else
            {
                ProductForm pf = new ProductForm();
                Application.Run(pf);
                pf.ShowInTaskbar = true;
            }
        }