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(); }