protected virtual void OnServerRemoved(ServerEventArgs e) { if (ServerRemoved != null) { ServerRemoved(this, e); } }
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); }); }
void HandleServerRemoved(object sender, ServerEventArgs e) { Application.Instance.AsyncInvoke(delegate { UnRegister(e.Server); servers.Remove(e.Server); Update(true); OnChannelChanged(EventArgs.Empty); }); }
protected virtual void OnServerRemoved(ServerEventArgs e) { if (ServerRemoved != null) ServerRemoved(this, e); }