public void SendSpecialKeys(SpecialKeys Keys)
        {
            try
            {
                switch (Keys)
                {
                case ProtocolVNC.SpecialKeys.CtrlAltDel:
                    _VNC.SendSpecialKeys(VncSharp.SpecialKeys.CtrlAltDel);
                    break;

                case ProtocolVNC.SpecialKeys.CtrlEsc:
                    _VNC.SendSpecialKeys(VncSharp.SpecialKeys.CtrlEsc);
                    break;
                }
            }
            catch (Exception ex)
            {
                Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, Language.strVncSendSpecialKeysFailed + Environment.NewLine + ex.Message, true);
            }
        }
        public void SendSpecialKeys(SpecialKeys Keys)
        {
            try
            {
                // ReSharper disable once SwitchStatementMissingSomeCases
                switch (Keys)
                {
                case SpecialKeys.CtrlAltDel:
                    _VNC.SendSpecialKeys(VncSharp.SpecialKeys.CtrlAltDel);
                    break;

                case SpecialKeys.CtrlEsc:
                    _VNC.SendSpecialKeys(VncSharp.SpecialKeys.CtrlEsc);
                    break;
                }
            }
            catch (Exception ex)
            {
                Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, Language.strVncSendSpecialKeysFailed + Environment.NewLine + ex.Message, true);
            }
        }
Ejemplo n.º 3
0
        public void SendSpecialKeys(SpecialKeys Keys)
        {
            try
            {
                switch (Keys)
                {
                case SpecialKeys.CtrlAltDel:
                    VNC_Client.SendSpecialKeys(VncSharp.SpecialKeys.CtrlAltDel);
                    break;

                case SpecialKeys.CtrlEsc:
                    VNC_Client.SendSpecialKeys(VncSharp.SpecialKeys.CtrlEsc);
                    break;
                }
            }
            catch (Exception ex)
            {
                Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg,
                                                    Language.strVncSendSpecialKeysFailed + Constants.vbNewLine +
                                                    ex.Message, true);
            }
        }
Ejemplo n.º 4
0
 public void SendSpecialKeys(VncSharp.SpecialKeys Keys)
 {
     rd.SendSpecialKeys(Keys);
 }