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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }