コード例 #1
0
        protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
        {
            PickItemsPainter painter     = new PickItemsPainter();
            string           firstString = GetYear(info);

            painter.DrawItem(cache, drawInfo, info, firstString, string.Empty);
        }
コード例 #2
0
        protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
        {
            var painter     = new PickItemsPainter();
            var firstString = toFarsi.Convert(painter.ConvertIntToString(info.ItemIndex + startIndex, StringLength));
            var description = painter.ShouldDrawDescription(info) ? localizer.GetLocalizedString(StringID.Hour) : string.Empty;

            painter.DrawItem(cache, drawInfo, info, firstString, description);
        }
コード例 #3
0
        protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
        {
            var painter            = new PickItemsPainter();
            var descriptionIsExist = GetCalendar(info).Handler.ShowTime();
            var firstString        = info.ItemIndex == 0 ? PersianDateTimeFormatInfo.AMDesignator : PersianDateTimeFormatInfo.PMDesignator;

            painter.DrawItem(cache, drawInfo, info, firstString, string.Empty);
        }
コード例 #4
0
        protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
        {
            PickItemsPainter painter = new PickItemsPainter();
            int    minuteIncrement   = 1;
            string firstString       = toFarsi.Convert(painter.ConvertIntToString(info.ItemIndex * minuteIncrement, StringLength));
            string description       = painter.ShouldDrawDescription(info) ? localizer.GetLocalizedString(StringID.Minute) : string.Empty;

            painter.DrawItem(cache, drawInfo, info, firstString, description);
        }
コード例 #5
0
        protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
        {
            var painter            = new PickItemsPainter();
            var date               = GetDate(info);
            var firstString        = toFarsi.Convert(date.Day.ToString());
            var descriptionIsExist = GetCalendar(info).Handler.ShowTime();
            var description        = descriptionIsExist && painter.ShouldDrawDescription(info) ? date.LocalizedWeekDayName : string.Empty;

            painter.DrawItem(cache, drawInfo, info, firstString, description);
        }
コード例 #6
0
        protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
        {
            var painter   = new PickItemsPainter();
            var pd        = GetDate(info);
            var monthNo   = toFarsi.Convert(pd.Month.ToString());
            var monthName = PersianDateTimeFormatInfo.AbbreviatedMonthGenitiveNames[pd.Month - 1];

            var descriptionIsExist = GetCalendar(info).Handler.ShowTime();
            var firstString        = GetCalendar(info).Handler.ShowTime() ? monthNo : monthName;
            var description        = descriptionIsExist && painter.ShouldDrawDescription(info) ? monthName : string.Empty;

            painter.DrawItem(cache, drawInfo, info, firstString, description);
        }
コード例 #7
0
 protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
 {
     PickItemsPainter painter = new PickItemsPainter();
     string firstString = GetYear(info);
     painter.DrawItem(cache, drawInfo, info, firstString, string.Empty);
 }
コード例 #8
0
 protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
 {
     PickItemsPainter painter = new PickItemsPainter();
     int secondIncrement = 1;
     string firstString = toFarsi.Convert(painter.ConvertIntToString(info.ItemIndex * secondIncrement, StringLength));
     string description = painter.ShouldDrawDescription(info) ? (localizer.GetLocalizedString(StringID.Second)) : string.Empty;
     painter.DrawItem(cache, drawInfo, info, firstString, description);
 }
コード例 #9
0
        protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
        {
            var painter = new PickItemsPainter();
            var pd = GetDate(info);
            var monthNo = toFarsi.Convert(pd.Month.ToString());
            var monthName = PersianDateTimeFormatInfo.AbbreviatedMonthGenitiveNames[pd.Month - 1];

            var descriptionIsExist = GetCalendar(info).Handler.ShowTime();
            var firstString = GetCalendar(info).Handler.ShowTime() ? monthNo : monthName;
            var description = descriptionIsExist && painter.ShouldDrawDescription(info) ? monthName : string.Empty;
            painter.DrawItem(cache, drawInfo, info, firstString, description);
        }
コード例 #10
0
        protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
        {
            var painter = new PickItemsPainter();
            var descriptionIsExist = GetCalendar(info).Handler.ShowTime();
            var firstString = info.ItemIndex == 0 ? PersianDateTimeFormatInfo.AMDesignator : PersianDateTimeFormatInfo.PMDesignator;

            painter.DrawItem(cache, drawInfo, info, firstString, string.Empty);
        }
コード例 #11
0
 protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
 {
     var painter = new PickItemsPainter();
     var firstString = toFarsi.Convert(painter.ConvertIntToString(info.ItemIndex + startIndex, StringLength));
     var description = painter.ShouldDrawDescription(info) ? localizer.GetLocalizedString(StringID.Hour) : string.Empty;
     painter.DrawItem(cache, drawInfo, info, firstString, description);
 }
コード例 #12
0
        protected override void DrawCore(GraphicsCache cache, PickItemInfo info, IPickItemsContainerDrawInfo drawInfo)
        {
            var painter = new PickItemsPainter();
            var date = GetDate(info);
            var firstString = toFarsi.Convert(date.Day.ToString());
            var descriptionIsExist = GetCalendar(info).Handler.ShowTime();
            var description = descriptionIsExist && painter.ShouldDrawDescription(info) ? date.LocalizedWeekDayName : string.Empty;

            painter.DrawItem(cache, drawInfo, info, firstString, description);
        }