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