public CatalogueViewModel() { if (Machines == null) { Machines = _rw.Read("data"); } if (Machines == null) { Machines = new MachineCatalogue(); } this.AddPageCommand = new RelayCommand(ChangeToAddPage); this.BackCommand = new RelayCommand(Back); this.DetailsCommand = new RelayParameterizedCommand(ChangeToDetailsPage); }
public PlannedWorktimeFileRepository(IReaderWriter<IDictionary<IDate, IDailyWorkTimeWeekPlan>> fileReaderWriter) : base(fileReaderWriter.Read()) { if (fileReaderWriter == null) throw new ArgumentNullException(nameof(fileReaderWriter)); _fileReaderWriter = fileReaderWriter; }
public WorkdayFileRepository(IReaderWriter<IList<IWorkday>> workdaysReaderWriter) : base(workdaysReaderWriter.Read()) { if (workdaysReaderWriter == null) throw new ArgumentNullException(nameof(workdaysReaderWriter)); _workdaysReaderWriter = workdaysReaderWriter; }
public void Read(IObjectId x) { readerWriter.Read(x); }