private void StockIn_Load(object sender, EventArgs e)
        {
            CompanyNameComboBox.Items.Clear();
            CategoryNameComboBox.Items.Clear();
            ItemNameComboBox.Items.Clear();

            companyList  = ViewItemController.GetCompanyList();
            categoryList = ViewItemController.GetCategoryList();
            itemList     = ItemController.GetItemNameList("SELECT Name FROM ItemInfo");

            foreach (var company in companyList)
            {
                CompanyNameComboBox.Items.Add(company.ToString());
            }

            foreach (var category in categoryList)
            {
                CategoryNameComboBox.Items.Add(category.ToString());
            }
        }
Esempio n. 2
0
        private void ViewItems_Load(object sender, EventArgs e)
        {
            List <string> companyList  = new List <string>();
            List <string> categoryList = new List <string>();

            CompanyNameComboBox.Items.Clear();
            CategoryNameComboBox.Items.Clear();

            companyList  = ViewItemController.GetCompanyList();
            categoryList = ViewItemController.GetCategoryList();

            foreach (var item in companyList)
            {
                CompanyNameComboBox.Items.Add(item.ToString());
            }

            foreach (var item in categoryList)
            {
                CategoryNameComboBox.Items.Add(item.ToString());
            }
        }