Esempio n. 1
0
 static void Check(Logika_1 log, int a)
 {
     if (log(a))
     {
         Console.WriteLine("> 0");
     }
     else
     {
         Console.WriteLine("< 0");
     }
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            /*
             * Car car = new Car();
             * Road road = new Road();
             * Button button = new Button();
             * button.buttonListener = new Listener(road.State);
             * button.buttonListener += car.Move;
             * button.OnClick();
             * Console.WriteLine("____________________");
             * button.buttonListener -= car.Move;
             * button.OnClick();
             */

            Logika_1 logike = new Logika_1(LOG_1);

            logike(68);
            Check(logike, 6);
            Console.WriteLine("______________");
            logike += LOG_2;
            logike -= LOG_1;
            Check(logike, -6);
        }