Exemplo n.º 1
0
		public ChannelSection (Channel channel)
		{
			this.Channel = channel;
			this.Channel.MessageReceived += HandleMessageReceived;
			this.Channel.UserJoined += HandleUserJoined;
			this.Channel.UserLeft += HandleUserLeft;
			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;
		}
Exemplo n.º 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.ID == Generators.Mac) {
				foreach (var item in items.OfType<TreeItem>()) {
					item.Text = item.Text.ToUpperInvariant();
				}
			}
			tree.DataStore = items;
			
			this.AddDockedControl (tree);
		}
Exemplo n.º 3
0
		public abstract void LeaveChannel (Channel channel);
Exemplo n.º 4
0
		MessageSection GetChannelSection (Channel channel)
		{
			if (channel == null) return null;
			return CreateSection (channel) as MessageSection;
		}
Exemplo n.º 5
0
		public UserChannelEventArgs(User user, Channel channel)
		{
			this.User = user;
			this.Channel = channel;
		}
Exemplo n.º 6
0
 public OpenChannelEventArgs(Channel channel, bool shouldFocus, bool newlyJoined)
     : base (channel)
 {
     this.ShouldFocus = shouldFocus;
     this.NewlyJoined = newlyJoined;
 }
Exemplo n.º 7
0
 public ChannelEventArgs(Channel channel)
 {
     this.Channel = channel;
 }