예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            currentIp =  GetIP();
            if (currentIp=="")
            {
                Thread th = new Thread(new ThreadStart(ReconnectNet));
                th.Start();

               // OutMsg("无网络,尝试连接网络...");
            }
            AddrLabel.Text = "当前IP:" + currentIp;

            processControlor = new UIAccessProcessor(ProjectLogHandler);
              //  processControlor.SetAsynCalling(false);
            // 定义处理流程

              //  m_IoSys.InitSuperKeys();
            // 初始化设备类型
            InitDevicesType();

            totalLabel.Text = entities.count().ToString();

            SucLabel.Text = failedLabel.Text = "0";
            ParseAccount();

            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
        }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            currentIp =  GetIP();
            AddrLabel.Text = "当前IP:" + currentIp;
               // CheckImageFactory.LoginAsyn();
            processControlor = new UIAccessProcessor(ProjectLogHandler);
              //  processControlor.SetAsynCalling(false);
            // 定义处理流程

            // 解析上次剩余的号
            ParseAccount();
            ParseIPAddr();
            ParseEvent(clickEnventPath, ref eventsForClick);
            ParseEvent(dragEnventPath, ref eventsForDrag);
        }