private void CustomerListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { Konto selectedAccount = (Konto)customerListView.SelectedItem; Modify_Window modify_window = new Modify_Window(_loggedInAccount, selectedAccount, "CUSTOMER"); this.Close(); modify_window.ShowDialog(); }
private void EmployeListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (_loggedInAccount.Role == "ADMIN") { Konto selectedAccount = (Konto)employeListView.SelectedItem; Modify_Window modify_window = new Modify_Window(_loggedInAccount, selectedAccount, "EMPLOYEE"); this.Close(); modify_window.ShowDialog(); } }