/// <summary> /// Initializes a new instance of the <see cref="HardwareResources"/> class. /// </summary> /// <param name="resourceManager">The resource manager.</param> /// <param name="ioPortRegions">The io port regions.</param> /// <param name="memoryRegions">The memory regions.</param> /// <param name="interruptHandler">The interrupt handler.</param> /// <param name="deviceResource">The device resource.</param> public HardwareResources(IResourceManager resourceManager, IIOPortRegion[] ioPortRegions, IMemoryRegion[] memoryRegions, IInterruptHandler interruptHandler, IDeviceResource deviceResource) { this.resourceManager = resourceManager; this.ioPortRegions = ioPortRegions; this.memoryRegions = memoryRegions; this.interruptHandler = interruptHandler; this.deviceResource = DeviceResource; }
public CustomerPhotoSyncViewModel() { IDeviceResource deviceResource = Resolver.Instance.Get <IDeviceResource>(); this._message = deviceResource.PhotoDeleteConfirmationMessage; this._dontCancel = deviceResource.DontCancel; this._cancel = deviceResource.Cancel; }
public RankingStatsListFragmentViewModel() { IDeviceResource deviceResource = Resolver.Instance.Get <IDeviceResource>(); this.Columns = new ObservableCollection <string> { deviceResource.StatsRank, deviceResource.StatsDsr, deviceResource.StatsSales }; }
public SalesStatsFragmentViewModel() { this._deviceResource = Resolver.Instance.Get <IDeviceResource>(); this.Columns = new ObservableCollection <string> { this._deviceResource.ColumnDay, this._deviceResource.ColumnSales, this._deviceResource.ColumnProspects }; }
public ReportingLevelStatsFragmentViewModel(ReportingLevelStatsService service) { this._reportingLevelStatsService = service; IDeviceResource deviceResource = Resolver.Instance.Get <IDeviceResource>(); this.Columns = new ObservableCollection <string> { deviceResource.StatsRank, deviceResource.StatsNameHeader, deviceResource.ColumnSales, deviceResource.ColumnProspects }; }
public static IDeviceResource CreateRef(this IDeviceResource objectRef) => ((IDeviceResource)objectRef.CreateRef(typeof(IDeviceResource)));