Example #1
0
 private void AddExecutedCommand(ExecutedCommand executedCommand)
 {
     if (executedCommands.Count == MAX_HISTORY_SIZE) executedCommands.RemoveAt(MAX_HISTORY_SIZE - 1);
     if (executedCommands.Contains(executedCommand)) executedCommands.Remove(executedCommand);
     executedCommands.Insert(0, executedCommand);
 }
Example #2
0
 private bool Equals(ExecutedCommand obj)
 {
     return Equals(obj.launchable, launchable) && Equals(obj.arguments, arguments) && Equals(obj.action, action);
 }