Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string a = mainForm.txtIp.Text;

            //sys_user user = new sys_user();
            //user.UName = "";
            //string err = CheckAttribute.CheckField(user);
            ProcessSevice.Start(new DataProcess.ICEFactory(), 5823);
        }
Esempio n. 2
0
        private Helper()
        {
            Thread th1 = new Thread((ThreadStart) delegate { this.Process(); });

            th1.Name         = "DataProcess";
            th1.IsBackground = true;
            th1.Start();
            //
            try
            {
                ProcessSevice.Start(new ICEFactory(), Config.ListenPort);
            }
            catch (Exception ex)
            {
                FileLog.Error("启动通讯服务错误:" + ex.Message + ex.StackTrace);
            }
        }