示例#1
0
 public void OnIncrease()
 {
     Number++;
     if (Number > MaxValue)
     {
         Number = MaxValue;
         if (PrevDisplay != null)
         {
             PrevDisplay.OnIncrease();
             Number = MinValue;
         }
     }
 }