Form1.cs 859 B

123456789101112131415161718192021222324252627282930313233343536
  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.Threading.Tasks;
  10. using System.Windows.Forms;
  11. using Y.Utils.IOUtils.FileUtils;
  12. using Y.Utils.IOUtils.PathUtils;
  13. namespace Oreo.FilePackage
  14. {
  15. public partial class Form1 : Form
  16. {
  17. public Form1()
  18. {
  19. InitializeComponent();
  20. }
  21. private void BTPack_Click(object sender, EventArgs e)
  22. {
  23. string src = TBPath.Text;
  24. string file = Path.GetFileName(src) + ".package";
  25. string dst = DirTool.Combine(DirTool.GetFilePath(TBPath.Text), file);
  26. FilePackageTool.Pack(src, dst);
  27. }
  28. private void TBPath_TextChanged(object sender, EventArgs e)
  29. {
  30. }
  31. }
  32. }