Program.cs 665 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.Windows.Forms;
  6. namespace SocketChat.Client
  7. {
  8. static class Program
  9. {
  10. /// <summary>
  11. /// 应用程序的主入口点。
  12. /// </summary>
  13. [STAThread]
  14. static void Main()
  15. {
  16. Application.EnableVisualStyles();
  17. Application.SetCompatibleTextRenderingDefault(false);
  18. Login __frmLogin = new Login();
  19. if (__frmLogin.ShowDialog() == DialogResult.OK)
  20. {
  21. Application.Run(new ChatClient(__frmLogin.p_user));
  22. }
  23. }
  24. }
  25. }