예제 #1
0
파일: Program.cs 프로젝트: bostich83/axiom
        private static void Main()
        {
            try
            {
#if !(XBOX || XBOX360)
                Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false);
                using (var sb = new SampleBrowser())
#else
                using (SampleBrowser sb = new Xna.SampleBrowser())
#endif
                {
                    sb.Go();
                }
            }
            catch (Exception ex)
            {
#if !(XBOX || XBOX360)
                IErrorDialog messageBox = new WinFormErrorDialog();
                messageBox.Show(ex);
#else
                Debug.WriteLine(LogManager.BuildExceptionString(ex));
#endif
            }
        }
예제 #2
0
		private static void Main()
		{
			try
			{
#if !(XBOX || XBOX360)
				Thread.CurrentThread.CurrentCulture = new CultureInfo( "en-US", false );
				using ( var sb = new SampleBrowser() )
#else
				using (SampleBrowser sb = new Xna.SampleBrowser())
#endif
				{
					sb.Go();
				}
			}
			catch ( Exception ex )
			{
#if !(XBOX || XBOX360)
				IErrorDialog messageBox = new WinFormErrorDialog();
				messageBox.Show( ex );
#else
				Debug.WriteLine( LogManager.BuildExceptionString( ex ) );
#endif
			}
		}