示例#1
0
        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();
        }
示例#2
0
 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();
     }
 }