public CompanyMaster(Itementry itementry) { // TODO: Complete member initialization InitializeComponent(); this.itementry = itementry; loaddata(); a = 1; }
public TaxSlab(Itementry itementry, TabControl tabControl, Master master, string activecontroal) { // TODO: Complete member initialization InitializeComponent(); this.itementry = itementry; this.tabControl = tabControl; this.master = master; a = 1; pvc = activecontroal; }
private void btnnew_Click(object sender, EventArgs e) { try { Itementry dlg = new Itementry(master, tabControl); master.AddNewTab(dlg); //dlg.MdiParent = this.MdiParent; //dlg.StartPosition = FormStartPosition.CenterScreen; //this.Hide(); //dlg.Show(); } catch (Exception ex) { // MessageBox.Show("Error: " + ex.Message); } }
public void open() { try { this.Enabled = false;//optional, better target a panel or specific controls iid = LVclient.Items[LVclient.FocusedItem.Index].SubItems[0].Text; Itementry dlg = new Itementry(master, tabControl); dlg.Update(1); master.AddNewTab(dlg); } finally { this.Enabled = true; } }