Beispiel #1
0
        static void Main()
        {
            ////MissDataSerial mcc = new MissDataSerial(300);
            ////mcc.OpList = new[] { 0, 2, 3, 1, 200, 90, 1, 1, 1, 1, 0 }.ToList();
            ////for(int i=1;i<10;i++)
            ////{
            ////    mcc = mcc.getAdd(i%10==0?1:0);
            ////}
            //return;
            Main1();
            return;

            Application.Run(new frm_ImageTextRead());
            return;

            //////////测试读取数据
            //////////GlobalObj gb = new GlobalObj();
            ////////GlobalClass gc = new GlobalClass();
            ////////string str = GlobalClass.dbName;//触发静态
            ////////KL12_HtmlDataClass hd = new KL12_HtmlDataClass(GlobalClass.TypeDataPoints["SCKL12"]);
            ////////ExpectList<TimeSerialData> el = hd.getExpectList<TimeSerialData>();
            ////////return;
            splitFile("share", "function(", '}');
            //return;
            LogableClass.ToLog("初始化服务器全局设置", "开始");
            InitSystem <TimeSerialData>();
            LogableClass.ToLog("启动通道", "开始");
            new CommuniteClass().StartIPCServer();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            GlobalObj gb = new GlobalObj();
            ////gb.w = new WindAPI();
            ////gb.w.start();
            ReceiveService <TimeSerialData> rc = new ReceiveService <TimeSerialData>();

            rc.Start();
            Form2 frm = new Form2(gb);

            Application.Run(frm);
        }
Beispiel #2
0
        static void Main1()
        {
            //splitFile("share", "function(", '}');
            //return;
            LogableClass.ToLog("初始化服务器全局设置", "开始");
            InitSystem <TimeSerialData>();
            LogableClass.ToLog("启动通道", "开始");
            new CommuniteClass().StartIPCServer();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            GlobalObj gb = new GlobalObj();
            ////gb.w = new WindAPI();
            ////gb.w.start();
            ReceiveService <TimeSerialData> rc = new ReceiveService <TimeSerialData>();

            rc.setGlobalClass(AllServiceConfig.gc);
            rc.CalcProcess = new CalcService <TimeSerialData>();
            rc.Start();
            Form2 frm = new Form2(gb);

            Application.Run(frm);
        }