private void btnEdit_Click(object sender, RoutedEventArgs e) { if (this.grGridView.SelectedItem != null) { var Ambulance = this.grGridView.SelectedItem as GR_Ambulances; var win = new Ambulance(Ambulance.id_ambulance); win.ShowDialog(); } }
private void btnAdd_Click(object sender, RoutedEventArgs e) { var win = new Ambulance(0); win.ShowDialog(); }