Ejemplo n.º 1
0
        private double ConvertTempFromCtoTarget(double temp, string target)
        {
            //supported values need to be listed.
            switch (target)
            {
            case "Farenheit":
                return(GeneralFunctions.ConvCtF(temp));

            case "Kelvin":
                return(GeneralFunctions.ConvCtK(temp));

            case "Rankine":
                return(GeneralFunctions.ConvCtRa(temp));

            case "Delisle":
                return(GeneralFunctions.ConvCtD(temp));

            case "Romer":
                return(GeneralFunctions.ConvCtRo(temp));

            case "Reaumur":
                return(GeneralFunctions.ConvCtRe(temp));

            case "Celsius":
            case "Kraggs":
            default:
                return(temp);
            }
        }