public DataCollectorViewModel(DataCollectorUIWPFParameters parameters) { Parameters = parameters; Parameters.InitializationCompleted += Parameters_InitializationCompleted; Parameters.Closed += Parameters_Closed; BrowseMeasurementDataCommand = new RelayCommand(ExecuteBrowse, o => SelectedToolName != null && SelectedSpecification != null); CalculateCommand = new RelayCommand(ExecuteCalculate, o => SelectedToolName != null && SelectedSpecification != null && SelectedMeasurementFiles != null); }
public DataCollectorUIWPF(DataCollectorUIWPFParameters param) { InitializeComponent(); var viewModel = new DataCollectorViewModel(param); DataContext = viewModel; Title = "Collect Data"; }