Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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;
        }
Exemplo n.º 4
0
        public RankingStatsListFragmentViewModel()
        {
            IDeviceResource deviceResource = Resolver.Instance.Get <IDeviceResource>();

            this.Columns = new ObservableCollection <string>
            {
                deviceResource.StatsRank,
                deviceResource.StatsDsr,
                deviceResource.StatsSales
            };
        }
Exemplo n.º 5
0
        public SalesStatsFragmentViewModel()
        {
            this._deviceResource = Resolver.Instance.Get <IDeviceResource>();

            this.Columns = new ObservableCollection <string>
            {
                this._deviceResource.ColumnDay,
                this._deviceResource.ColumnSales,
                this._deviceResource.ColumnProspects
            };
        }
Exemplo n.º 6
0
        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)));