private void CalendarManagement_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (back == false)
     {
         Login login = new Login();
         login.Show();
     }
     else
     {
         AdminClientFront adminClientFront = new AdminClientFront(User);
         adminClientFront.Show();
     }
 }
예제 #2
0
 private void ShowSelectedForm(UserServiceReference.User user)
 {
     if (user.Role == "Admin")
     {
         this.Hide();
         AdminClientFront adminClientFront = new AdminClientFront(user);
         adminClientFront.Show();
     }
     else if (user.Role == "Supporter")
     {
         this.Hide();
         SupporterCalendar supporterCalendar = new SupporterCalendar(user);
         supporterCalendar.Show();
     }
     else if (user.Role == "Sælger")
     {
         this.Hide();
         CreateBookingSalesman createBookingSælger = new CreateBookingSalesman(user);
         createBookingSælger.Show();
     }
 }