public void open() { try { try { this.Enabled = false; iid = LV.Items[LV.FocusedItem.Index].SubItems[0].Text; frmComplainMasterData dlg = new frmComplainMasterData(master, tabControl); dlg.Update(1, iid); master.AddNewTab(dlg); // dlg.Show(); } finally { this.Enabled = true; } } catch { } }
public void lvcompany1() { try { try { this.Enabled = false; lvcompany = lvcomplain.Items[lvcomplain.FocusedItem.Index].SubItems[0].Text; frmComplainMasterData dlg = new frmComplainMasterData(master, tabControl); dlg.Update(1, lvcompany); master.AddNewTab(dlg); // dlg.Show(); } finally { this.Enabled = true; } } catch { } }
private void btnAdd_Click(object sender, EventArgs e) { frmComplainMasterData fcm = new frmComplainMasterData(master, tabControl); master.AddNewTab(fcm); }