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); } }
private void label1_Click(object sender, EventArgs e) { S1 s1 = new S1(); s1.Show(); this.Hide(); }