예제 #1
0
파일: Server.cs 프로젝트: neiz/JabbR.Eto
		public virtual void OnChannelInfoChanged (ChannelEventArgs e)
		{
			if (ChannelInfoChanged != null)
				ChannelInfoChanged (this, e);
		}
예제 #2
0
파일: Channels.cs 프로젝트: neiz/JabbR.Eto
		void HandleChannelInfoChanged (object sender, ChannelEventArgs e)
		{
			Application.Instance.AsyncInvoke (delegate {
				if (SelectedChannel == e.Channel && this.ParentWindow.HasFocus) {
					e.Channel.ResetUnreadCount ();
				}
				SetUnreadCount();
				Update ();
			});
		}
예제 #3
0
파일: Server.cs 프로젝트: neiz/JabbR.Eto
		protected virtual void OnCloseChannel (ChannelEventArgs e)
		{
			this.channels.Remove (e.Channel);
			if (CloseChannel != null)
				CloseChannel (this, e);
		}
예제 #4
0
파일: Channels.cs 프로젝트: neiz/JabbR.Eto
		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));
			});
		}