Пример #1
0
        protected override void RestoreState(IApplicationStateService applicationStateService)
        {
            base.RestoreState(applicationStateService);

            if (applicationStateService.HasValueFor(nameof(this.StartDate), ApplicationState.Temp))
                this.StartDate = applicationStateService.Get<DateTimeOffset>(nameof(this.StartDate), ApplicationState.Temp);

            if (applicationStateService.HasValueFor(nameof(this.EndDate), ApplicationState.Temp))
                this.EndDate = applicationStateService.Get<DateTimeOffset>(nameof(this.EndDate), ApplicationState.Temp);
        }