private void EditSensorAction() { var vm = new EditSensorViewModel(CurrentSensor, CurrentProbe); vm.Show(); }
private void AddSensorAction() { var s = new SensorDBItem(); var vm = new EditSensorViewModel(s, CurrentProbe); vm.Show(); if (vm.Result == EditNodeResult.Ok) { CurrentProbe.Sensors.Add(s); CurrentSensor = s; } }