Ejemplo n.º 1
0
        private void tsmiDestroy_Click(object sender, EventArgs e)
        {
            CreatTabPage("tpDestroy", "死亡处理");


            //formResidentBaseInfo formb = new formResidentBaseInfo();
            //formb.TopLevel = false;
            //formb.FormBorderStyle = FormBorderStyle.None;
            ////panel1.Controls.Add(formb);


            userCtlResidentBaseInfo mForm = new userCtlResidentBaseInfo();

            mForm.Dock = DockStyle.Fill;
            //this.panel.Controls.Add(mForm);

            Panel p = new Panel();

            p.Dock      = DockStyle.Fill;
            p.BackColor = Color.Blue;
            p.Controls.Add(mForm);
            //formb.Parent = p;

            TabPage thistPage = new TabPage();

            thistPage = this.xTabs.SelectedTab;
            thistPage.Controls.Add(p);
        }
Ejemplo n.º 2
0
        private void tsmiBaseinfo_Click(object sender, EventArgs e)
        {
            CreatTabPage("tpBaseinfo", "基本信息");
            //Fill_TabPage();
            //creatTreeData();


            userCtlResidentBaseInfo uCtlResidentBaseInfo = new userCtlResidentBaseInfo();

            uCtlResidentBaseInfo.Dock = DockStyle.Fill;

            Panel panel = new Panel();

            panel.Dock = DockStyle.Fill;
            panel.Controls.Add(uCtlResidentBaseInfo);
            //formb.Parent = p;

            TabPage thistPage = new TabPage();

            thistPage = this.xTabs.SelectedTab;
            thistPage.Controls.Add(panel);

            //HttpAdapter.getSyncTo(GovVar.DataPointOfManage + "/Oca/OldManBaseInfoService",
            //   (ret, res) =>
            //   {
            //       bool succ = true;
            //       if (succ)
            //       {
            //           int a = 1;
            //       }
            //   });
            //HttpAdapter.getSyncTo(GovVar.DataPointOfManage + "/Oca/OldManBaseInfoService/5DF32BCB-9E8A-4354-9139-001856265FE8",
            //   (ret, res) =>
            //   {
            //       bool succ = true;
            //       if (succ)
            //       {
            //           int a = 1;
            //       }
            //   });
        }