コード例 #1
0
        private void AnotherWorker_Click(object sender, RoutedEventArgs e)
        {
            ChangePasswordWindow cpw = new ChangePasswordWindow(theBL, 1);

            cpw.Run();
            this.Close();
        }
コード例 #2
0
        private void YourPassword_Click(object sender, RoutedEventArgs e)
        {
            ChangePasswordWindow cpw = new ChangePasswordWindow(theBL, 0);

            cpw.Run();
            this.Close();
        }
コード例 #3
0
 private void ChangePassword_Button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (theBL.getUser().role == Role.Employee)
         {
             ChangePasswordWindow cpw = new ChangePasswordWindow(theBL, 0);
             cpw.Run();
         }
         else
         {
             ChangePasswordChoose cpc = new ChangePasswordChoose(theBL);
             cpc.Run();
         }
         this.Close();
     }
     catch
     {
         System.Windows.Forms.MessageBox.Show("Connection to server faild");
     }
 }