private void Initial(Object obj) { QQUser user = obj as QQUser; tcp = new TCPClass(); int i = tcp.Connection(); if (i == 0) { MessageBox.Show("连接服务器失败!请检查网络!"); return; } tcp.messageHelper += new TCPClass.MessageHelper(tcp_messageHelper); this.Login(user); }
private void Initial() { tcp = new TCPClass(); int i = tcp.Connection(); if (i == 0) { debugHelper("连接服务器失败!请检查网络!"); //MessageBox.Show("连接服务器失败!请检查网络!"); //this.Invoke(new InitialForms(CloseForms), new object[] { }); return; } tcp.messageHelper += new TCPClass.MessageHelper(tcp_messageHelper); this.Login(); }