/// <summary> /// Assigns the presenter details. /// </summary> /// <param name="clientId">The client unique identifier.</param> /// <param name="projectStatusId">The project status unique identifier.</param> /// <param name="isIncludeInactive">The is include inactive.</param> /// <returns> /// Object of ProjectListPresenter /// </returns> private ProjectListPresenter AssignPresenterDetails(int? clientId, int? projectStatusId, bool? isIncludeInactive) { ProjectListPresenter presenter = new ProjectListPresenter(); presenter.AssignClients(this.lookupService.RetrieveClients(null, null, SessionData.Instance.UserInfo.Developer.DeveloperID)); presenter.AssignStatusList(this.lookupService.RetrieveProjectStatusList(SessionData.Instance.UserInfo.Developer.DeveloperID)); presenter.ProjectStatus = projectStatusId.HasValue ? projectStatusId.Value != -1 ? new LookupItem() { ID = projectStatusId.Value } : new LookupItem() : new LookupItem() { ID = 2 }; if (clientId.HasValue) { presenter.Client = new LookupItem() { ID = clientId.Value }; } presenter.IncludeInactive = isIncludeInactive.HasValue ? isIncludeInactive.Value : false; return presenter; }
public ActionResult FilterList(ProjectListPresenter presenter) { return this.PartialView("_ProjectList", presenter); }
public ProjectListForm() { InitializeComponent(); _presenter = new ProjectListPresenter(this); bindingLine = new BindingSource(); }