Ejemplo n.º 1
0
		static void Main()
		{
			try
			{
#if !(XBOX || XBOX360)
				Thread.CurrentThread.CurrentCulture = new CultureInfo( "en-US", false );
				using ( SampleBrowser sb = new SampleBrowser() )
#else
				using (SampleBrowser sb = new XBox.SampleBrowser())
#endif
				{
					sb.Go();
				}
			}
			catch ( Exception ex )
			{
#if !(XBOX || XBOX360)
				IErrorDialog messageBox = new WinFormErrorDialog();
				messageBox.Show( ex );
#else
				Debug.WriteLine( LogManager.BuildExceptionString( ex ) );
#endif
			}

		}
Ejemplo n.º 2
0
 private static void Main()
 {
     try
     {
         Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false);
         using (var sb = new SampleBrowser())
         {
             sb.Go();
         }
     }
     catch (Exception ex)
     {
         IErrorDialog messageBox = new WinFormErrorDialog();
         messageBox.Show(ex);
     }
 }
Ejemplo n.º 3
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
            }
        }