public MainViewModel(NanoPoolXMRApi api, HardwareViewModel hm) { _api = api; hm.Parent = this; _hardwareVm = hm; Hardware = hm; Wallet = Properties.Settings.Default.Wallet; Worker = Properties.Settings.Default.Worker; Currency = "€"; Hashrate = 0; Hashrate1h = 0; HashrateUnit = "H/s"; RefreshData(); }
public HardwareItemViewModel(IHardware h, HardwareViewModel vm) { _h = h; _vm = vm; CreateSensors(_h); }