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

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

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

            am.Run();
            this.Close();
        }
Exemplo n.º 4
0
 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");
     }
 }