public static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Collection<KeyValuePair<string, Form>> programs = new Collection<KeyValuePair<string, Form>>();
     programs.Add(new KeyValuePair<string, Form>("Exceptions Demonstration", new ExceptionHandling()));
     programs.Add(new KeyValuePair<string, Form>("Files Demonstration", new FilesDemonstration()));
     programs.Add(new KeyValuePair<string, Form>("Dialogs Demonstration", new DialogsDemonstration()));
     Application.Run(new ChooseProgram(programs));
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            /*
            A a = new A();
            a.x = 3;
            B b = new B();
            b.x = 8;
            a.b = new B();
            b.a = a;
            a.b.x = 19;
            Console.WriteLine(b.x);
            */
            Collection col = new Collection();
            col.Add(2);
            col.Add(22);
            col.Add(234);

            Console.WriteLine(col.Get(3));

            int x = 0;
            int y = 0;
            bool f1, f2;
            while((f1 = x < 10) || (f2 = y < 20))
            {

            }
        }