public CalculationViewModel() { Spec = new CalculationSpec { L1 = 310, L2 = 900, L3 = 1600 }; CalculateCommand = new ActionCommand<CircuitComponent>(item => { StartProgress(); var ctx = new Matlab.MlContext(); var result = ctx.Execute(Spec.L1, Spec.L2, Spec.L3); Result = "Результат: " + String.Join("; ", result.Item1); RaisePropertyChanged(() => Result); CompleteProgress(); }); }
public CalculationViewModel() { Spec = new CalculationSpec { L1 = 310, L2 = 900, L3 = 1600 }; CalculateCommand = new ActionCommand <CircuitComponent>(item => { StartProgress(); var ctx = new Matlab.MlContext(); var result = ctx.Execute(Spec.L1, Spec.L2, Spec.L3); Result = "Результат: " + String.Join("; ", result.Item1); RaisePropertyChanged(() => Result); CompleteProgress(); }); }