Exemple #1
0
 static void Main()
 {
     //Application.EnableVisualStyles();
     CModel model = new CModel();
     CCtrl  ctrl  = new CCtrl(model);
     // Application.SetCompatibleTextRenderingDefault(false);
     // Application.Run(new Main_Form());
 }
Exemple #2
0
        public CCtrl(CModel model)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            this.model = model;
            model.Event_RemoteSQLLink += new CModel.D_RemoteSQLLink(model_Event_ORACLELink);

            Server = new CNetServer();
            Server.Event_Devlogin   += new CNetServer.D_DEVLOGIN(Server_Event_Devlogin);
            Server.Event_Devlogout  += new CNetServer.D_DEVLOGOUT(Server_Event_Devlogout);
            Server.Event_Devnetdata += new CNetServer.D_DEVNETDATA(Server_Event_Devnetdata);
            settings = ModuleConfig.GetSettings();
            //displaycomm = new CDisplaycomm(settings);
            //displaycomm.ShowText("欢迎来到大成驾校考试!");
            mainform = new Main_Form(this, this.model);
            Application.Run(mainform);
            // model.RemoteDBlink();
        }
Exemple #3
0
 public Main_Form(CCtrl ctrl, CModel model)
 {
     InitializeComponent();
     this.ctrl  = ctrl;
     this.model = model;
 }