Example #1
0
 private void AddWaterClickImpl()
 {
     if (CurrentAmountOfWater < TotalWaterAmount)
     {
         CurrentAmountOfWater += CapacityOfWater;
         SaveWaterToFile.SaveWaterToFileMethod(CurrentAmountOfWater.ToString(), DaysDifference);
     }
 }
Example #2
0
        private void SubWaterClickImpl()
        {
            if (CurrentAmountOfWater > CapacityOfWater)
            {
                CurrentAmountOfWater -= CapacityOfWater;
            }
            else
            {
                CurrentAmountOfWater = 0;
            }

            SaveWaterToFile.SaveWaterToFileMethod(CurrentAmountOfWater.ToString(), DaysDifference);
        }