private void DeleteEmployeeBtn_Click(object sender, RoutedEventArgs e) { DeleteEmployeeWindow deleteEmployeeWindow = new DeleteEmployeeWindow(); deleteEmployeeWindow.Show(); this.Hide(); }
public DeleteEmployeeWindow() { InitializeComponent(); DeleteEmployeeWindowInstance = this; EmployeeListView.ItemsSource = EmployeeRepository.GetEmployees(); this.Closing += WindowClosed; EmployeeListView.SelectionChanged += ListViewSelectionChanged; }