예제 #1
0
        //============================================================================*
        // OnMOAChanged()
        //============================================================================*

        public void OnMOAChanged(Object sender, EventArgs e)
        {
            double dMOA = Math.Round(MOATextBox.Value);

            m_LastAngleTextBox = MOATextBox;
            m_dLastAngleValue  = MOATextBox.Value;

            MilsTextBox.Value = cConversions.MOAToMils(dMOA);

            SetMOALabels();
        }
예제 #2
0
        //============================================================================*
        // OnMSChanged()
        //============================================================================*

        public void OnMSChanged(Object sender, EventArgs e)
        {
            double dMS = Math.Round(MSTextBox.Value);

            m_LastVelocityTextBox = MSTextBox;
            m_dLastVelocityValue  = MSTextBox.Value;

            FPSTextBox.Value = cConversions.MSToFPS(dMS);
            MPHTextBox.Value = cConversions.MSToMPH(dMS);
            KPHTextBox.Value = cConversions.MSToKPH(dMS);
        }
예제 #3
0
        //============================================================================*
        // OnKPHChanged()
        //============================================================================*

        public void OnKPHChanged(Object sender, EventArgs e)
        {
            double dKPH = Math.Round(KPHTextBox.Value);

            m_LastVelocityTextBox = KPHTextBox;
            m_dLastVelocityValue  = KPHTextBox.Value;

            FPSTextBox.Value = cConversions.MPHToFPS(dKPH);
            MSTextBox.Value  = cConversions.MPHToMS(dKPH);
            MPHTextBox.Value = cConversions.KPHToMPH(dKPH);
        }
예제 #4
0
        //============================================================================*
        // OnFPSChanged()
        //============================================================================*

        public void OnFPSChanged(Object sender, EventArgs e)
        {
            double dFPS = Math.Round(FPSTextBox.Value);

            m_LastVelocityTextBox = FPSTextBox;
            m_dLastVelocityValue  = FPSTextBox.Value;

            MSTextBox.Value  = cConversions.FPSToMS(dFPS);
            MPHTextBox.Value = cConversions.FPSToMPH(dFPS);
            KPHTextBox.Value = cConversions.FPSToKPH(dFPS);
        }
예제 #5
0
        //============================================================================*
        // OnPoundsChanged()
        //============================================================================*

        public void OnPoundsChanged(Object sender, EventArgs e)
        {
            double dPounds = Math.Round(PoundsTextBox.Value);

            m_LastWeightTextBox = PoundsTextBox;
            m_dLastWeightValue  = PoundsTextBox.Value;

            MilligramsTextBox.Value = cConversions.PoundsToMilligrams(dPounds);
            GramsTextBox.Value      = cConversions.PoundsToGrams(dPounds);
            GrainsTextBox.Value     = Math.Round(cConversions.PoundsToGrains(dPounds));
            OuncesTextBox.Value     = cConversions.PoundsToOunces(dPounds);
            KilosTextBox.Value      = Math.Round(cConversions.PoundsToKilos(dPounds));
        }
예제 #6
0
        //============================================================================*
        // OnOuncesChanged()
        //============================================================================*

        public void OnOuncesChanged(Object sender, EventArgs e)
        {
            double dOunces = Math.Round(OuncesTextBox.Value);

            m_LastWeightTextBox = OuncesTextBox;
            m_dLastWeightValue  = OuncesTextBox.Value;

            MilligramsTextBox.Value = cConversions.OuncesToMilligrams(dOunces);
            GramsTextBox.Value      = cConversions.OuncesToGrams(dOunces);
            GrainsTextBox.Value     = cConversions.OuncesToGrains(dOunces);
            PoundsTextBox.Value     = cConversions.OuncesToPounds(dOunces);
            KilosTextBox.Value      = cConversions.OuncesToKilos(dOunces);
        }
예제 #7
0
        //============================================================================*
        // OnMilligramsChanged()
        //============================================================================*

        public void OnMilligramsChanged(Object sender, EventArgs e)
        {
            double dMilligrams = Math.Round(MilligramsTextBox.Value, 6);

            m_LastWeightTextBox = MilligramsTextBox;
            m_dLastWeightValue  = MilligramsTextBox.Value;

            PoundsTextBox.Value = cConversions.MilligramsToPounds(dMilligrams);
            GramsTextBox.Value  = cConversions.MilligramsToGrams(dMilligrams);
            GrainsTextBox.Value = cConversions.MilligramsToGrains(dMilligrams);
            OuncesTextBox.Value = cConversions.MilligramsToOunces(dMilligrams);
            KilosTextBox.Value  = cConversions.MilligramsToKilos(dMilligrams);
        }
예제 #8
0
        //============================================================================*
        // OnKilosChanged()
        //============================================================================*

        public void OnKilosChanged(Object sender, EventArgs e)
        {
            double dKilos = Math.Round(KilosTextBox.Value);

            m_LastWeightTextBox = KilosTextBox;
            m_dLastWeightValue  = KilosTextBox.Value;

            PoundsTextBox.Value     = Math.Round(cConversions.KilosToPounds(dKilos));
            MilligramsTextBox.Value = cConversions.KilosToMilligrams(dKilos);
            GrainsTextBox.Value     = cConversions.KilosToGrains(dKilos);
            OuncesTextBox.Value     = cConversions.KilosToOunces(dKilos);
            GramsTextBox.Value      = Math.Round(cConversions.KilosToGrams(dKilos));
        }
예제 #9
0
        //============================================================================*
        // OnYardsChanged()
        //============================================================================*

        public void OnYardsChanged(Object sender, EventArgs e)
        {
            double dYards = Math.Round(YardsTextBox.Value);

            m_LastMeasurementTextBox = YardsTextBox;
            m_dLastMeasurementValue  = YardsTextBox.Value;

            InchesTextBox.Value = cConversions.YardsToInches(dYards);
            FeetTextBox.Value   = cConversions.YardsToFeet(dYards);
            MilesTextBox.Value  = cConversions.YardsToMiles(dYards);

            MillimetersTextBox.Value = cConversions.YardsToMillimeters(dYards);
            CentimetersTextBox.Value = cConversions.YardsToCentimeters(dYards);
            MetersTextBox.Value      = cConversions.YardsToMeters(dYards);
            KilometersTextBox.Value  = cConversions.YardsToKilometers(dYards);

            SetMOALabels();
        }
예제 #10
0
        //============================================================================*
        // OnFeetChanged()
        //============================================================================*

        public void OnFeetChanged(Object sender, EventArgs e)
        {
            double dFeet = Math.Round(FeetTextBox.Value);

            m_LastMeasurementTextBox = FeetTextBox;
            m_dLastMeasurementValue  = FeetTextBox.Value;

            MillimetersTextBox.Value = cConversions.FeetToMillimeters(dFeet);
            InchesTextBox.Value      = cConversions.FeetToInches(dFeet);
            YardsTextBox.Value       = cConversions.FeetToYards(dFeet);
            MilesTextBox.Value       = cConversions.FeetToMiles(dFeet);

            CentimetersTextBox.Value = cConversions.FeetToCentimeters(dFeet);
            MetersTextBox.Value      = cConversions.FeetToMeters(dFeet);
            KilometersTextBox.Value  = cConversions.FeetToKilometers(dFeet);

            SetMOALabels();
        }