Esempio n. 1
0
 /// <summary>
 /// Returns <see cref="DuctLocation"/> from user input.
 /// 
 /// As of 04/09/2019 no input checking is provided, this method defaults to <see cref="DuctLocation.NONE"/>.
 /// </summary>
 /// <param name="value">Enum value to find with name of.</param>
 /// <returns>Value of <see cref="DuctLocation"/> corresponding to user input.</returns>
 public static DuctLocation GetDuctLocation(string value)
 {
     DuctLocation ductLocation = DuctLocation.NONE;
     if (Enum.TryParse(value, out ductLocation))
         return ductLocation;
     return DuctLocation.NONE;
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="ductLocation">How the ducts will be located around the coil.</param>
 /// <param name="width">Width of the duct.</param>
 /// <param name="height">Height of the duct.</param>
 public Duct(DuctLocation ductLocation, double width, double height)
 {
     this.DuctLocation = ductLocation;
     this.Width        = width;
     this.Height       = height;
 }