Exemplo n.º 1
0
        static void ShowObservePattern()
        {
            Observe observe = new Observe();

            observe.AddObserveItem(() => new Computer().Calc(1, 2));
            observe.AddObserveItem(new Keyboard().Enter);
            observe.AddObserveItem(new Mouse().Click);
            observe.ObserveAction();
        }