GridControl.DesignExt.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System.ComponentModel;
  2. using System.Drawing;
  3. namespace FastReport.Dialog
  4. {
  5. partial class GridControl
  6. {
  7. #region Properties
  8. /// <summary>
  9. /// This property is not relevant to this class.
  10. /// </summary>
  11. [Browsable(false)]
  12. public override Color BackColor
  13. {
  14. get { return base.BackColor; }
  15. set { base.BackColor = value; }
  16. }
  17. /// <summary>
  18. /// This property is not relevant to this class.
  19. /// </summary>
  20. [Browsable(false)]
  21. public override Color ForeColor
  22. {
  23. get { return base.ForeColor; }
  24. set { base.ForeColor = value; }
  25. }
  26. /// <summary>
  27. /// This property is not relevant to this class.
  28. /// </summary>
  29. [Browsable(false)]
  30. public override string Text
  31. {
  32. get { return base.Text; }
  33. set { base.Text = value; }
  34. }
  35. #endregion
  36. #region Private Methods
  37. private bool ShouldSerializeBackgroundColor()
  38. {
  39. return BackgroundColor != SystemColors.AppWorkspace;
  40. }
  41. private bool ShouldSerializeGridColor()
  42. {
  43. return GridColor != SystemColors.ControlDark;
  44. }
  45. #endregion
  46. #region Public Methods
  47. /// <inheritdoc/>
  48. public override ContextMenuBase GetContextMenu()
  49. {
  50. return new GridControlMenu(Report.Designer);
  51. }
  52. #endregion
  53. }
  54. }