MessageBoxWithEditorForm.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using FastReport.Utils;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace FastReport.Forms
  10. {
  11. /// <summary>
  12. /// The form for message box with text editor
  13. /// </summary>
  14. public partial class MessageBoxWithEditorForm : BaseDialogForm
  15. {
  16. /// <summary>
  17. /// Gets or sets text
  18. /// </summary>
  19. public string InnerText
  20. {
  21. get
  22. {
  23. return tbMessage.Text;
  24. }
  25. set
  26. {
  27. tbMessage.Text = value;
  28. }
  29. }
  30. /// <summary>
  31. /// Defualt constructor
  32. /// </summary>
  33. public MessageBoxWithEditorForm()
  34. {
  35. InitializeComponent();
  36. btnOk.Left = Width / 2 - btnOk.Width / 2;
  37. Localize();
  38. tbMessage.Focus();
  39. UIUtils.CheckRTL(this);
  40. }
  41. /// <inheritdoc/>
  42. public override void Localize()
  43. {
  44. base.Localize();
  45. this.Text = Res.Get("Forms,PrinterSetup,CmdCommand");
  46. lbDescription.Text = Res.Get("Forms,PrinterSetup,CmdDescription");
  47. }
  48. }
  49. }