示例#1
0
文件: Program.cs 项目: hoxily/Wuziqi
 static void Main()
 {
     GameClient client = new GameClient();
     client.Init();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     FormLogin login = new FormLogin();
     login.GameClient = client;
     try
     {
         client.Start();
         Application.Run(login);
     }
     catch(Exception e)
     {
         MessageBox.Show("出错信息:\r\n" + e.Message, "非常抱歉,程序出错了", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
示例#2
0
        static void Main()
        {
            GameClient client = new GameClient();

            client.Init();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FormLogin login = new FormLogin();

            login.GameClient = client;
            try
            {
                client.Start();
                Application.Run(login);
            }
            catch (Exception e)
            {
                MessageBox.Show("出错信息:\r\n" + e.Message, "非常抱歉,程序出错了", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }