Beispiel #1
0
 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;
 }
Beispiel #4
0
 public void Read(IObjectId x)
 {
     readerWriter.Read(x);
 }