private void Back_Click(object sender, RoutedEventArgs e) { AdministratorManagment am = new AdministratorManagment(theBL); am.Show(); 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"); } }