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