Exemplo n.º 1
0
        public bool TryGetOverClockData(Guid id, out IOverClockData group)
        {
            var r = _dicById.TryGetValue(id, out OverClockData g);

            group = g;
            return(r);
        }
Exemplo n.º 2
0
        public bool TryGetOverClockData(Guid id, out IOverClockData data)
        {
            InitOnece();
            var r = _dicById.TryGetValue(id, out OverClockData temp);

            data = temp;
            return(r);
        }
Exemplo n.º 3
0
        public bool TryGetOverClockData(Guid id, out IOverClockData group)
        {
            InitOnece();
            OverClockData g;
            var           r = _dicById.TryGetValue(id, out g);

            group = g;
            return(r);
        }
Exemplo n.º 4
0
 public OverClockDataViewModel(IOverClockData data) : this(data.GetId())
 {
     _coinId           = data.CoinId;
     _name             = data.Name;
     _coreClockDelta   = data.CoreClockDelta;
     _memoryClockDelta = data.MemoryClockDelta;
     _powerCapacity    = data.PowerCapacity;
     _cool             = data.Cool;
 }
Exemplo n.º 5
0
        public void Update(IOverClockData data)
        {
            this._coreClockDelta   = data.CoreClockDelta;
            this._memoryClockDelta = data.MemoryClockDelta;
            this._powerCapacity    = data.PowerCapacity;
            this._cool             = data.Cool;

            OnPropertyChanged(nameof(CoreClockDelta));
            OnPropertyChanged(nameof(MemoryClockDelta));
            OnPropertyChanged(nameof(PowerCapacity));
            OnPropertyChanged(nameof(Cool));
        }
Exemplo n.º 6
0
 public OverClockDataViewModel(IOverClockData data) : this(data.GetId())
 {
     _coinId           = data.CoinId;
     _name             = data.Name;
     _gpuType          = data.GpuType;
     _coreClockDelta   = data.CoreClockDelta;
     _memoryClockDelta = data.MemoryClockDelta;
     _powerCapacity    = data.PowerCapacity;
     _tempLimit        = data.TempLimit;
     _cool             = data.Cool;
     _coreVoltage      = data.CoreVoltage;
     _memoryVoltage    = data.MemoryVoltage;
 }