private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { if (tabControl1.SelectedIndex.Equals(0)) { AdjustmentIn2 adIn = new AdjustmentIn2(gAdjType, "For SAP"); showForm(panelForSAP, adIn); } else if (tabControl1.SelectedIndex.Equals(1)) { AdjustmentIn2 adIn = new AdjustmentIn2(gAdjType, "Done"); showForm(panelDone, adIn); } }
private void AdjustmentIn_Load(object sender, EventArgs e) { AdjustmentIn2 adIn = new AdjustmentIn2(gAdjType, "For SAP"); showForm(panelForSAP, adIn); }