Пример #1
0
 public Book()
 {
     this.securitiesReadOnly = new ReadOnlyCollectionWrapper<Security>(this.securities);
     this.accountsReadOnly = new ReadOnlyCollectionWrapper<Account>(this.accounts);
     this.rootAccountsReadOnly = new ReadOnlyCollectionWrapper<Account>(this.rootAccounts);
     this.priceQuotesReadOnly = new ReadOnlyCollectionWrapper<PriceQuote>(this.priceQuotes);
     this.settingsReadOnly = new ReadOnlyDictionary<string, string>(this.settings);
     this.readOnlyFacade = new ReadOnlyBook(this);
 }
Пример #2
0
 public Book()
 {
     this.Securities     = new ReadOnlyCollectionWrapper <Security>(this.securities);
     this.Accounts       = new ReadOnlyCollectionWrapper <Account>(this.accounts);
     this.RootAccounts   = new ReadOnlyCollectionWrapper <Account>(this.rootAccounts);
     this.PriceQuotes    = new ReadOnlyCollectionWrapper <PriceQuote>(this.priceQuotes);
     this.Settings       = new ReadOnlyDictionary <string, string>(this.settings);
     this.readOnlyFacade = new ReadOnlyBook(this);
 }