Esempio n. 1
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);
     }
 }
Esempio n. 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);
            }
        }