public Simulator() { _selectedEstimatingFunction = SelectedEstimatingFunction = EstimatingFunctionFactory.Simple; _sampleInsertionDelay = SampleInsertionDelay = 1000; _experimentDuration = ExperimentDuration = 2000; _amplitude = Amplitude = 1; _initialValue = InitialValue = 1; }
private void Apply() { if (IsConnected) { MessageBox.Show("Cannot modify existing connection", "Warning", MessageBoxButton.OK, MessageBoxImage.Error); } else { _selectedEstimatingFunction = SelectedEstimatingFunction; _sampleInsertionDelay = SampleInsertionDelay; _experimentDuration = ExperimentDuration; _amplitude = Amplitude; _initialValue = InitialValue; } }