Пример #1
0
 private void addRegistationForAVolunteerButton_Click(object sender, RoutedEventArgs e)
 {
     Forms.RegistrationForAVolunteerWindow g = new Forms.RegistrationForAVolunteerWindow(true);
     if (g.ShowDialog() == true)
     {
         this.ShowAll();
     }
 }
Пример #2
0
 private void editRegistationForAVolunteerButton_Click(object sender, RoutedEventArgs e)
 {
     if (registrationforavolunteerGrid.SelectedIndex != -1)
     {
         var naz = (WpfApplicationEntity.API.Registration_for_a_volunteer)registrationforavolunteerGrid.SelectedItem;
         Forms.RegistrationForAVolunteerWindow g = new Forms.RegistrationForAVolunteerWindow(false, naz.ID);
         g.ShowDialog();
         this.ShowAll();
     }
 }