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; } }
public void SetUkrainianWinterFrost() { frost = FrostLevel.UkrainianWinter; }
public void SetNormalFrost() { frost = FrostLevel.Normal; }
public void SetArcticIceFrost() { frost = FrostLevel.ArcticIce; }
public Cooler(bool state, int beerQuantity, FrostLevel frost) { this.state = state; this.beerQuantity = beerQuantity; this.level = frost; }
public void On() { if (!state) { state = true; stateMessage = " "; frost = FrostLevel.Normal; } }
public void Off() { state = false; frost = FrostLevel.Warmy; }
public void SetUkrainianWinterFrost() { if (state) { frost = FrostLevel.UkrainianWinter; } else { stateMessage = "Режим не меняется, холодильник выключен"; } }
public void SetNormalFrost() { if (state) { frost = FrostLevel.Normal; } else { stateMessage = "Режим не меняется, холодильник выключен"; } }
public void SetArcticIceFrost() { if (state) { frost = FrostLevel.ArcticIce; } else { stateMessage = "Режим не меняется, холодильник выключен"; } }