private void setState() { switch (StateId) { case 1: _stateMachine = new TableOpen(); break; case 2: _stateMachine = new TableClosed(); break; case 3: _stateMachine = new TableOccupied(); break; } }
private void setState() { switch (StateId) { case 1: _stateMachine = new AreaOpen(); break; case 2: _stateMachine = new AreaClosed(); break; } }