MonthCalendarControl.DesignExt.cs 915 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Drawing;
  2. using FastReport.Utils;
  3. namespace FastReport.Dialog
  4. {
  5. partial class MonthCalendarControl
  6. {
  7. #region Protected Methods
  8. /// <inheritdoc/>
  9. protected override bool ShouldSerializeBackColor()
  10. {
  11. return BackColor != SystemColors.Window;
  12. }
  13. /// <inheritdoc/>
  14. protected override bool ShouldSerializeForeColor()
  15. {
  16. return ForeColor != SystemColors.WindowText;
  17. }
  18. /// <inheritdoc/>
  19. protected bool ShouldSerializeCalendarDimensions()
  20. {
  21. return CalendarDimensions.Width != 1 || CalendarDimensions.Height != 1;
  22. }
  23. /// <inheritdoc/>
  24. protected override SelectionPoint[] GetSelectionPoints()
  25. {
  26. return new SelectionPoint[] { new SelectionPoint(AbsLeft - 2, AbsTop - 2, SizingPoint.None) };
  27. }
  28. #endregion
  29. }
  30. }