Exemple #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);
 }
Exemple #2
0
 public Incept_Form(CIncept_Model inceptmodel)
 {
     InitializeComponent();
     cShowLinkState1.init();
     cShowLinkState2.init();
     SetprogressBar_Max(100);
     //SetprogressBar_Show(true);
     this.inceptmodel = inceptmodel;
     inceptctrl       = new CIncept_Ctrl(this, inceptmodel);
     Updatetimelabel(inceptmodel.settings.Downloaddate);
 }
Exemple #3
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();
        }