Пример #1
0
 public CompanyMaster(Itementry itementry)
 {
     // TODO: Complete member initialization
     InitializeComponent();
     this.itementry = itementry;
     loaddata();
     a = 1;
 }
Пример #2
0
 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;
 }
Пример #3
0
 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);
     }
 }
Пример #4
0
        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;
            }
        }