public Frm_Main() { InitializeComponent(); UpdateProductListInUI(); CurrentCustomer = new Customer(); CurrentProduct = new Product(); }
private void Cbo_Fruit_SelectedIndexChanged(object sender, EventArgs e) // Disables other product menus // when a fruit is selected to examine or purchase { CurrentProduct = (Product)Cbo_Fruit.SelectedItem; if (CurrentProduct.Name != BlankSelect) { Cbo_Nuts.Enabled = false; Cbo_Juice.Enabled = false; } else { Cbo_Nuts.Enabled = true; Cbo_Juice.Enabled = true; } }