private void AnotherWorker_Click(object sender, RoutedEventArgs e) { ChangePasswordWindow cpw = new ChangePasswordWindow(theBL, 1); cpw.Run(); this.Close(); }
private void YourPassword_Click(object sender, RoutedEventArgs e) { ChangePasswordWindow cpw = new ChangePasswordWindow(theBL, 0); cpw.Run(); this.Close(); }
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"); } }