BaseDialogForm.cs 739 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Windows.Forms;
  4. using FastReport.Utils;
  5. namespace FastReport.Forms
  6. {
  7. /// <summary>
  8. /// Base class for all dialog forms with two buttons, OK and Cancel.
  9. /// </summary>
  10. public partial class BaseDialogForm : BaseForm
  11. {
  12. /// <inheritdoc/>
  13. public override void Localize()
  14. {
  15. base.Localize();
  16. btnOk.Text = Res.Get("Buttons,Ok");
  17. btnCancel.Text = Res.Get("Buttons,Cancel");
  18. }
  19. /// <summary>
  20. /// Initializes a new instance of the <see cref="BaseDialogForm"/> class.
  21. /// </summary>
  22. public BaseDialogForm()
  23. {
  24. InitializeComponent();
  25. }
  26. }
  27. }