示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AcceptClientEventArgs"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 public AcceptClientEventArgs(IRemoteDesktopPeer client)
 {
     if (client == null)
     {
         ThrowHelper.ThrowArgumentNullException("client");
     }
     this.Client = client;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConnectionStateChangedEventArgs" /> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="connected">if set to <c>true</c> [connected].</param>
 public ConnectionStateChangedEventArgs(IRemoteDesktopPeer client, bool connected)
 {
     if (client == null)
     {
         ThrowHelper.ThrowArgumentNullException("client");
     }
     this.Client      = client;
     this.IsConnected = connected;
 }
示例#3
0
        /// <summary>
        /// Handles the Click event of the btDisconnectActiveClient control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected virtual void btDisconnectActiveClient_Click(object sender, EventArgs e)
        {
            IRemoteDesktopPeer peer = lvActiveClients.SelectedItems[0].Tag as IRemoteDesktopPeer;

            RemoteDesktopServiceManager.Instance.Disconnect(peer);
        }