/// <summary> /// Assigns the selected role ids. /// </summary> /// <param name="reportPresenter">The report presenter.</param> private static void AssignSelectedRoleIds(ReportPresenter reportPresenter) { IList<int> roleIds = new List<int>(); if (string.IsNullOrEmpty(reportPresenter.SelectedRoleIds)) { roleIds = reportPresenter.Roles.Select(item => item.ID).ToList(); } else { roleIds = reportPresenter.SelectedRoleIds.Split(',').Select(id => Convert.ToInt32(id, CultureInfo.CurrentCulture)).ToList(); } reportPresenter.AssignSelectedRoleIdsList(roleIds); }
/// <summary> /// Assigns the productivity graph selected ids. /// </summary> /// <param name="reportPresenter">The report presenter.</param> /// <param name="selectedDeveloperIds">The selected developer ids.</param> /// <param name="selectedDeveloperByRoleIds">The selected developer by role ids.</param> /// <param name="selectedRoleIds">The selected role ids.</param> private static void AssignProductivityGraphSelectedIds(ReportPresenter reportPresenter, IList<int> selectedDeveloperIds, IList<int> selectedDeveloperByRoleIds, IList<int> selectedRoleIds) { reportPresenter.AssignSelectedDeveloperIdsList(selectedDeveloperIds); reportPresenter.AssignSelectedDeveloperByRoleIdsList(selectedDeveloperByRoleIds); reportPresenter.AssignSelectedRoleIdsList(selectedRoleIds); }