private void InventoryUI_Load(object sender, EventArgs e) { myShop = myShop.ProductDeserialize(); var modelNames = myShop.AccessModel(); cboModel.Items.AddRange(modelNames); }
private void Sales_Load(object sender, EventArgs e) { myShop.SalesDeserialize(ref myShop); dgvSale.DataSource = myShop.SaleList; myShop = myShop.ProductDeserialize(); var modelNames = myShop.AccessModel(); cboModels.Items.AddRange(modelNames); }