public TaskOrderViewList(TaskOrderCollection taskOrderCollection) { foreach (TaskOrder taskOrder in taskOrderCollection) { this.Add(new Model.TaskOrderView(taskOrder)); } }
public TaskOrderCollection TaskOrderCollectionForReport(string reportNo) { TaskOrderCollection result = new TaskOrderCollection(); foreach (TaskOrder taskOrder in this) { if (taskOrder.ReportNo == reportNo) { result.Add(taskOrder); } } return(result); }