Exemplo n.º 1
0
 //When the user selects a row in the datagrid
 private void dgv_EmployeeCDWD_SelectionChanged(object sender, SelectedCellsChangedEventArgs e)
 {
     if (employee.CDWDSearchControl.ResultsGrid.SelectedItem != null)
     {
         EditingEmployeeCDWDInfo = (employee.CDWDSearchControl.ResultsGrid.SelectedItem as HR_EMPLOYEE_CDWD).Clone() as HR_EMPLOYEE_CDWD;
     }
 }
Exemplo n.º 2
0
 //This is a event which fires whenever newitems arrive at the datagrid
 private void ItemSourceChanged(object sender, EventArgs e)
 {
     EmployeeCDWDInformation = employee.CDWDSearchControl.ResultsGrid.ItemsSource as ObservableCollection <HR_EMPLOYEE_CDWD>;
     employee.CDWDSearchControl.DataContext = EmployeeCDWDInformation;
     if (EmployeeCDWDInformation.Count > 0)
     {
         EditingEmployeeCDWDInfo = EmployeeCDWDInformation[0].Clone();
     }
 }