Exemplo n.º 1
0
        public async void DoSearchForecasts()
        {
            IsBusy            = true;
            UserRegistrations = new ForecastOverviewForecastMonths();
            var response = await SearchOptions.DoSearch(SelectedDate.Month, SelectedDate.Year);

            if (response == null)
            {
                // An error occured
                IsBusy = false;
                return;
            }

            _dataGenerator.MergeHolidays(Dates, response.Holidays);
            _dataGenerator.CreateForecastMonths(this, response.ForecastMonths, response.ProjectForecastTypeId);
            UpdateForecastVisualSettings(response.ProjectForecastTypeId);

            IsBusy = false;
        }