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); }
private bool Equals(ExecutedCommand obj) { return Equals(obj.launchable, launchable) && Equals(obj.arguments, arguments) && Equals(obj.action, action); }