コード例 #1
0
ファイル: main.cs プロジェクト: staherianYMCA/test
 public Automat(int n)
 {
     _count                = n;
     _waitingState         = new WaitingState(this);
     _gotApplicationState  = new GotApplicationState(this);
     _apartmentRentedState = new ApartmentRentedState(this);
     _fullyRentedState     = new FullyRentedState(this);
     _state                = _waitingState;
 }
コード例 #2
0
ファイル: State.cs プロジェクト: LukinEgor/Design-Pattern
 public Automat(Int32 n)
 {
     _count = n;
     _waitingState = new WaitingState(this);
     _gotApplicationState = new GotApplicationState(this);
     _apartmentRentedState = new ApartmentRentedState(this);
     _fullyRentedState = new FullyRentedState(this);
     _state = _waitingState;
 }
コード例 #3
0
 public Automat(Int32 n)
 {
     count                 = n;
     waitingState          = new WaitingState(this);
     gotApplicationState   = new GotApplicationState(this);
     appartmentRentedState = new ApartmentRentedState(this);
     fullyRentedState      = new FullyRenteState(this);
     state                 = waitingState;
 }
コード例 #4
0
ファイル: main.cs プロジェクト: staherianYMCA/test
 public void SetState(IAutomatState s)
 {
     _state = s;
 }
コード例 #5
0
ファイル: State.cs プロジェクト: LukinEgor/Design-Pattern
 public void SetState(IAutomatState s) { _state = s; }