internal void AddToList(MSNList list)
 {
     if ((list == MSNList.BlockedList) && !this.Blocked)
     {
         this.lists |= MSNList.BlockedList;
         this.ContactBlocked(this, new EventArgs());
     }
     else
     {
         this.lists |= list;
     }
 }
 internal void RemoveFromList(MSNList list)
 {
     if ((list == MSNList.BlockedList) && this.Blocked)
     {
         this.lists ^= MSNList.BlockedList;
         this.ContactUnBlocked(this, new EventArgs());
     }
     else
     {
         this.lists ^= list;
     }
 }
示例#3
0
 // Methods
 public ListMutateEventArgs(Contact contact, MSNList affectedList)
 {
     this.Subject      = contact;
     this.AffectedList = affectedList;
 }
示例#4
0
 protected string GetMSNList(MSNList list)
 {
     switch (list)
       {
     case MSNList.ForwardList:
     {
           return "FL";
     }
     case MSNList.AllowedList:
     {
           return "AL";
     }
     case MSNList.BlockedList:
     {
           return "BL";
     }
     case MSNList.ReverseList:
     {
           return "RL";
     }
       }
       throw new MSNException("Unknown MSNList type");
 }
示例#5
0
 internal void RemoveFromList(Contact contact, MSNList list)
 {
     object[] objArray1 = new object[9] { "REM ", this.NewTrans(), " ", this.GetMSNList(list), " ", contact.Mail, " ", contact.Mail, "\r\n" } ;
       this.SocketSend(string.Concat(objArray1));
 }
示例#6
0
 public Messenger.ContactList.ListEnumerator GetListEnumerator(MSNList type)
 {
     switch (type)
       {
     case MSNList.ForwardList:
     {
           return this.ForwardList;
     }
     case MSNList.AllowedList:
     {
           return this.AllowedList;
     }
     case MSNList.BlockedList:
     {
           return this.BlockedList;
     }
     case MSNList.ReverseList:
     {
           return this.ReverseList;
     }
       }
       return this.AllList;
 }
 internal void RemoveFromList(MSNList list)
 {
     if ((list == MSNList.BlockedList) && this.Blocked)
       {
             this.lists ^= MSNList.BlockedList;
             this.ContactUnBlocked(this, new EventArgs());
       }
       else
       {
             this.lists ^= list;
       }
 }
 internal void AddToList(MSNList list)
 {
     if ((list == MSNList.BlockedList) && !this.Blocked)
       {
             this.lists |= MSNList.BlockedList;
             this.ContactBlocked(this, new EventArgs());
       }
       else
       {
             this.lists |= list;
       }
 }
 // Methods
 public ListReceivedEventArgs(MSNList affectedList)
 {
     this.AffectedList = affectedList;
 }
 // Methods
 public ListReceivedEventArgs(MSNList affectedList)
 {
     this.AffectedList = affectedList;
 }
 // Methods
 public ListMutateEventArgs(Contact contact, MSNList affectedList)
 {
     this.Subject = contact;
       this.AffectedList = affectedList;
 }