private void WardEdit(object sender, RoutedEventArgs e) { if (WardDG.SelectedItems.Count > 0) { UserControl_AddWard myWindow = new UserControl_AddWard((Ward)WardDG.SelectedItem, this); myWindow.ShowDialog(); } }
private void WardAdd(object sender, RoutedEventArgs e) { UserControl_AddWard myWindow = new UserControl_AddWard(this); myWindow.ShowDialog(); }