示例#1
0
        private void Model_BankAccountChanged(object sender, BankAccountsEventArgs e)
        {
            Int32 index = BankAccounts.IndexOf(BankAccounts.FirstOrDefault(bankacc => bankacc.ID == e.BankAccountsId));

            BankAccounts.RemoveAt(index);
            BankAccounts.Insert(index, _model.BankAccounts[index]);

            SelectedBankAccount = BankAccounts[index];
        }