Ejemplo n.º 1
0
 private void addVolunteerButton_Click(object sender, RoutedEventArgs e)
 {
     Forms.VolunteerWindow g = new Forms.VolunteerWindow(true, 0);
     if (g.ShowDialog() == true)
     {
         this.ShowAll();
     }
 }
Ejemplo n.º 2
0
 private void editVolunteerButton_Click(object sender, RoutedEventArgs e)
 {
     if (VolunteerGrid.SelectedIndex != -1)
     {
         var naz = (Volunteer)VolunteerGrid.SelectedItem;
         Forms.VolunteerWindow g = new Forms.VolunteerWindow(false, naz.ID);
         g.ShowDialog();
         this.ShowAll();
     }
 }