Ejemplo n.º 1
0
        private void RunCommand(int commandIndex)
        {
            objectsCommand oc = RemoteCommands.FirstOrDefault(p => p.id == commandIndex);

            if (oc != null)
            {
                RunCommand(oc.command);
            }
        }
Ejemplo n.º 2
0
        private void ShowRemoteCommands()
        {
            var ma = new RemoteCommands {
                Owner = this
            };

            ma.ShowDialog(this);
            ma.Dispose();
            LoadCommands();
        }
Ejemplo n.º 3
0
        public void RunCommand(int commandIndex)
        {
            objectsCommand oc = RemoteCommands.FirstOrDefault(p => p.id == commandIndex);

            if (oc != null)
            {
                if (!string.IsNullOrEmpty(oc.command))
                {
                    RunCommand(oc.command);
                }
                if (!string.IsNullOrEmpty(oc.emitshortcut))
                {
                    var converter = new KeysConverter();
                    var keys      = converter.ConvertFromString(oc.emitshortcut);
                    if (keys != null)
                    {
                        var shortcutKeys = (Keys)keys;
                        MainForm_KeyDown(this, new KeyEventArgs(shortcutKeys));
                    }
                }
            }
        }
Ejemplo n.º 4
0
 private void ShowRemoteCommands()
 {
     var ma = new RemoteCommands { Owner = this };
     ma.ShowDialog(this);
     ma.Dispose();
     LoadCommands();
 }