Form1.cs 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.Windows.Forms;
  9. using Gets;
  10. using System.Threading;
  11. namespace PageCodeParse
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. }
  19. Arzon a;
  20. private void btn_Start_Click(object sender, EventArgs e)
  21. {
  22. a = new Arzon(true);
  23. a.InitCompleted += a_InitCompleted;
  24. }
  25. void a_InitCompleted(object sender, EventArgs e)
  26. {
  27. this.lbl_status.BackColor = Color.Green;
  28. var ms = a.PageParse(new Uri(textBox1.Text));
  29. StringBuilder sb = new StringBuilder();
  30. foreach (AVSORTER.MovieBasic item in ms)
  31. {
  32. sb.AppendLine(item.ToString());
  33. }
  34. MessageBox.Show(sb.ToString());
  35. }
  36. }
  37. }