Ejemplo n.º 1
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;
        }
        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;
        }