Пример #1
0
 internal void LogChatHandlerOut(AbstractChatHandler logout)
 {
     if (this.listeners.Remove(logout) )
     {
         if (this.listeners.Count == 0)
         {
             OnStatusChanged(true);
             this.unload();
         }
         logout.cleanUp();
     }
 }
Пример #2
0
 public void AddOnlineState(AbstractChatHandler handler)
 {
     if (!this.listeners.Contains(handler))
     {
         handler.setHandler(this);
         this.listeners.Add(handler);
     }
 }