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; }
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); }
public OpenChannelEventArgs(Channel channel, bool shouldFocus, bool newlyJoined) : base (channel) { this.ShouldFocus = shouldFocus; this.NewlyJoined = newlyJoined; }
public ChannelEventArgs(Channel channel) { this.Channel = channel; }
MessageSection GetChannelSection(Channel channel) { if (channel == null) return null; return CreateSection(channel.Server, channel) as MessageSection; }
public abstract void LeaveChannel(Channel channel);
public UserChannelEventArgs(User user, Channel channel) { this.User = user; this.Channel = channel; }