예제 #1
0
 public ChannelSection(Channel channel)
 {
     this.Channel = channel;
     this.Channel.MessageReceived += HandleMessageReceived;
     this.Channel.UserJoined += HandleUserJoined;
     this.Channel.UserLeft += HandleUserLeft;
     this.Channel.UserIconChanged += HandleUserIconChanged;
     this.Channel.OwnerAdded += HandleOwnerAdded;
     this.Channel.OwnerRemoved += HandleOwnerRemoved;
     this.Channel.UsersActivityChanged += HandleUsersActivityChanged;
     this.Channel.MessageContent += HandleMessageContent;
     this.Channel.TopicChanged += HandleTopicChanged;
     this.Channel.MeMessageReceived += HandleMeMessageReceived;
     this.Channel.UsernameChanged += HandleUsernameChanged;
 }
예제 #2
0
 public UserList(Channel channel)
 {
     this.Channel = channel;
     tree = new TreeView();
     tree.Style = "userList";
     tree.Activated += HandleActivated;
     
     items = new TreeItemCollection();
     items.Add(owners = new TreeItem { Text = "Room Owners", Expanded = true });
     items.Add(online = new TreeItem { Text = "Online", Expanded = true });
     items.Add(away = new TreeItem { Text = "Away", Expanded = true });
     if (Generator.IsMac)
     {
         foreach (var item in items.OfType<TreeItem>())
         {
             item.Text = item.Text.ToUpperInvariant();
         }
     }
     tree.DataStore = items;
     
     this.AddDockedControl(tree);
 }
예제 #3
0
 public OpenChannelEventArgs(Channel channel, bool shouldFocus, bool newlyJoined)
     : base (channel)
 {
     this.ShouldFocus = shouldFocus;
     this.NewlyJoined = newlyJoined;
 }
예제 #4
0
 public ChannelEventArgs(Channel channel)
 {
     this.Channel = channel;
 }
예제 #5
0
 MessageSection GetChannelSection(Channel channel)
 {
     if (channel == null)
         return null;
     return CreateSection(channel.Server, channel) as MessageSection;
 }
예제 #6
0
 public abstract void LeaveChannel(Channel channel);
 public UserChannelEventArgs(User user, Channel channel)
 {
     this.User = user;
     this.Channel = channel;
 }