Ejemplo n.º 1
0
 //When the user selects a row in the datagrid
 void SearchControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (bank.BankAccountSearchControl.ResultsGrid.SelectedItem != null)
     {
         EditingBankAccount = (bank.BankAccountSearchControl.ResultsGrid.SelectedItem as FIN_BankAccount).Clone();
     }
 }
Ejemplo n.º 2
0
 //This is a event which fires whenever newitems arrive at the datagrid
 private void ItemSourceChanged(object sender, EventArgs e)
 {
     BankAccounts = bank.BankAccountSearchControl.ResultsGrid.ItemsSource as ObservableCollection <FIN_BankAccount>;
     bank.BankAccountGrid.DataContext = BankAccounts;
     if (BankAccounts.Count > 0)
     {
         EditingBankAccount = BankAccounts[0].Clone();
     }
 }