Beispiel #1
0
        private void label1_Click(object sender, EventArgs e)
        {
            SA1 sa1 = new SA1();

            sa1.Show();
            this.Hide();
        }
Beispiel #2
0
        public bool Judgment()
        {
            UserManager uManager = new UserManager();

            if (USER != null)
            {
                if (User() > 0)
                {
                    S1 adminSearchPage = new S1();
                    adminSearchPage.Show();
                }
                else if (User() < 0)
                {
                    SA1 superAdminSearchPage = new SA1();
                    superAdminSearchPage.Show();
                }
                else
                {
                    User1 userSearchPage = new User1();
                    userSearchPage.Show();
                }
                return(true);
            }
            else
            {
                return(false);
            }
        }