Esempio n. 1
0
 protected override void OnKeyUp(System.Windows.Input.KeyEventArgs e)
 {
     if (!e.Handled)
     {
         vncKeyEventArgs eArgs = new vncKeyEventArgs(e);
         if (eArgs.IsValid() && this.vncOnKeyEvent != null)
         {
             vncEventHandlerTrigger.TriggerEvent<vncKeyEventArgs>(this.vncOnKeyEvent, this, eArgs);
         }
     }
     e.Handled = true;
     base.OnKeyUp(e);
 }
 private void VideoDisplay_vncOnKeyEvent(object sender, vncKeyEventArgs e)
 {
     if (m_Client != null && m_Client.IsSessionEstablished())
     {
         m_Client.SendKeyEvent(e.Down, (uint)e.Key);
     }
 }