예제 #1
0
        private IEnumerable <DateTime> GetVisibleDatesList()
        {
            //Вычисляем точки на временнОй сетке и отрисовываем их
            DateTime dt0 = CoordGrid.FromXAxisToDate(worldPointInLeftDownCorner.x);
            DateTime dt1 = CoordGrid.FromXAxisToDate(worldPointInRightUpCorner.x);

            if (CoordGrid is CoordinateGrid)
            {
                dt0 = (CoordGrid as CoordinateGrid).DateCorrection(dt0, dt1);
            }

            IEnumerable <DateTime> dateList = DateTimeTools.DividePeriodByKeyPoints(dt0, dt1, dateTextPool.FieldsAmount);

            return(dateList);
        }