/// <summary> /// Modifies the filter settings. /// </summary> /// <param name="pageSize">Number of items to display on a single page.</param> /// <param name="ticketStatus">The current status filter setting.</param> /// <param name="owner">The owner filter setting.</param> /// <param name="assignedTo">The assigned to filter setting.</param> public void ModifyFilterSettings(int pageSize, int projectId, string ticketStatus, string owner, string assignedTo, DateTime toDate, DateTime fromDate) { ItemsPerPage = pageSize; if (!DisabledFilterColumnNames.Contains("projectId")) { FilterColumns.ChangeTicketProjectFilter(projectId); } if (!DisabledFilterColumnNames.Contains("TicketStatus")) { FilterColumns.ChangeTicketStatusFilter(ticketStatus); } if (!DisabledFilterColumnNames.Contains("Owner")) { FilterColumns.ChangeOwnerFilter(owner); } if (!DisabledFilterColumnNames.Contains("AssignedTo")) { FilterColumns.ChangeAssignedFilter(assignedTo); } if (!DisabledFilterColumnNames.Contains("ToDate")) { FilterColumns.ChangeTicketToDateFilter(toDate); } if (!DisabledFilterColumnNames.Contains("FromDate")) { FilterColumns.ChangeTicketFromDateFilter(fromDate); } }
/// <summary> /// Modifies the filter settings. /// </summary> /// <param name="pageSize">Number of items to display on a single page.</param> /// <param name="ticketStatus">The current status filter setting.</param> /// <param name="owner">The owner filter setting.</param> /// <param name="assignedTo">The assigned to filter setting.</param> public void ModifyFilterSettings(int pageSize, string ticketStatus, string owner, string assignedTo) { ItemsPerPage = pageSize; if (!DisabledFilterColumnNames.Contains("TicketStatus")) { FilterColumns.ChangeTicketStatusFilter(ticketStatus); } if (!DisabledFilterColumnNames.Contains("Owner")) { FilterColumns.ChangeOwnerFilter(owner); } if (!DisabledFilterColumnNames.Contains("AssignedTo")) { FilterColumns.ChangeAssignedFilter(assignedTo); } }