Exemple #1
0
 //When the user selects a row in the datagrid
 private void dgv_ProcessControl_SelectionChanged(object sender, SelectedCellsChangedEventArgs e)
 {
     if (Production.ProcessControlSearchControl.ResultsGrid.SelectedItem != null)
     {
         EditingProcessControlInfomation = (Production.ProcessControlSearchControl.ResultsGrid.SelectedItem as ERP_ProcessControl).Clone() as ERP_ProcessControl;
     }
 }
Exemple #2
0
 //This is a event which fires whenever newitems arrive at the datagrid
 private void ItemSourceChanged(object sender, EventArgs e)
 {
     ProcessControlInformation = Production.ProcessControlSearchControl.ResultsGrid.ItemsSource as ObservableCollection <ERP_ProcessControl>;
     Production.ProcessControlGrid.DataContext = ProcessControlInformation;
     if (ProcessControlInformation.Count > 0)
     {
         EditingProcessControlInfomation = ProcessControlInformation[0].Clone();
     }
 }