DateTimePickerControl.DesignExt.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System.Drawing;
  2. using System.ComponentModel;
  3. using FastReport.Utils;
  4. namespace FastReport.Dialog
  5. {
  6. partial class DateTimePickerControl
  7. {
  8. #region Properties
  9. /// <summary>
  10. /// This property is not relevant to this class.
  11. /// </summary>
  12. [Browsable(false)]
  13. public override string Text
  14. {
  15. get { return base.Text; }
  16. set { base.Text = value; }
  17. }
  18. #endregion
  19. #region Protected Methods
  20. /// <inheritdoc/>
  21. protected override bool ShouldSerializeBackColor()
  22. {
  23. return BackColor != SystemColors.Window;
  24. }
  25. /// <inheritdoc/>
  26. protected override bool ShouldSerializeForeColor()
  27. {
  28. return ForeColor != SystemColors.WindowText;
  29. }
  30. /// <inheritdoc/>
  31. protected override SelectionPoint[] GetSelectionPoints()
  32. {
  33. return new SelectionPoint[] {
  34. new SelectionPoint(AbsLeft - 2, AbsTop + Height / 2, SizingPoint.LeftCenter),
  35. new SelectionPoint(AbsLeft + Width + 1, AbsTop + Height / 2, SizingPoint.RightCenter) };
  36. }
  37. #endregion
  38. }
  39. }