Esempio n. 1
0
        private void Back_Click(object sender, RoutedEventArgs e)
        {
            AdministratorManagment am = new AdministratorManagment(theBL);

            am.Show();
            this.Close();
        }
Esempio n. 2
0
        public void back_Click(object sender, RoutedEventArgs e)
        {
            AdministratorManagment am = new AdministratorManagment(theBL);

            am.Run();
            this.Close();
        }
Esempio n. 3
0
        private void User_Management_Left_Button_Click(object sender, RoutedEventArgs e)
        {
            AdministratorManagment am = new AdministratorManagment(theBL);

            am.Run();
            this.Close();
        }
 private void Back_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (theBL.getUser().role == Role.Employee)
         {
             AdministratorManagment am = new AdministratorManagment(theBL);
             am.Show();
         }
         else
         {
             ChangePasswordChoose cpc = new ChangePasswordChoose(theBL);
             cpc.Show();
         }
         this.Close();
     }
     catch
     {
         System.Windows.Forms.MessageBox.Show("Connection to server faild");
     }
 }