Esempio n. 1
0
 public CIncept_Ctrl(Incept_Form inceptform, CIncept_Model inceptmodel)
 {
     this.inceptform               = inceptform;
     this.inceptmodel              = inceptmodel;
     inceptmodel.Event_SQLLink    += new CIncept_Model.D_SQLlink(OnEvent_SQLLink);
     inceptmodel.Event_ORACLELink += new CIncept_Model.D_ORACLElink(OnEvent_OraLink);
     inceptmodel.LocalDBlink();  //连接本地SQL数据库
     inceptmodel.RemoteDBlink(); //连接远程Oracle数据库
     inceptmodel.Event_DOWNLOAD    += new CIncept_Model.D_Download(inceptmodel_Event_DOWNLOAD);
     inceptmodel.Event_DOWNLOADErr += new CIncept_Model.D_DownloadErr(inceptmodel_Event_DOWNLOADErr);
 }
Esempio n. 2
0
        public Main_Form()
        {
            InitializeComponent();

            CIncept_Model inceptmodel = new CIncept_Model();

            inceptform           = new Incept_Form(inceptmodel);
            inceptform.MdiParent = this;
            splitContainer1.Panel2.Controls.Add(inceptform);
            inceptform.Dock = DockStyle.Fill;
            inceptform.Show();

            sendform           = new Send_Form();
            sendform.MdiParent = this;
            splitContainer1.Panel2.Controls.Add(sendform);
            sendform.Dock = DockStyle.Fill;
            sendform.Show();
        }