/// <summary> /// It calls the execute method in the Operations class /// Checks the type of operation to be carried out /// Performs the operations /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonEquals_Click(object sender, EventArgs e) { secondNumb = double.Parse(textBoxResult.Text); textBoxResult.Text = Execute.Calculate(firstNumb.ToString(), secondNumb.ToString(), operation); }