public static AccountsListDS FillData()
        {
            AccountsListDS _dsDestination = new AccountsListDS();

              using (vAccountsTableAdapter _taSource = new vAccountsTableAdapter())
                {
                    accountingDataSet.vAccountsDataTable _tblSource = _taSource.GetData();

                    foreach (accountingDataSet.vAccountsRow row in _tblSource.Rows)
                    {
                        _dsDestination.Tables["Account"].Rows.Add(new object[]{
                        row.__accountId_,
                        row.__title_
                    });
                    }
                }
            return _dsDestination;
        }
Example #2
0
 private void GetAccountsList()
 {
     dsAccounts = AccountsListDataSetFiller.FillData();
     accountBindingSource.DataSource = dsAccounts;
 }