private void addVolunteerButton_Click(object sender, RoutedEventArgs e) { Forms.VolunteerWindow g = new Forms.VolunteerWindow(true, 0); if (g.ShowDialog() == true) { this.ShowAll(); } }
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(); } }