コード例 #1
0
        private void StockOutForm_Load(object sender, EventArgs e)
        {
            //Load Company
            DataTable companydt = new DataTable();

            companydt = stockOutRepository.LoadCompany();
            compannyBindingSource.DataSource   = companydt;
            companyComboBox.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            companyComboBox.AutoCompleteSource = AutoCompleteSource.ListItems;

            //Load Category
            DataTable categoryDt = new DataTable();

            categoryDt = stockOutRepository.LoadCategory();
            categoryBindingSource.DataSource    = categoryDt;
            categoryComboBox.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            categoryComboBox.AutoCompleteSource = AutoCompleteSource.ListItems;
        }
コード例 #2
0
 public List <string> LoadCategory(Company company)
 {
     return(_stockOutRepository.LoadCategory(company));
 }
コード例 #3
0
 public DataTable LoadCategory(Item item)
 {
     return(_stockOutRepository.LoadCategory(item));
 }