예제 #1
0
 private void PendingCreateActivityButton_OnClick(object sender, RoutedEventArgs e)
 {
     ActivityWindow newWindow = new ActivityWindow();
     newWindow.Owner = this;
     newWindow.ShowDialog();
     PopulateDataGrids();
     PopulateTechniciansGrid();
 }
예제 #2
0
 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();
 }