Beispiel #1
0
		protected virtual void OnOpenChannel (OpenChannelEventArgs e)
		{
			if (!channels.Contains (e.Channel)) {
				channels.Add (e.Channel);
				channels.Sort ((x,y) => x.CompareTo (y));
			}
			
			if (OpenChannel != null)
				OpenChannel (this, e);
		}
Beispiel #2
0
		void HandleOpenChannel (object sender, OpenChannelEventArgs e)
		{
			Application.Instance.AsyncInvoke (delegate {
				CreateSection (e.Channel);
				Update ();
				
				if (e.ShouldFocus)
					channelList.SelectedItem = e.Channel;
				
				var serverSection = GetServerSection (e.Channel.Server);
				serverSection.AddNotification (new NotificationMessage("Joined {0}", e.Channel.Name));
			});
		}