using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace SocketChat.Client { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Login __frmLogin = new Login(); if (__frmLogin.ShowDialog() == DialogResult.OK) { Application.Run(new ChatClient(__frmLogin.p_user)); } } } }