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); }); } }
public MainForm() { InitializeComponent(); PackerTools.Init(toolStripProgressBar, toolStripStatusLabel, SynchronizationContext.Current); }