Changeset 345 for branches/3.0/sources/HeuristicLab.Constraints
- Timestamp:
- 06/26/08 15:30:16 (17 years ago)
- Location:
- branches/3.0/sources/HeuristicLab.Constraints
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/sources/HeuristicLab.Constraints/DoubleBoundedConstraint.cs
r139 r345 136 136 XmlNode node = base.GetXmlNode(name, document, persistedObjects); 137 137 XmlAttribute lb = document.CreateAttribute("LowerBound"); 138 lb.Value = LowerBound.ToString( CultureInfo.InvariantCulture);138 lb.Value = LowerBound.ToString("r", CultureInfo.InvariantCulture); 139 139 XmlAttribute lbi = document.CreateAttribute("LowerBoundIncluded"); 140 140 lbi.Value = lowerBoundIncluded.ToString(); … … 142 142 lbe.Value = lowerBoundEnabled.ToString(); 143 143 XmlAttribute ub = document.CreateAttribute("UpperBound"); 144 ub.Value = upperBound.ToString( CultureInfo.InvariantCulture);144 ub.Value = upperBound.ToString("r", CultureInfo.InvariantCulture); 145 145 XmlAttribute ubi = document.CreateAttribute("UpperBoundIncluded"); 146 146 ubi.Value = upperBoundIncluded.ToString(); -
branches/3.0/sources/HeuristicLab.Constraints/DoubleBoundedConstraintView.cs
r2 r345 69 69 ubEnabledCheckBox.Enabled = false; 70 70 } else { 71 lbTextBox.Text = DoubleBoundedConstraint.LowerBound + "";71 lbTextBox.Text = DoubleBoundedConstraint.LowerBound.ToString("r"); 72 72 lbTextBox.Enabled = DoubleBoundedConstraint.LowerBoundEnabled; 73 73 lbIncludedCheckBox.Checked = DoubleBoundedConstraint.LowerBoundIncluded; … … 76 76 lbEnabledCheckBox.Enabled = true; 77 77 78 ubTextBox.Text = DoubleBoundedConstraint.UpperBound + "";78 ubTextBox.Text = DoubleBoundedConstraint.UpperBound.ToString("r"); 79 79 ubTextBox.Enabled = DoubleBoundedConstraint.UpperBoundEnabled; 80 80 ubIncludedCheckBox.Checked = DoubleBoundedConstraint.UpperBoundIncluded;
Note: See TracChangeset
for help on using the changeset viewer.