static void Main(string[] args) { try { using (Mine2D game = new Mine2D()) { game.Run(); } } catch (Exception exc) { System.Windows.Forms.MessageBox.Show( "Исключение: \n" + exc.Message + "\nСтек вызова:\n" + exc.StackTrace, "Ошибка", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); } }