コード例 #1
0
    private bool IsNextButtonEnabled()
    {
        DateTime maxDate     = SalesProvider.GetMaxDate();
        DateTime currentDate = CurrentDate;

        maxDate     = DateTimeHelper.GetIntervalEndDate(maxDate, SelectionInterval);
        currentDate = DateTimeHelper.GetIntervalEndDate(CurrentDate, SelectionInterval);
        return(maxDate > currentDate);
    }
コード例 #2
0
 private void UpdateMinMaxDate()
 {
     MinDateTime = DateTimeHelper.GetIntervalStartDate(SalesProvider.GetMinDate(), SelectionInterval.Month);
     MaxDateTime = DateTimeHelper.GetIntervalEndDate(SalesProvider.GetMaxDate(), SelectionInterval.Month);
 }