} //End exitToolStripMenuItem_Click (object, EventArgs) /// <summary> /// Handles the Click event of the PostfixGenButton control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void PostfixGenButton_Click(object sender, EventArgs e) { if (InfixTextBox.Text != String.Empty) { PostFix = new PostFix(InfixTextBox.Text); FileListBox.Items.Add(PostFix.InfixExpression); PostfixTextBox.Text = PostFix.PostFixExpession; PostFixs.Add(PostFix); } //End if statement else { MessageBox.Show("Infix box empty"); } //End else statement } //End PostfixGenButton_Click (object, EventArgs)
} //End aboutInfixToPostfixToolStripMenuItem_Click (object, EventArg) /// <summary> /// Handles the Click event of the inputInfixDataHereToolStripMenuItem control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void inputInfixDataHereToolStripMenuItem_Click(object sender, EventArgs e) { try { FilePath = Utility.GetPath(OpenFileTitle, 0); FileData = Utility.LoadDataFile(FilePath); } //End try-statement catch (Exception r) { MessageBox.Show(r.Message); } //End catch-statement for (int i = 0; i < FileData.Count; i++) { PostFix = new PostFix(FileData [i]); PostFixs.Add(PostFix); } //end for loop foreach (PostFix data in PostFixs) { FileListBox.Items.Add(data.InfixExpression); } //end for-each loop } //End inputInfixDataHereToolStripMenuItem_Click (object, EventArgs)