Пример #1
0
        /// <summary>
        /// Creates an item UnitWeight
        /// </summary>
        /// <param name="unitEnt">Convertible item UnitWeightEnt</param>
        /// <returns>UnitWeight</returns>
        public static UnitWeight NewUnitWeight(UnitWeightEnt unitEnt)
        {
            UnitWeight unitWeight = new UnitWeight();

            unitWeight.Id    = unitEnt.Id;
            unitWeight.Units = unitEnt.Unit;
            return(unitWeight);
        }
Пример #2
0
        void AddUnitWeight(string units)
        {
            UnitWeightEnt unites = new UnitWeightEnt(units);

            Unit.UnitsWeightRepository.AddItem(unites);
        }
Пример #3
0
        /// <summary>
        /// Creates an item UnitWeightEnt
        /// </summary>
        /// <param name="unit">Convertible item UnitWeight</param>
        /// <returns>UnitWeightEnt</returns>
        public static UnitWeightEnt NewUnitWeightEnt(UnitWeight unit)
        {
            UnitWeightEnt unitWeightEnt = new UnitWeightEnt(unit.Units);

            return(unitWeightEnt);
        }
Пример #4
0
 public UnitWeight(UnitWeightEnt unit)
 {
     Id    = unit.Id;
     Units = unit.Unit;
 }