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; }
public List <string> LoadCategory(Company company) { return(_stockOutRepository.LoadCategory(company)); }
public DataTable LoadCategory(Item item) { return(_stockOutRepository.LoadCategory(item)); }