public CommandedValuesCreator(CommandDispatcher commandDispatcher) { CommandDispatcher = commandDispatcher ?? throw new NullReferenceException(nameof(commandDispatcher)); }
public CommandedValue(T initValue, CommandDispatcher commandDispatcher) : base(commandDispatcher) { Value = initValue; }
/// <summary> /// Выполнить команду /// </summary> /// <param name="commandExecutor">Объект выполнения команд</param> protected void Execute(CommandExecutor commandExecutor) { CommandDispatcher.AddAndExecute(commandExecutor); }
public CommandedValue(CommandDispatcher commandDispatcher) : base(commandDispatcher) { }
public CommandedObject(CommandDispatcher commandDispatcher) { CommandDispatcher = commandDispatcher ?? throw new NullReferenceException(COMMAND_DISPATCHER_NULL_MESSAGE); }