Exemple #1
0
 internal override double[,] GetValues()
 {
     if (base.datavalues == null)
     {
         if (base.ValueBinding == null)
         {
             DataSeries.InitList(base.listY, base.ValuesSource, (IList <double>)base.Values);
         }
         if (base.XValueBinding == null)
         {
             DataSeries.InitList(base.listX, base.XValuesSource, (IList <double>)base.XValues);
         }
         if (LowValueBinding == null)
         {
             DataSeries.InitList(alLo, LowValuesSource, (IList <double>)LowValues);
         }
         if (HighValueBinding == null)
         {
             DataSeries.InitList(alHi, HighValuesSource, (IList <double>)HighValues);
         }
         int maxCount = DataSeries.GetMaxCount(new IList[] { base.listY, base.listX, alLo, alHi });
         if (base.listX.Count == 0)
         {
             if (IsGantt)
             {
                 for (int i = 0; i < maxCount; i++)
                 {
                     base.listX.Add((int)Index);
                 }
             }
             else
             {
                 for (int j = 0; j < maxCount; j++)
                 {
                     base.listX.Add((int)j);
                 }
             }
         }
         if (base.listY.Count == 0)
         {
             base.datavalues = base.CreateValues(new IList[] { alLo, base.listX, alLo, alHi });
         }
         else
         {
             base.datavalues = base.CreateValues(new IList[] { base.listY, base.listX, alLo, alHi });
         }
         if (base.isTimeValues == null)
         {
             base.isTimeValues = new bool[4];
         }
         base.isTimeValues[0] = base.IsTimeData(base.listY);
         base.isTimeValues[1] = base.IsTimeData(base.listX);
         base.isTimeValues[2] = base.IsTimeData(alLo);
         base.isTimeValues[3] = base.IsTimeData(alHi);
     }
     return(base.datavalues);
 }