Пример #1
0
        static void Main()
        {
            /*Game g = new Game("Fernando",'A',"Urbina",'B');
             * Console.WriteLine("antes");
             * Console.WriteLine(g.SimulacionPlay2());
             * Console.WriteLine("despues");
             * Application.EnableVisualStyles();
             * Application.SetCompatibleTextRenderingDefault(false);
             * Application.Run(new Form1());
             */
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            /*
             * var thread = new Thread(ThreadStart);
             * thread.TrySetApartmentState(ApartmentState.STA);
             * thread.Start();
             */
            Form M1 = new Form0();

            Application.Run(M1);
        }
Пример #2
0
        private static void ThreadStart()
        {
            Form M2 = new Form0();

            Application.Run(M2); // <-- other form started on its own UI thread
        }