Exemple #1
0
 /// <summary>
 /// Mark the entire thread, of which the specified message is part, as
 /// read.
 /// </summary>
 private static void MarkThreadRead(CIXMessage message)
 {
     if (message != null)
     {
         message.MarkThreadRead();
     }
 }
Exemple #2
0
 /// <summary>
 /// Toggle the read or unread state of the message referenced by the specified thread item.
 /// If the item is a root message and is collapsed then mark the whole thread instead.
 /// </summary>
 private void ToggleRead(CIXMessage message)
 {
     if (message != null && !message.ReadLocked)
     {
         if (IsCollapsed(message))
         {
             if (message.Unread)
             {
                 message.MarkThreadRead();
             }
             else
             {
                 message.MarkThreadUnread();
             }
         }
         else
         {
             if (message.Unread)
             {
                 message.MarkRead();
             }
             else
             {
                 message.MarkUnread();
             }
         }
     }
 }