Form1.cs 846 B

123456789101112131415161718192021222324252627282930313233343536
  1. using Client.MirGraphics;
  2. using System;
  3. using System.Windows.Forms;
  4. namespace ResourceEditor
  5. {
  6. public partial class Form1 : Form
  7. {
  8. MLibrary lib;
  9. public Form1()
  10. {
  11. InitializeComponent();
  12. }
  13. private void libs_DoubleClick(object sender, EventArgs e)
  14. {
  15. switch (libs.SelectedIndex)
  16. {
  17. case 0:
  18. lib = Libraries.Title;
  19. break;
  20. case 1:
  21. lib = Libraries.Mir3Horse;
  22. break;
  23. default:
  24. break;
  25. }
  26. listView1.Items.Clear();
  27. int size = lib.Count;
  28. for (int i = 0; i < size; i++)
  29. {
  30. listView1.Items.Add("位置:" + i);
  31. }
  32. }
  33. }
  34. }