private void FillOverClock(OverClockDataViewModel data) { if (IsOverClockGpuAll) { GpuAllProfileVm.Update(data); VirtualRoot.Execute(new AddOrUpdateGpuProfileCommand(GpuAllProfileVm)); } else { foreach (var item in GpuProfileVms) { if (item.Index == NTMinerContext.GpuAllId) { continue; } item.Update(data); VirtualRoot.Execute(new AddOrUpdateGpuProfileCommand(item)); } } }
private void FillOverClock(OverClockDataViewModel data) { if (IsOverClockGpuAll) { GpuAllProfileVm.Update(data); } else { foreach (var item in GpuProfileVms) { if (item.Index == NTMinerRoot.GpuAllId) { continue; } item.Update(data); } } }