Пример #1
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (User.type == "manager")
     {
         AdminWindow adminWindow = new AdminWindow(this, User);
         adminWindow.Show();
         this.Hide();
     }
     else
     {
         EditUsersForm limWindow = new EditUsersForm(this, User);
         limWindow.Show();
         this.Hide();
     }
 }
Пример #2
0
 public AddUserForm(AdminWindow aW, userstruct inUser)
 {
     InitializeComponent();
     prevWindow  = aW;
     currentUser = inUser;
 }