private double ConvertFSXVariableToDouble(SIMCONNECT_DATATYPE fsxType, FSXUnit fsxUnit, object value)
 {
     if (fsxUnit == FSXUnit.Frequency_BCD16)
     {
         return(bcd16todouble(Convert.ToInt32(value)));
     }
     return(Convert.ToDouble(value));
 }
        private string FSXUnitToFSXUnitName(FSXUnit type)
        {
            switch (type)
            {
            case FSXUnit.Frequency_BCD16:
                return("Frequency BCD16");

            case FSXUnit.Percent_Over_100:
                return("Percent Over 100");

            default:
                return(type.ToString());
            }
        }
 private int ConvertFSXVariableToInt(SIMCONNECT_DATATYPE fsxType, FSXUnit fsxUnit, object value)
 {
     return(Convert.ToInt32(value));
 }