Provides data for the VncClient.RemoteClipboardChanged event.
Inheritance: System.EventArgs
コード例 #1
0
ファイル: VncClient.cs プロジェクト: rajeshwarn/remoteviewing
        /// <summary>
        /// Raises the <see cref="RemoteClipboardChanged"/> event.
        /// </summary>
        /// <param name="e">
        /// A <see cref="RemoteClipboardChangedEventArgs"/> that contains information on the
        /// clipboard changes.
        /// </param>
        protected virtual void OnRemoteClipboardChanged(RemoteClipboardChangedEventArgs e)
        {
            var ev = this.RemoteClipboardChanged;

            if (ev != null)
            {
                ev(this, e);
            }
        }
コード例 #2
0
        protected void RaiseRemoteClipboardChanged(RemoteClipboardChangedEventArgs e)
        {
            var ev = RemoteClipboardChanged;

            if (ev != null)
            {
                ev(this, e);
            }
        }
コード例 #3
0
ファイル: VncClient.cs プロジェクト: 5l1v3r1/remoteviewing
 /// <summary>
 /// Raises the <see cref="RemoteClipboardChanged"/> event.
 /// </summary>
 /// <param name="e">
 /// A <see cref="RemoteClipboardChangedEventArgs"/> that contains information on the
 /// clipboard changes.
 /// </param>
 protected virtual void OnRemoteClipboardChanged(RemoteClipboardChangedEventArgs e)
 {
     this.RemoteClipboardChanged?.Invoke(this, e);
 }
コード例 #4
0
ファイル: VncClient.cs プロジェクト: qmfrederik/remoteviewing
 /// <summary>
 /// Raises the <see cref="RemoteClipboardChanged"/> event.
 /// </summary>
 /// <param name="e">
 /// A <see cref="RemoteClipboardChangedEventArgs"/> that contains information on the
 /// clipboard changes.
 /// </param>
 protected virtual void OnRemoteClipboardChanged(RemoteClipboardChangedEventArgs e)
 {
     var ev = this.RemoteClipboardChanged;
     if (ev != null)
     {
         ev(this, e);
     }
 }
コード例 #5
0
 protected virtual void OnRemoteClipboardChanged(RemoteClipboardChangedEventArgs e)
 {
     RaiseRemoteClipboardChanged(e);
 }
コード例 #6
0
        void HandleRemoteClipboardChanged(object sender, RemoteClipboardChangedEventArgs e)
        {
            if (AllowClipboardSharingFromServer)
            {
                if (e.Contents.Length != 0 && _expectedClipboard != e.Contents)
                {
                    try
                    {
                        Clipboard.SetText(e.Contents);
                        _expectedClipboard = e.Contents;
                    }
                    catch (ExternalException)
                    {

                    }
                }
            }
        }