Exemplo n.º 1
0
 private void PrepareJoining()
 {
     StatusValue = ChannelStates.Joining;
     NamesListenerValue = new NamesListener(Client);
     NamesListenerValue.NamesEnd += new NamesEndEventHandler(NamesListenerValue_NamesEnd);
 }
Exemplo n.º 2
0
 void Client_PartReceived(Object sender, PartReceivedEventArgs e)
 {
     if (Disposed) return;
     if (e.ChannelName != Name) return;
     if (Status != ChannelStates.In) return;
     if (e.User.NickName != Client.MyUserInfo.NickName)
     {
         ChannelUser user = this[e.User.NickName];
         if (UserLeave != null) UserLeave(this, new UserLeaveEventArgs(user, UserLeaveReason.Parted));
         NickListValue.Remove(user);
     }
     else
     {
         StatusValue = ChannelStates.NotIn;
         if (Parted != null) Parted(this, new PartedEventArgs(this, Client));
         NickListValue.Clear();
         NamesListenerValue = null;
         TopicValue = "";
     }
 }