Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }