Exemplo n.º 1
0
        ///<summary>Raises the ClientChanged Event</summary>
        /// <param name="e">A ClientChangedEventArgs object containing
        /// the old and the new client</param>
        protected virtual void OnClientChanged(ClientChangedEventArgs e)
        {
            EventHandler <ClientChangedEventArgs> handler = m_ClientChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
 void instance_ClientChanged(object sender, ClientChangedEventArgs e)
 {
     DeregisterEvents(e.OldClient);
     RegisterEvents(e.Client);
 }
Exemplo n.º 3
0
 void Instance_ClientChanged(object sender, ClientChangedEventArgs e)
 {
     UnregisterClientEvents(e.OldClient);
     RegisterClientEvents();
 }
Exemplo n.º 4
0
 void instance_ClientChanged(object sender, ClientChangedEventArgs e)
 {
     UnregisterClientEvents(Client);
     Client = e.Client;
     RegisterClientEvents(Client);
 }