Exemple #1
0
        protected MeasureUnit(MeasureUnitTypes unit, string name, string symbol)
        {
            unitSymbol = symbol;
            unitType   = unit;

            this.name = name;
        }
Exemple #2
0
        public static MeasureUnit FindUnit(MeasureUnitTypes t)
        {
            foreach (var mu in units)
            {
                if (mu.UnitType == t)
                {
                    return(mu);
                }
            }

            return(null);
        }