public Board(IBoardStatus boardStatus, IRobotStatus robotStatus, IActionsManager actionManager, IUIBoardManager uiManager, ILogger logger) { BoardStatus = boardStatus ?? throw new ArgumentNullException(nameof(boardStatus)); RobotStatus = robotStatus ?? throw new ArgumentNullException(nameof(robotStatus)); ActionManager = actionManager ?? throw new ArgumentNullException(nameof(actionManager)); UIManager = uiManager ?? throw new ArgumentNullException(nameof(uiManager)); Logger = logger ?? throw new ArgumentNullException(nameof(logger)); InitializeComponent(); BoardStatus.Update(boardPanelWidth: BoardPanel.Width, boardPanelHeight: BoardPanel.Height, roboPanelWidth: RoboPanel.Width, boardPanel: BoardPanel); List <Bitmap> imgs = GetImageResources(); RobotStatus.Update(isPlaced: false, robotPanel: RoboPanel, imgs: imgs); Logger.Update(logTextBox: LogTextBox); }
public AspectsController(IAspectsManager aspectsManager, IDomainsManager domainsManager, IActionsManager actionsManager, IMapper mapper, IEnumManager enumManager, ILogChangesManager logChangesManager) : base(logChangesManager) { _aspectsManager = aspectsManager; _actionsManager = actionsManager; _domainsManager = domainsManager; _mapper = mapper; _enumManager = enumManager; }
public ActionsExecutionManager(IActionsManager actionsManager, IActionsValidationManager actionsValidationManager, IActionsTranslator actionsTranslator, IRobotStatus robotStatus, IUIRobotManager uiRobotManager, ILogger logger) { ActionsManager = actionsManager ?? throw new ArgumentNullException(nameof(actionsManager)); ActionsValidationManager = actionsValidationManager ?? throw new ArgumentNullException(nameof(actionsValidationManager)); ActionsTranslator = actionsTranslator ?? throw new ArgumentNullException(nameof(actionsTranslator)); RobotStatus = robotStatus ?? throw new ArgumentNullException(nameof(robotStatus)); UIRobotManager = uiRobotManager ?? throw new ArgumentNullException(nameof(uiRobotManager)); Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public UIBoardManager(IBoardStatus boardStatus, IRobotStatus robotStatus, IActionsManager actionsManager, IActionsValidationManager actionsValidationManager, IActionsExecutionManager actionsExecutionManager, IActionsTranslator actionsTranslator) { BoardStatus = boardStatus ?? throw new ArgumentNullException(nameof(boardStatus)); RobotStatus = robotStatus ?? throw new ArgumentNullException(nameof(robotStatus)); ActionsManager = actionsManager ?? throw new ArgumentNullException(nameof(actionsManager)); ActionsValidationManager = actionsValidationManager ?? throw new ArgumentNullException(nameof(actionsValidationManager)); ActionsExecutionManager = actionsExecutionManager ?? throw new ArgumentNullException(nameof(actionsExecutionManager)); ActionsTranslator = actionsTranslator ?? throw new ArgumentNullException(nameof(actionsTranslator)); }
public DomainsController(IDomainsManager domainsManager, IMapper mapper, IActionsManager actionsManager, ILogChangesManager logChangesManager) : base(logChangesManager) { _actionsManager = actionsManager; _domainsManager = domainsManager; _mapper = mapper; }
public ActionsController(IActionsManager actionsManager, IMapper mapper, IEnumManager enumerationManager, ILogChangesManager logChangesManager) : base(logChangesManager) { _mapper = mapper; _actionsManager = actionsManager; _enumerationManager = enumerationManager; }
public ApplicationManager(IActionsManager actionsManager) { _actionsManager = actionsManager; }