Ejemplo n.º 1
0
        public static string ToTASString(this BHE.SimulationDayType dayType)
        {
            switch (dayType)
            {
            case BHE.SimulationDayType.Weekday:
                return("Weekday");

            case BHE.SimulationDayType.Monday:
                return("Monday");

            case BHE.SimulationDayType.Tuesday:
                return("Tuesday");

            case BHE.SimulationDayType.Wednesday:
                return("Wednesday");

            case BHE.SimulationDayType.Thursday:
                return("Thursday");

            case BHE.SimulationDayType.Friday:
                return("Friday");

            case BHE.SimulationDayType.Saturday:
                return("Saturday");

            case BHE.SimulationDayType.Sunday:
                return("Sunday");

            case BHE.SimulationDayType.PublicHoliday:
                return("Public Holiday");

            case BHE.SimulationDayType.CoolingDesignDay:
                return("CDD");

            case BHE.SimulationDayType.HeatingDesignDay:
                return("HDD");

            case BHE.SimulationDayType.Weekend:
                return("Weekend");

            default:
                return("");
            }
        }
Ejemplo n.º 2
0
 public static TBD.dayType ToTAS(this BHE.SimulationDayType dayType, TBD.dayType tbdDayType)
 {
     tbdDayType.name = dayType.ToTASString();
     return(tbdDayType);
 }