private void AddLogisticsForm_Load(object sender, EventArgs e) { htWareHouse = LogisticCtrl.listWarehouse(); comboBox1.Items.Clear(); foreach (DictionaryEntry de in htWareHouse) { comboBox1.Items.Add((string)de.Key); } LogisticCtrl.loadProduct(null, listView1); LogisticCtrl.loadCompany(listView2); LogisticCtrl.loadReadyToChoose(listView4); choose.Clear(); }
private void Button1_Click(object sender, EventArgs e) { string warehouseNo = (string)htWareHouse[comboBox1.Text]; LogisticCtrl.loadProduct(warehouseNo, listView1); }