示例#1
0
 protected virtual void OnServerRemoved(ServerEventArgs e)
 {
     if (ServerRemoved != null)
     {
         ServerRemoved(this, e);
     }
 }
示例#2
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);
     });
 }
示例#3
0
 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);
 }