private void bool2TruthBtn_Click(object sender, EventArgs e) { if (!this.checkEquation(this.bexpText.Text)) { return; } this.truthtable.createTruthTable(this.bexpText.Text, FileSave.grabOptions().useBinary); int num = (int)this.truthtable.ShowDialog(); }
private void exportTableBtn_Click(object sender, EventArgs e) { this.saveTableDia.InitialDirectory = FileSave.grabOptions().defaultPath; int num = (int)this.saveTableDia.ShowDialog(); if (!(this.saveTableDia.FileName != "")) { return; } this.exportTable(this.theTable, this.saveTableDia.FileName); }
public void grabOptions() { FileSave.OptionData optionData = FileSave.grabOptions(); if (optionData.defaultPath != null) { this.useTrueFalseCheck.Checked = !optionData.useBinary; this.defaultPathTxt.Text = optionData.defaultPath; } else { this.useTrueFalseCheck.Checked = false; this.defaultPathTxt.Text = "C:/"; FileSave.saveOptions("C:/", true); } }