private void doPack(object files, bool trucha) { string input = ((string[])files)[0]; string output = ((string[])files)[1]; try { WAD w = new WAD(); w.CreateNew(input); w.KeepOriginalFooter = true; w.FakeSign = trucha; w.Save(output); } catch (Exception ex) { return; } }
private void doPack(object files) { setControls(false, true); string input = ((string[])files)[0]; string output = ((string[])files)[1]; try { WAD w = new WAD(); w.Progress +=new EventHandler<System.ComponentModel.ProgressChangedEventArgs>(pack_Progress); w.CreateNew(input); w.FakeSign = fakesign; w.Save(output); MessageBox.Show("Successfully packed WAD to:\n" + output, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { setControls(true, true); } }