Пример #1
0
		void HandleServerAdded (object sender, ServerEventArgs e)
		{
			Application.Instance.Invoke (delegate {
				servers.Add (e.Server);
				Register (e.Server);
				Update (true);
				channelList.SelectedItem = e.Server;
				OnChannelChanged (EventArgs.Empty);
			});
		}
Пример #2
0
 protected virtual void OnServerRemoved(ServerEventArgs e)
 {
     if (ServerRemoved != null)
         ServerRemoved(this, e);
 }
Пример #3
0
		void HandleServerRemoved (object sender, ServerEventArgs e)
		{
			Application.Instance.Invoke (delegate {
				UnRegister (e.Server);
				servers.Remove (e.Server);
				Update (true);
				OnChannelChanged (EventArgs.Empty);
			});
		}