public Context(StateBase state)
        {
            State = state;

            Console.WriteLine("Create object of context class with initial State.");
        }
 public Context(StateBase state)
 {
     State = state;
 }
Пример #3
0
 public Context(StateBase state)
 {
     _state = state;
     State  = _state;
 }
Пример #4
0
 public PrintMachine(int cost)
 {
     Cost  = cost;
     State = new InitState();
 }
Пример #5
0
 public Context(StateBase state)
 {
     _state = state;
     State = _state;
 }