Esempio n. 1
0
 public void AddWaterButtonClick(object sender, EventArgs e)
 {
     _tank.ChangeWaterLevel(_tank.FillRate);
 }
Esempio n. 2
0
 public void FullTankEventHandler(WaterLevelEventArgs e)
 {
     Console.WriteLine("FullTankEventHandler: Draining the water tank!");
     _itsTank.ChangeWaterLevel(-_pumpingCapacity);
 }