private void Convert()
        {
            try
            {
                decimal userInput      = Decimal.Parse(UserInputTextBox.Text);
                string  initialUnits   = InitialUnitsComboBox.SelectedItem.ToString();
                string  resultingUnits = ResultingUnitsComboBox.SelectedItem.ToString();

                //Format the initial value label to include commas and rounding
                InitialValueLabel.Text = String.Format("{0:#,##0.####}", Decimal.Parse(userInput.ToString()));
                InitialUnitsLabel.Text = initialUnits;

                ResultingValueLabel.Text = resultingUnits;
                ResultingUnitsLabel.Text = resultingUnits;

                decimal result = calculator.Convert(initialUnits, resultingUnits, userInput);

                //Perform rounding operations
                result = decimal.Round(result, 4, MidpointRounding.AwayFromZero);
                string resultString = result.ToString("0.####");
                //Format the result label to include commas
                ResultingValueLabel.Text = String.Format("{0:#,##0.####}", Decimal.Parse(resultString));

                InitialValueLabel.Show();
                InitialUnitsLabel.Show();
                EqualsLabel.Show();
                ResultingUnitsLabel.Show();
                ResultingValueLabel.Show();
            }
            catch (Exception exception)
            {
                //Inform developer about exception in gui
                Console.WriteLine(exception.ToString());
            }
        }
        private void ClearFormToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UserInputTextBox.Clear();

            InitialValueLabel.Hide();
            InitialUnitsLabel.Hide();
            EqualsLabel.Hide();
            ResultingUnitsLabel.Hide();
            ResultingValueLabel.Hide();

            UserInputTextBox.Focus();
        }
 //Hides Converter Menu
 private void HideConverter()
 {
     CategoryLabel.Hide();
     CategoryComboBox.Hide();
     InstructionLabel.Hide();
     ValueOfLabel.Hide();
     UserInputTextBox.Hide();
     FromLabel.Hide();
     InitialUnitsComboBox.Hide();
     ToLabel.Hide();
     ResultingUnitsComboBox.Hide();
     ConvertSubmissionButton.Hide();
     BackButtonLabel.Hide();
     BackButton.Hide();
     DividerLabel.Hide();
     InitialValueLabel.Hide();
     InitialUnitsLabel.Hide();
     EqualsLabel.Hide();
     ResultingUnitsLabel.Hide();
     ResultingValueLabel.Hide();
     //When navigating back to the main menu its important to clear the field values for the ComboBoxes
     ClearUnitsComboBoxes();
 }