Form1.cs 956 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.Net;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. namespace ASYC
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. Form.CheckForIllegalCrossThreadCalls = false;
  18. }
  19. private void button1_Click(object sender, EventArgs e)
  20. {
  21. Gets.Arzon a = new Gets.Arzon(true);
  22. a.InitCompleted += a_InitCompleted;
  23. MessageBox.Show("Wait OK ");
  24. var ms = a.Query(textBox2.Text);
  25. a.GetMovie(ms[0]);
  26. MessageBox.Show("Get Movie!");
  27. }
  28. void a_InitCompleted(object sender, EventArgs e)
  29. {
  30. MessageBox.Show("init OK!");
  31. }
  32. private void button2_Click(object sender, EventArgs e)
  33. {
  34. }
  35. }
  36. }