示例#1
0
 public void insertCard()
 {
     if (_state is nCs)
     {
         _state = new hC();
         Console.WriteLine("El estado cambio");
         Console.WriteLine(_state.GetType().Name);
     }
 }
示例#2
0
 public void ejctCard()
 {
     _state.ejctCard();
     if (_state is hC)
     {
         _state = new nCs();
         Console.WriteLine("El estado cambio");
         Console.WriteLine(_state.GetType().Name);
     }
 }