public DemandCurveViewModel(bool isDemo, bool isInternationalSystemOfUnits_IS_)
 {
     DemandCurveInputData            = new DemandCurveInputData(isDemo, isInternationalSystemOfUnits_IS_);
     DemandCurveOutputData           = new DemandCurveOutputData(isInternationalSystemOfUnits_IS_);
     DemandCurveData                 = new DemandCurveData(isInternationalSystemOfUnits_IS_);
     DemandCurveCalculationLibrary   = new DemandCurveCalculationLibrary();
     IsInternationalSystemOfUnits_IS = isInternationalSystemOfUnits_IS_;
     IsDemo = isDemo;
 }
 public bool ConvertValues(bool isIS, bool isElevation)
 {
     if ((IsInternationalSystemOfUnits_IS != isIS) || (IsElevation != isElevation))
     {
         IsInternationalSystemOfUnits_IS = isIS;
         IsElevation = isElevation;
         return(DemandCurveInputData.ConvertValues(IsInternationalSystemOfUnits_IS, IsElevation));
     }
     return(false);
 }
 public bool FillDemandCurveData(bool isElevation, bool showUserApproach, out string errorMessage)
 {
     return(DemandCurveInputData.FillDemandCurveData(DemandCurveData, isElevation, showUserApproach, out errorMessage));
 }