public fsParameterRange( fsParameterIdentifier parameterIdentifier, fsUnit units, double rangeStart, double rangeEnd) { Identifier = parameterIdentifier; Units = units; Range = new fsRange(rangeStart * units.Coefficient, rangeEnd * units.Coefficient); }
private void RefreshRangesBoxes() { if (m_iterationParameter == null) { return; } fsRange range = m_values[m_iterationParameter].Range; double factor = m_values[m_iterationParameter].Unit.Coefficient; rangeFrom.Text = (range.From / factor).ToString(); rangeTo.Text = (range.To / factor).ToString(); }
private void DisplayRangesInTable() { dataGrid.Rows.Clear(); m_rowToParameter = new Dictionary <DataGridViewRow, fsParameterIdentifier>(); foreach (fsParameterIdentifier parameter in ParameterRanges.Keys) { int index = dataGrid.Rows.Add(); dataGrid.Rows[index].Cells[0].Value = parameter.FullName; fsRange range = ParameterRanges[parameter].Range; fsUnit units = ParameterRanges[parameter].Units; dataGrid.Rows[index].Cells[1].Value = units.Name; dataGrid.Rows[index].Cells[2].Value = range.From / units.Coefficient; dataGrid.Rows[index].Cells[3].Value = range.To / units.Coefficient; m_rowToParameter.Add(dataGrid.Rows[index], parameter); } }
public fsSimulationModuleParameter(fsParameterIdentifier identifier, fsValue value) : base(identifier, value) { Unit = identifier.MeasurementCharacteristic.CurrentUnit; Range = new fsRange(new fsValue(0), new fsValue(100)); }
public fsSimulationModuleParameter(fsSimulationModuleParameter other) : base(other) { Unit = other.Unit; Range = new fsRange(new fsValue(0), new fsValue(100)); }