Esempio n. 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();
		}
Esempio n. 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();
        }