Beispiel #1
0
        public static CalculatorFactory GetInstance()
        {
            if (instance == null)
            {
                instance = new CalculatorFactory();
            }

            return(instance);
        }
Beispiel #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();
        }