예제 #1
0
파일: Book.cs 프로젝트: otac0n/SharpBooks
 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
파일: Book.cs 프로젝트: otac0n/SharpBooks
 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);
 }