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);
        }
Exemple #2
0
 public void Update(TaskLog taskLog)
 {
     throw new NotImplementedException();
 }
Exemple #3
0
 public void Remove(TaskLog taskLog)
 {
     throw new NotImplementedException();
 }