Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public void TestMeasurementTypeSix()
 {
     var vitals = new HexVitals();
     vitals.DeriveSideLength(6, 6.0);
     Approvals.Approve(vitals.GetPropertiesAsString());
 }