FormMain.cs 791 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. namespace ToolsMPQ
  11. {
  12. public partial class FormMain : Form
  13. {
  14. public FormMain()
  15. {
  16. InitializeComponent();
  17. }
  18. private void button1_Click(object sender, EventArgs e)
  19. {
  20. OpenFileDialog fd = new OpenFileDialog();
  21. fd.DefaultExt = ".mpq";
  22. if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
  23. {
  24. new FormUnarchive(new FileInfo(fd.FileName)).Show();
  25. }
  26. }
  27. private void button2_Click(object sender, EventArgs e)
  28. {
  29. }
  30. }
  31. }