예제 #1
0
        public DevicesViewModel(Router router)
        {
            _router = router;

            AddNewDevice = ReactiveCommand.Create(() => { });
            AddNewDevice.Subscribe(unit => { _router.ShowAddSensor(null); }).DisposeWith(_disposable);
        }
예제 #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     AddNewDevice?.Invoke();
 }