Esempio n. 1
0
        public ClockSetup()
        {
            _yearSetupState = new YearSetupState(this);
            _monthSetupState = new MonthSetupState(this);
            _daySetupState = new DaySetupState(this);
            _hourSetupState = new HourSetupState(this);
            _minuteSetupState = new MinuteSetupState(this);
            _finishedSetupState = new FinishedSetupState(this);

            _currentState = _yearSetupState;
        }
Esempio n. 2
0
        public ClockSetup()
        {
            yearState     = new YearSetupState(this);
            monthState    = new MonthSetupState(this);
            dayState      = new DaySetupState(this);
            hourState     = new HourSetupState(this);
            minuteState   = new MinuteSetupState(this);
            finishedState = new FinishedSetupState(this);

            // Initial state is set to the year
            State = yearState;
        }