Пример #1
0
 public Account(string owner)
 {
     _owner = owner;
     _state = new SilverState(0.0, this);
 }
Пример #2
0
 public SilverState(AccountState state) :
     this(state.Balance, state.Account)
 {
 }
Пример #3
0
 public GoldState(AccountState state)
     : this(state.Balance, state.Account)
 {
 }
Пример #4
0
 public RedState(AccountState state)
 {
     this.balance = state.Balance;
     this.account = state.Account;
     Initialize();
 }