Beispiel #1
0
        public MedVitalSignYAxis(double[] scaleValues, string unit)
        {
            MedVitalSignYAxisScaleValueList scales = new MedVitalSignYAxisScaleValueList();

            for (int i = 0; i < scaleValues.Length; i++)
            {
                scales.Add(new MedVitalSignYAxisScaleValue());
                scales[i].Value = scaleValues[i];
            }
            _scaleValues = scales;
            _unit        = unit;
        }
Beispiel #2
0
        public static MedVitalSignYAxisScaleValueList Parse(string listStrings)
        {
            MedVitalSignYAxisScaleValueList result = new MedVitalSignYAxisScaleValueList();

            if (listStrings != null)
            {
                string[] lists = listStrings.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
                foreach (string list in lists)
                {
                    string[] ls = list.Split(',');
                    MedVitalSignYAxisScaleValue scale = new MedVitalSignYAxisScaleValue();
                    scale.Value    = double.Parse(ls[0]);
                    scale.ShowText = ls[1];
                    result.Add(scale);
                }
            }
            return(result);
        }
Beispiel #3
0
 public MedVitalSignYAxis(MedVitalSignYAxisScaleValueList scaleValues, string unit)
 {
     _scaleValues = scaleValues;
     _unit        = unit;
 }