예제 #1
0
파일: Program.cs 프로젝트: icaca/boogiebot
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            bot = new BoogieBot();

            try
            {
                BoogieCore.InitCore(Log, EventHandler);
                Application.Run(bot);
            }
            catch (Exception ex)
            {
                //if (
                //String error = String.Format("Error: {0}\n\nStackTrace:\n\n{1}", ex.InnerException.Message, ex.InnerException.StackTrace);
                MessageBox.Show(ex.Message, ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: Bia10/boogiebot
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            bot = new BoogieBot();

            try
            {
                BoogieCore.InitCore(Log, EventHandler);
                Application.Run(bot);
            }
            catch (Exception ex)
            {
                //if (
                //String error = String.Format("Error: {0}\n\nStackTrace:\n\n{1}", ex.InnerException.Message, ex.InnerException.StackTrace);
                MessageBox.Show(ex.Message, ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }