private bool IsNextButtonEnabled() { DateTime maxDate = SalesProvider.GetMaxDate(); DateTime currentDate = CurrentDate; maxDate = DateTimeHelper.GetIntervalEndDate(maxDate, SelectionInterval); currentDate = DateTimeHelper.GetIntervalEndDate(CurrentDate, SelectionInterval); return(maxDate > currentDate); }
private void UpdateMinMaxDate() { MinDateTime = DateTimeHelper.GetIntervalStartDate(SalesProvider.GetMinDate(), SelectionInterval.Month); MaxDateTime = DateTimeHelper.GetIntervalEndDate(SalesProvider.GetMaxDate(), SelectionInterval.Month); }