private void buttonCalculate_Click(object sender, EventArgs e) { hex = new HexVitals(); _measurementTypeIndex = comboBoxSelectStartingMeasurement.SelectedIndex; try { if (IsValidData()) { hex.DeriveSideLength(_measurementTypeIndex, _startingMeasurement); } } catch (Exception ex) { MessageBox.Show(ex.Message, ex.GetType().ToString()); textBoxStartingMeasurement.Focus(); } DisplayHexInformation(); }
public void TestMeasurementTypeSix() { var vitals = new HexVitals(); vitals.DeriveSideLength(6, 6.0); Approvals.Approve(vitals.GetPropertiesAsString()); }