コード例 #1
0
        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
            {
            }
        }
コード例 #2
0
        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
            {
            }
        }
コード例 #3
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmComplainMasterData fcm = new frmComplainMasterData(master, tabControl);

            master.AddNewTab(fcm);
        }