Example #1
0
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			SynchronizationContext.SetSynchronizationContext(new WindowsFormsSynchronizationContext());

			Program5 p = new Program5();
			p.ExitRequested += p_ExitRequested;
			
			Task programStart = p.StartAsync();
			HandleExceptions(programStart);

			Application.Run();
		}
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            SynchronizationContext.SetSynchronizationContext(new WindowsFormsSynchronizationContext());

            Program5 p = new Program5();

            p.ExitRequested += p_ExitRequested;

            Task programStart = p.StartAsync();

            HandleExceptions(programStart);

            Application.Run();
        }