FarsiLibrary.Win.DevExpress.PersianCalendarObjectViewInfo.IsDateActive C# (CSharp) Method

IsDateActive() protected method

protected IsDateActive ( CalendarCellViewInfo cell ) : bool
cell CalendarCellViewInfo
return bool
        protected override bool IsDateActive(CalendarCellViewInfo cell)
        {
            if (View != DateEditCalendarViewType.MonthInfo)
                return true;

            var current = (PersianDate)DateTime;
            var cellDate = (PersianDate)cell.Date;

            return current.Month == cellDate.Month;
        }