ApplicationInfoForm.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using FastReport.Forms;
  3. using FastReport.Utils;
  4. namespace FastReport.Cloud.StorageClient.Dropbox
  5. {
  6. /// <summary>
  7. /// Represents the Application Info diabolg form.
  8. /// </summary>
  9. public partial class ApplicationInfoForm : BaseDialogForm
  10. {
  11. #region Fields
  12. private string accessToken;
  13. #endregion // Fields
  14. #region Properties
  15. /// <summary>
  16. /// Gets the access token.
  17. /// </summary>
  18. public string AccessToken
  19. {
  20. get { return accessToken; }
  21. }
  22. #endregion // Properties
  23. #region Constructors
  24. /// <summary>
  25. /// Initializes a new instance of the <see cref="ApplicationInfoForm"/> class.
  26. /// </summary>
  27. public ApplicationInfoForm()
  28. {
  29. accessToken = "";
  30. InitializeComponent();
  31. Localize();
  32. UIUtils.CheckRTL(this);
  33. }
  34. #endregion // Constructors
  35. #region Public Methods
  36. /// <inheritdoc/>
  37. public override void Localize()
  38. {
  39. base.Localize();
  40. MyRes res = new MyRes("Cloud,Dropbox");
  41. this.Text = res.Get("ApplicationInfoDialog");
  42. labelAccessToken.Text = res.Get("AccessToken");
  43. }
  44. #endregion // Public Methods
  45. #region Events Handlers
  46. private void btnOk_Click(object sender, EventArgs e)
  47. {
  48. accessToken = tbAccessToken.Text;
  49. this.Close();
  50. }
  51. #endregion // Events Handlers
  52. }
  53. }