private void selectCategory() { String Comboboxvalue = comboBox1.SelectedItem.ToString(); if (Comboboxvalue == "Trips") { this.Hide(); ProfitManagement14 prof14 = new ProfitManagement14(); prof14.Show(); } if (Comboboxvalue == "Trips") { this.Hide(); ProfitManagement14 prof14 = new ProfitManagement14(); prof14.Show(); } if (Comboboxvalue == "Vehicle Repairs") { this.Hide(); ProfitManagement16 prof16 = new ProfitManagement16(); prof16.Show(); } if (Comboboxvalue == "Fuel Reciepts") { this.Hide(); ProfitManagement18 prof18 = new ProfitManagement18(); prof18.Show(); } }
public ProfitManagement17() { InitializeComponent(); ProfitManagement16 pro16 = new ProfitManagement16(); }