private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { if (tabControl1.SelectedIndex.Equals(0)) { ItemRequest2 itemRequest = new ItemRequest2("For Confirmation"); showForm(panelConfirmation, itemRequest); } else if (tabControl1.SelectedIndex.Equals(1)) { ItemRequest2 itemRequest = new ItemRequest2("For SAP"); showForm(panelSAP, itemRequest); } else if (tabControl1.SelectedIndex.Equals(2)) { ItemRequest2 itemRequest = new ItemRequest2("Logs"); showForm(panelLogs, itemRequest); } }
private void ItemRequest_Load(object sender, EventArgs e) { ItemRequest2 itemRequest = new ItemRequest2("For Confirmation"); showForm(panelConfirmation, itemRequest); }