public void RemoveTask(Task t) { tasks.Remove(t); fireTasksChanged(); }
private bool taskIsMatch(Task task, string filter) { bool match = false; match |= Regex.IsMatch(task.Title, filter, RegexOptions.IgnoreCase); match |= Regex.IsMatch(task.Description, filter, RegexOptions.IgnoreCase); match |= Regex.IsMatch(task.Due, filter, RegexOptions.IgnoreCase); return match; }
public void AddTask(Task t) { tasks.Add(t); fireTasksChanged(); }
public TaskDialog(Task t) { InitializeComponent(); task = t; }