Exemplo n.º 1
0
 public void OnKeyboardCommand(string command)
 {
     if (Enum.TryParse(command, true, out Command commandValue))
     {
         _dispatcherJobs.Add(() => KeyboardCommandReceived?.Invoke(this, commandValue.ToString()));
     }
     else if (Guid.TryParse(command, out Guid shellProfileId))
     {
         _dispatcherJobs.Add(() => KeyboardCommandReceived?.Invoke(this, shellProfileId.ToString()));
     }
 }
 public void OnKeyboardCommand(string command)
 {
     _dispatcherJobs.Add(() => KeyboardCommandReceived?.Invoke(this, Enum.Parse <Command>(command, true)));
 }
Exemplo n.º 3
0
 /// <summary>
 /// to be called by view
 /// </summary>
 public void ProcessKeyboardCommand(string command)
 {
     KeyboardCommandReceived?.Invoke(this, command);
 }