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