Пример #1
0
 public Cooler(bool state, int beerQuantity, FrostLevel frost)
 {
     this.state = state;
     this.beerQuantity = beerQuantity;
     this.frost = frost;
     this.stateMessage = " ";
 }
 public void FrostMode()
 {
     frostMode++;
     if ((int)frostMode >= Enum.GetNames(typeof(MusicCenterMode)).Length)
     {
         frostMode = 0;
     }
 }
Пример #3
0
 public void SetUkrainianWinterFrost()
 {
     frost = FrostLevel.UkrainianWinter;
 }
Пример #4
0
 public void SetNormalFrost()
 {
     frost = FrostLevel.Normal;
 }
Пример #5
0
 public void SetArcticIceFrost()
 {
     frost = FrostLevel.ArcticIce;
 }
Пример #6
0
 public Cooler(bool state, int beerQuantity, FrostLevel frost)
 {
     this.state = state;
     this.beerQuantity = beerQuantity;
     this.level = frost;
 }
Пример #7
0
 public void On()
 {
     if (!state)
     {
         state = true;
         stateMessage = " ";
         frost = FrostLevel.Normal;
     }
 }
Пример #8
0
 public void Off()
 {
     state = false;
     frost = FrostLevel.Warmy;
 }
Пример #9
0
 public void SetUkrainianWinterFrost()
 {
     if (state)
     {
         frost = FrostLevel.UkrainianWinter;
     }
     else
     {
         stateMessage = "Режим не меняется, холодильник выключен";
     }
 }
Пример #10
0
 public void SetNormalFrost()
 {
     if (state)
     {
         frost = FrostLevel.Normal;
     }
     else
     {
         stateMessage = "Режим не меняется, холодильник выключен";
     }
 }
Пример #11
0
 public void SetArcticIceFrost()
 {
     if (state)
     {
         frost = FrostLevel.ArcticIce;
     }
     else
     {
         stateMessage = "Режим не меняется, холодильник выключен";
     }
 }