public Form1() { //CS.Start(this); CC.setForm(this); InitializeComponent(); ShowTextDele = new ShowTD(ShowText); }
// private ChatClient CC = new ChatClient(); public Form1() { //CheckForIllegalCrossThreadCalls = false; CS.Start(this); try { // CC.Start(); InitializeComponent(); IP_textBox.Text = CS.getIP(); Port_textBox.Text = "8250"; ShowTextDele = new ShowTD(ShowText); time_tick = new Thread(show_time); time_tick.Start(); // refreshClientList = new Thread(refreshRichBox); // refreshClientList.Start(); } catch { ShowText("連線錯誤!"); } }