Exemplo n.º 1
0
        /// <summary>
        /// Assigns the selected feature ids.
        /// </summary>
        /// <param name="reportPresenter">The report presenter.</param>
        private static void AssignSelectedFeatureIds(ReportPresenter reportPresenter)
        {
            var featureIds = new List<int>();

            if (!string.IsNullOrEmpty(reportPresenter.SelectedFeatureIds))
            {
                featureIds = reportPresenter.SelectedFeatureIds.Split(',').Select(id => Convert.ToInt32(id, CultureInfo.CurrentCulture)).ToList();
            }

            reportPresenter.AssignSelectedFeatureList(featureIds);
        }