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

			Program4a p = new Program4a();
			p.ExitRequested += p_ExitRequested;

			Task programStart = p.StartAsync();

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

            Program4a p = new Program4a();

            p.ExitRequested += p_ExitRequested;

            Task programStart = p.StartAsync();

            Application.Run();
        }