Ejemplo n.º 1
0
 private void Edit_Click(object sender, RoutedEventArgs e)
 {
     Views.UsersView user = (Views.UsersView)UsersDataGrid.SelectedItem;
     if (user != null)
     {
         cuw = new Windows.CUWindow(Windows.CUWindow.ePage.Users, Windows.CUWindow.eMode.Update, user);
         cuw.Show();
     }
     else
     {
         MessageBox.Show("Select an item!");
     }
 }
Ejemplo n.º 2
0
 private void Delete_Click(object sender, RoutedEventArgs e)
 {
     Views.UsersView user = (Views.UsersView)UsersDataGrid.SelectedItem;
     DatabaseConnector.DatabaseConnector.DeleteUser(user);
     bindingList.Remove(user);
 }