Ejemplo n.º 1
0
		public virtual void OnChannelInfoChanged (ChannelEventArgs e)
		{
			if (ChannelInfoChanged != null)
				ChannelInfoChanged (this, e);
		}
Ejemplo n.º 2
0
		void HandleChannelInfoChanged (object sender, ChannelEventArgs e)
		{
			Application.Instance.AsyncInvoke (delegate {
				if (SelectedChannel == e.Channel && this.ParentWindow.HasFocus) {
					e.Channel.ResetUnreadCount ();
				}
				SetUnreadCount();
				Update ();
			});
		}
Ejemplo n.º 3
0
		protected virtual void OnCloseChannel (ChannelEventArgs e)
		{
			this.channels.Remove (e.Channel);
			if (CloseChannel != null)
				CloseChannel (this, e);
		}
Ejemplo n.º 4
0
		void HandleCloseChannel (object sender, ChannelEventArgs e)
		{
			Application.Instance.AsyncInvoke (delegate {
				var isSelected = channelList.SelectedItem == e.Channel;
				RemoveSection (e.Channel);
				
				Update ();
				if (isSelected)
					channelList.SelectedItem = e.Channel.Server;
				
				var serverSection = GetServerSection (e.Channel.Server);
				serverSection.AddNotification (new NotificationMessage("You have left {0}", e.Channel.Name));
			});
		}