예제 #1
0
        private void LoadComboBoxes()
        {
            try
            {
                IList <GLAccount> allAccounts = GLAccountRepository.GetAll();
                IList <Terms>     allTerms    = TermsRepository.GetAll();
                _allStates = StateRepository.GetAll();

                VendorTermsComboBox.ItemsSource   = allTerms;
                VendorAccountComboBox.ItemsSource = allAccounts;
                VendorStateComboBox.ItemsSource   = _allStates;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, ex.GetType().ToString());
            }
        }
 public GLAccountController()
 {
     _glAccountRepository = new GLAccountRepository();
 }