private void PendingCreateActivityButton_OnClick(object sender, RoutedEventArgs e) { ActivityWindow newWindow = new ActivityWindow(); newWindow.Owner = this; newWindow.ShowDialog(); PopulateDataGrids(); PopulateTechniciansGrid(); }
private void EditActivityButton_OnClick(object sender, RoutedEventArgs e) { if (PendingDataGrid.SelectedItem == null) return; var newWindow = new ActivityWindow((ActivityViewModel)PendingDataGrid.SelectedItem); newWindow.Owner = this; newWindow.ShowDialog(); PopulateDataGrids(); PopulateTechniciansGrid(); }