public DevicesViewModel(Router router) { _router = router; AddNewDevice = ReactiveCommand.Create(() => { }); AddNewDevice.Subscribe(unit => { _router.ShowAddSensor(null); }).DisposeWith(_disposable); }
private void button4_Click(object sender, EventArgs e) { AddNewDevice?.Invoke(); }