Ejemplo n.º 1
0
        /// <summary>
        /// Is display step button displayed
        /// </summary>
        /// <param name="step"></param>
        public bool IsDisplayStepDisplayed(DisplayStep step)
        {
            switch (step)
            {
            case DisplayStep.Min:
                //"Hourly" step
                return(EnergyDisplayStepMinButton.Exists());

            case DisplayStep.Hour:
                //"Hourly" step
                return(EnergyDisplayStepHourButton.Exists());

            case DisplayStep.Day:
                //"Daily" step
                return(EnergyDisplayStepDayButton.Exists());

            case DisplayStep.Week:
                //"Weekly" step
                return(EnergyDisplayStepWeekButton.Exists());

            case DisplayStep.Month:
                //"Monthly" step
                return(EnergyDisplayStepMonthButton.Exists());

            case DisplayStep.Year:
                //"Year" step
                return(EnergyDisplayStepYearButton.Exists());

            default:
                return(true);
            }
        }