示例#1
0
 public void AddTemp(int temp)
 {
     _state.AddTemp(temp);
     Console.WriteLine("Increased temperature by {0} degrees.", temp);
     Console.WriteLine(" Current temp is {0}", CurrentTemp);
     Console.WriteLine(" Status is {0}", State.GetType().Name);
     Console.WriteLine("");
 }
 public void AddTemp(double amount)
 {
     _state.AddTemp(amount);
 }