예제 #1
0
 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();
 }
예제 #2
0
        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);
        }
예제 #3
0
 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);
     }
 }