Пример #1
0
    private bool IsPrevButtonEnabled()
    {
        DateTime minDate     = SalesProvider.GetMinDate();
        DateTime currentDate = CurrentDate;

        minDate     = DateTimeHelper.GetIntervalStartDate(minDate, SelectionInterval);
        currentDate = DateTimeHelper.GetIntervalStartDate(CurrentDate, SelectionInterval);
        return(minDate < currentDate);
    }
 private void UpdateMinMaxDate()
 {
     MinDateTime = DateTimeHelper.GetIntervalStartDate(SalesProvider.GetMinDate(), SelectionInterval.Month);
     MaxDateTime = DateTimeHelper.GetIntervalEndDate(SalesProvider.GetMaxDate(), SelectionInterval.Month);
 }