Beispiel #1
0
        /// <summary>
        /// Handles the SelectedIndexChanged event of the listBox1 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 listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            InfixExpression.Text = InputDataInfix.SelectedItem.ToString();
            Postfix displayPostFix = new Postfix();

            PostfixExpression.Text = displayPostFix.InfixToPostfixConvert(InfixExpression.Text);
        }
Beispiel #2
0
        /// <summary>
        /// Handles the Click event of the button1 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 button1_Click(object sender, EventArgs e)
        {
            Postfix displayPostFix = new Postfix();

            PostfixExpression.Text = displayPostFix.InfixToPostfixConvert(InfixExpression.Text);
        }