示例#1
0
 private async void ButtonUnpackStart_ClickAsync(object sender, System.EventArgs e)
 {
     if (CheckFileExists(textBoxUnpackTocPath.Text) && CheckFolderExists(textBoxUnpackOutPath.Text))
     {
         buttonUnpackCancel.Enabled = true;
         buttonUnpackStart.Enabled  = false;
         buttonPackStart.Enabled    = false;
         await Task.Run(() =>
         {
             PackerTools.Unpack(textBoxUnpackTocPath.Text, textBoxUnpackOutPath.Text);
         });
     }
 }
示例#2
0
 public MainForm()
 {
     InitializeComponent();
     PackerTools.Init(toolStripProgressBar, toolStripStatusLabel, SynchronizationContext.Current);
 }