public MainForm() { this.InitializeComponent(); this.ReadInitializeFile(); this.lbl_processCode.Text = Common.process_code + " " + Common.line_part; ComTimer.Interval = 500; ComTimer.Start(); string resContent = HttpRequester.Login(); this.checkResContent(resContent); recSocket = new RecSocket(this); Thread socketThread = new Thread(new ThreadStart(recSocket.ListenMethod)); socketThread.Name = "SocketThread"; socketThread.IsBackground = true; socketThread.Start(); ComRefreshTimer.Start(); ComConnector.InitTaskQueue(); }