Beispiel #1
0
 private void Edit_Click(object sender, RoutedEventArgs e)
 {
     User selected = KontaGrid.SelectedItem as User;
     if (selected == null)
         MessageBox.Show("Nie wybrano żadnej pozycji!");
     else
     {
         User_add_edit ae = new User_add_edit(selected, 1);
         ae.ShowDialog();
         Window_Loaded(null, null);
     }
 }
Beispiel #2
0
 private void Add_Click(object sender, RoutedEventArgs e)
 {
     User_add_edit ae = new User_add_edit();
     ae.ShowDialog();
     Window_Loaded(null, null);
 }