public MainWindowViewModel(ILogger <MainWindowViewModel> logger, IDialogService dialogs) : base(logger, dialogs) { Day1Command = new RelayCommand(Execute1); Day2Command = new RelayCommand(Execute2); Day3Command = new RelayCommand(Execute3); Day4Command = new RelayCommand(Execute4); Day5Command = new RelayCommand(Execute5); Day6Command = new RelayCommand(Execute6); Day7Command = new RelayCommand(Execute7); Day8Command = new RelayCommand(Execute8); Day9Command = new RelayCommand(Execute9); Day10Command = new RelayCommand(Execute10); Day11Command = new RelayCommand(Execute11); Day12Command = new RelayCommand(Execute12); Day13Command = new RelayCommand(Execute13); Day14Command = new RelayCommand(Execute14); Day15Command = new RelayCommand(Execute15); Day16Command = new RelayCommand(Execute16); Day17Command = new RelayCommand(Execute17); Day18Command = new RelayCommand(Execute18); Day19Command = new RelayCommand(Execute19); Day20Command = new RelayCommand(Execute20); Day21Command = new RelayCommand(Execute21); Day22Command = new RelayCommand(Execute22); Day23Command = new RelayCommand(Execute23); Day24Command = new RelayCommand(Execute24); var assemblyRootFolder = new FileInfo(Assembly.GetExecutingAssembly().Location).Directory; _inputFolder = new DirectoryInfo(Path.Combine(assemblyRootFolder.FullName, "InputData")); _consoleOutput = new DelegateOutput((long i) => WriteToConsole(i.ToString())); }
public IntCodeComputerInstance(IEnumerable <long> code, IIntCodeComputerInput inputReader, IIntCodeComputerOutput outWriter) { OutWriter = outWriter; Code = code.ToList(); _originalCode = code; InputReader = inputReader; }