예제 #1
0
 public Plante(string name, EnumSeason season, int amoungWaterNeded, DateTime datePlanting, bool elked)
 {
     Name             = name;
     Season           = season;
     AmoungWaterNeded = amoungWaterNeded;
     DatePlanting     = datePlanting;
     Elked            = elked;
 }
예제 #2
0
 public ICollection <int> GetTAIDs(EnumSeason enumSeason)
 {
     _touristAttractionIDs = new List <int>();
     try
     {
         _touristAttractionIDs = _oTourerContext.TAttractionSeasonInfos.Where(t => t.Season == (int)enumSeason).Select(i => i.TouristAttractionID).Take(CommonHelper.GenerateRandomNumber(2, 8)).ToList();
         return(_touristAttractionIDs);
     }
     catch (Exception)
     {
         _touristAttractionIDs = null;
         return(_touristAttractionIDs);
     }
 }
예제 #3
0
 public Tree(string name, EnumSeason season, int amoungWaterNeded, DateTime datePlanting, bool elked, EnumKindTree kindTree) : base(name, season, amoungWaterNeded, datePlanting, elked)
 {
     KindTree = kindTree;
 }
예제 #4
0
 public GreenHouse(string greenHouseName, int lineNumber, int potNumber, EnumFrequency supervition, string name, EnumSeason season, int amoungWaterNeded, DateTime datePlanting, bool elked, ConsoleColor flowerColor) : base(name, season, amoungWaterNeded, datePlanting, elked, flowerColor)
 {
     GreenHouseName = greenHouseName;
     LineNumber     = lineNumber;
     PotNumber      = potNumber;
     Supervition    = supervition;
 }
 public ICollection <int> GetTAIDs(EnumSeason enumSeason)
 {
     _touristAttractionIDs = new List <int>();
     _touristAttractionIDs = _oTAttractionSeasonInfoDA.GetTAIDs(enumSeason);
     return(_touristAttractionIDs);
 }
예제 #6
0
 public Flower(string name, EnumSeason season, int amoungWaterNeded, DateTime datePlanting, bool elked, ConsoleColor flowerColor) : base(name, season, amoungWaterNeded, datePlanting, elked)
 {
     FlowerColor = flowerColor;
 }