Exemplo n.º 1
0
 /// <summary>
 /// Mark the message referenced by the specified thread item as read.
 /// </summary>
 private static void MarkAsRead(CIXMessage message)
 {
     if (message != null && message.Unread && !message.ReadLocked)
     {
         message.MarkRead();
     }
 }
Exemplo n.º 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();
             }
         }
     }
 }