public bool IsMatched(TaskLog log) { if (SearchMethod == TaskSearchMethodType.PerfectMatch) { return(log.TaskName == TaskKeyword); } if (SearchMethod == TaskSearchMethodType.FirstMatch) { return(log.TaskName.StartsWith(TaskKeyword)); } if (SearchMethod == TaskSearchMethodType.PartialMatch) { return(log.TaskName.Contains(TaskKeyword)); } if (SearchMethod == TaskSearchMethodType.RegexpMatch) { return(System.Text.RegularExpressions.Regex.IsMatch(log.TaskName, TaskKeyword)); } return(false); }
public void Update(TaskLog taskLog) { throw new NotImplementedException(); }
public void Remove(TaskLog taskLog) { throw new NotImplementedException(); }