Exemple #1
0
        private void 数据库设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_config f           = new Frm_config();
            string     tabPageText = f.Text;
            EmbedForm  embedForm   = new EmbedForm();

            embedForm.openForm(f, tabPageText, tabControl1, panel1);
        }
Exemple #2
0
        private void 客户档案ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_customer frm_Customer = new Frm_customer();
            string       tabPageText  = frm_Customer.Text;
            EmbedForm    embedForm    = new EmbedForm();

            embedForm.openForm(frm_Customer, tabPageText, tabControl1, panel1);
        }
Exemple #3
0
        private void 废料档案ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_scrapItem frm_Scrap   = new Frm_scrapItem();
            string        tabPageText = frm_Scrap.Text;
            EmbedForm     embedForm   = new EmbedForm();

            embedForm.openForm(frm_Scrap, tabPageText, tabControl1, panel1);
        }
Exemple #4
0
        private void 车牌档案ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_vehicleBrand v           = new Frm_vehicleBrand();
            string           tabPageText = v.Text;
            EmbedForm        embedForm   = new EmbedForm();

            embedForm.openForm(v, tabPageText, tabControl1, panel1);
        }
Exemple #5
0
        private void 过磅登记ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_weighingSettltement w = new Frm_weighingSettltement();
            string    tabPageText     = w.Text;
            EmbedForm embedForm       = new EmbedForm();

            embedForm.openForm(w, tabPageText, tabControl1, panel1);
        }
Exemple #6
0
        private void 过磅单列表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_weighingList frm_weighingList = new Frm_weighingList();
            string           tabPageText      = frm_weighingList.Text;
            EmbedForm        embedForm        = new EmbedForm();

            embedForm.openForm(frm_weighingList, tabPageText, tabControl1, panel1);
        }
Exemple #7
0
        private void 收入登记ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_income frm_income  = new Frm_income();
            string     tabPageText = frm_income.Text;
            EmbedForm  embedForm   = new EmbedForm();

            embedForm.openForm(frm_income, tabPageText, tabControl1, panel1);
        }
Exemple #8
0
        private void 结算系数调整单ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_coefficient frm_Coefficient = new Frm_coefficient();
            string          tabPageText     = frm_Coefficient.Text;
            EmbedForm       embedForm       = new EmbedForm();

            embedForm.openForm(frm_Coefficient, tabPageText, tabControl1, panel1);
        }
Exemple #9
0
        private void 经办人档案ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_person frm_person  = new Frm_person();
            string     tabPageText = frm_person.Text;
            EmbedForm  embedForm   = new EmbedForm();

            embedForm.openForm(frm_person, tabPageText, tabControl1, panel1);
        }
Exemple #10
0
        /// <summary>
        /// 动态实例化窗体
        /// </summary>
        /// <param name="e"></param>
        private void createForm(TreeViewEventArgs e)
        {
            ObjectHandle objectHandle = Activator.CreateInstance(null, e.Node.Name);

            Form   f           = (Form)objectHandle.Unwrap();
            string tabPageText = f.Text;
            //实例化窗体后,嵌入主窗体
            EmbedForm embedForm = new EmbedForm();

            embedForm.openForm(f, tabPageText, tc_content, sc_main.Panel2);
        }