Esempio n. 1
0
 public RainBarrel(int content, BarrelSize capacity)
 {
     Content  = content;
     Capacity = (int)capacity;
 }
Esempio n. 2
0
 public RainBarrel(BarrelSize size, double content = 0, string name = "Rain Barrel")
 {
     Content = content;
     Name    = name;
     Size    = (double)size;
 }
Esempio n. 3
0
 public RainBarrel(int content, BarrelSize size)
 {
     Content  = Math.Max(0, content);
     Capacity = (int)size;
 }