AskLoginPasswordForm.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8. using FastReport.Utils;
  9. namespace FastReport.Forms
  10. {
  11. internal partial class AskLoginPasswordForm : BaseDialogForm
  12. {
  13. public string Login
  14. {
  15. get { return tbLogin.Text; }
  16. }
  17. public string Password
  18. {
  19. get { return tbPassword.Text; }
  20. }
  21. public override void Localize()
  22. {
  23. base.Localize();
  24. MyRes res = new MyRes("Forms,AskLoginPassword");
  25. Text = res.Get("");
  26. lblLogin.Text = res.Get("Login");
  27. lblPassword.Text = res.Get("Password");
  28. }
  29. public override void UpdateDpiDependencies()
  30. {
  31. base.UpdateDpiDependencies();
  32. pbPicture.Image = GetImage("Images.Password.png");
  33. }
  34. public AskLoginPasswordForm()
  35. {
  36. InitializeComponent();
  37. Localize();
  38. UIUtils.CheckRTL(this);
  39. UpdateDpiDependencies();
  40. }
  41. }
  42. }