CaptchaForm.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace Steam_Desktop_Authenticator
  11. {
  12. public partial class CaptchaForm : Form
  13. {
  14. public bool Canceled = false;
  15. public string CaptchaGID = "";
  16. public string CaptchaURL = "";
  17. public string CaptchaCode
  18. {
  19. get
  20. {
  21. return this.txtBox.Text;
  22. }
  23. }
  24. public CaptchaForm(string GID)
  25. {
  26. this.CaptchaGID = GID;
  27. this.CaptchaURL = "https://steamcommunity.com/public/captcha.php?gid=" + GID;
  28. InitializeComponent();
  29. this.pictureBoxCaptcha.Load(CaptchaURL);
  30. }
  31. private void btnAccept_Click(object sender, EventArgs e)
  32. {
  33. this.Canceled = false;
  34. this.Close();
  35. }
  36. private void btnCancel_Click(object sender, EventArgs e)
  37. {
  38. this.Canceled = true;
  39. this.Close();
  40. }
  41. }
  42. }