public void open() { try { try { this.Enabled = false; iid = LV.Items[LV.FocusedItem.Index].SubItems[0].Text; frmReceiveFromCompany dlg = new frmReceiveFromCompany(master, tabControl); dlg.Update(1, iid); master.AddNewTab(dlg); // dlg.Show(); } finally { this.Enabled = true; } } catch { } }
public void receivefrocompany() { try { try { this.Enabled = false; lvrevcompany = lvreceivefromcompany.Items[lvreceivefromcompany.FocusedItem.Index].SubItems[0].Text; frmReceiveFromCompany dlg = new frmReceiveFromCompany(master, tabControl); dlg.Update(1, lvrevcompany); master.AddNewTab(dlg); // dlg.Show(); } finally { this.Enabled = true; } } catch { } }