Ejemplo n.º 1
0
        public static CalculatorFactory GetInstance()
        {
            if (instance == null)
            {
                instance = new CalculatorFactory();
            }

            return(instance);
        }
Ejemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            eventProcessor = Framework.GetEventProcessor();
            eventProcessor.Subscribe(this);

            eventSaver = Framework.GetEventSaver();

            revertManager = new RevertManager();

            CalculatorFactory.GetInstance().CreateCalculator();
        }