public CompleteDueByAction(ITrackingSpan span, TodoTagger tagger, string display, string filePath, Reminder reminder)
        {
            m_span = span;
            m_snapshot = span.TextBuffer.CurrentSnapshot;
            m_upper = span.GetText(m_snapshot).ToUpper();
            m_display = display;
            m_tagger = tagger;
            m_reminder = reminder;

            FileLocation = filePath;
        }
Example #2
0
 public override bool IsApplicable(Reminder reminder, IWpfTextView view)
 {
     // If there is a snooze applied and time has past, then applicable.
     if (reminder.SnoozeUntil.HasValue && DateTime.Now >= reminder.SnoozeUntil.Value && DateTime.Today >= DueByDate)
     {
         return true;
     }
     else if (reminder.SnoozeUntil.HasValue)
     {
         return false;
     }
     return DateTime.Today >= DueByDate;
 }
 public virtual bool IsApplicable(Reminder reminder, IWpfTextView view)
 {
     return(true);
 }
 public virtual bool IsApplicable(Reminder reminder, IWpfTextView view)
 {
     return true;
 }