Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public DataCollectorUIWPF(DataCollectorUIWPFParameters param)
        {
            InitializeComponent();

            var viewModel = new DataCollectorViewModel(param);

            DataContext = viewModel;
            Title       = "Collect Data";
        }