static void Main() { //Application.EnableVisualStyles(); CModel model = new CModel(); CCtrl ctrl = new CCtrl(model); // Application.SetCompatibleTextRenderingDefault(false); // Application.Run(new Main_Form()); }
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(); }
public Main_Form(CCtrl ctrl, CModel model) { InitializeComponent(); this.ctrl = ctrl; this.model = model; }