SetCustomProperties
        (
            DynamicFilterParameters dynamicFilterParameters
        )
        {
            AssertValid();
            Debug.Assert(dynamicFilterParameters is DateTimeFilterParameters);

            DateTimeFilterParameters oDateTimeFilterParameters =
                (DateTimeFilterParameters)dynamicFilterParameters;

            // Set the format of the wrapped control based on the Excel column
            // format.

            SimpleDateTimeFormat eDateTimeRangeTrackBarFormat =
                SimpleDateTimeFormat.Date;

            switch (oDateTimeFilterParameters.Format)
            {
            case ExcelColumnFormat.Date:

                break;

            case ExcelColumnFormat.Time:

                eDateTimeRangeTrackBarFormat = SimpleDateTimeFormat.Time;
                break;

            case ExcelColumnFormat.DateAndTime:

                eDateTimeRangeTrackBarFormat =
                    SimpleDateTimeFormat.DateAndTime;

                break;

            default:

                Debug.Assert(false);
                break;
            }

            this.Format = eDateTimeRangeTrackBarFormat;

            this.SmallChangeMinutes = Math.Max(1,
                                               (Decimal)((base.AvailableMaximum - base.AvailableMinimum).
                                                         TotalMinutes / 100.0));
        }
 public void TearDown()
 {
     m_oDateTimeFilterParameters = null;
 }
 public void SetUp()
 {
     m_oDateTimeFilterParameters = new DateTimeFilterParameters(
     ColumnName, MinimumCellValue, MaximumCellValue, Format);
 }
 //*************************************************************************
 //  Constructor: DateTimeFilterParametersTest()
 //
 /// <summary>
 /// Initializes a new instance of the <see
 /// cref="DateTimeFilterParametersTest" /> class.
 /// </summary>
 //*************************************************************************
 public DateTimeFilterParametersTest()
 {
     m_oDateTimeFilterParameters = null;
 }