static void Main(string[] args)
        {
            IFormula formula = new ImplFormula(new SafeSquareRootProxy(new ImplFormula(new EndPoint(), 1, 1)), 2, 2);

            formula.process(0, 4);

            ObserverReceiver rec = new ObserverReceiver();

            ObserverManager.addHandler(new ObserverHandler(rec.ObserverHandler));
            ObserverReceiverFile recFile = new ObserverReceiverFile();

            ObserverManager.addHandler(new ObserverHandler(recFile.ObserverHandler));
            formula = new ImplFormula(new SafeSquareRootProxyWithObserver(new ImplFormula(new EndPoint(), 1, 1)), 2, 2);
            formula.process(0, 0);
        }
Пример #2
0
        static void Main(string[] args)
        {
            IFormula formula = new ImplFormula(new SquareRoot(new ImplFormula(new EndPoint(), 1, 1)), 2, 2);

            formula.process(0, 4);
        }