private void btnOK_Click(object sender, EventArgs e) { if (_rows == null || _rows.Length == 0) { SimpleMessage.ShowInfo("No file found"); return; } string outputDir = txtOutputDir.Text; if (!Directory.Exists(outputDir)) { SimpleMessage.ShowInfo("Please choose output directory."); return; } if (_sourceDir != null && _sourceDir.Equals(outputDir)) { Config.DasmOutputDir = String.Empty; } else { Config.DasmOutputDir = outputDir; } Config.DasmAdditionalOptions = txtAdditionalOptions.Text; try { Utils.EnableUI(this.Controls, false); DasmOptions options = new DasmOptions(); options.Host = _host; options.Rows = _rows; options.SourceDir = _sourceDir; options.OutputDir = outputDir; options.TextInfoBox = txtInfo; options.chkBytesChecked = chkBytes.Checked; options.chkTokensChecked = chkTokens.Checked; options.chkTypeListChecked = chkTypeList.Checked; options.chkCAVerbalChecked = chkCAVerbal.Checked; options.chkClassListChecked = chkClassList.Checked; options.chkUnicodeChecked = chkUnicode.Checked; options.chkUTF8Checked = chkUTF8.Checked; options.AdditionalOptions = txtAdditionalOptions.Text; new Disassembler(options).Go(); } catch { throw; } finally { Utils.EnableUI(this.Controls, true); } //this.Close(); }
private void btnOK_Click(object sender, EventArgs e) { if (_rows == null || _rows.Length == 0) { SimpleMessage.ShowInfo("No file found"); return; } string outputDir = txtOutputDir.Text; if (!Directory.Exists(outputDir)) { SimpleMessage.ShowInfo("Please choose output directory."); return; } if (_sourceDir != null && _sourceDir.Equals(outputDir)) Config.DasmOutputDir = String.Empty; else Config.DasmOutputDir = outputDir; Config.DasmAdditionalOptions = txtAdditionalOptions.Text; try { Utils.EnableUI(this.Controls, false); DasmOptions options = new DasmOptions(); options.Host = _host; options.Rows = _rows; options.SourceDir = _sourceDir; options.OutputDir = outputDir; options.TextInfoBox = txtInfo; options.chkBytesChecked = chkBytes.Checked; options.chkTokensChecked = chkTokens.Checked; options.chkTypeListChecked = chkTypeList.Checked; options.chkCAVerbalChecked = chkCAVerbal.Checked; options.chkClassListChecked = chkClassList.Checked; options.chkUnicodeChecked = chkUnicode.Checked; options.chkUTF8Checked = chkUTF8.Checked; options.AdditionalOptions = txtAdditionalOptions.Text; new Disassembler(options).Go(); } catch { throw; } finally { Utils.EnableUI(this.Controls, true); } //this.Close(); }
private void btnHelp_Click(object sender, EventArgs e) { DasmOptions options = new DasmOptions(); options.Host = _host; options.SourceDir = _sourceDir; options.TextInfoBox = txtInfo; new Disassembler(options).Help(); }
public Disassembler(DasmOptions options) : base(options) { }