コード例 #1
0
 public CommodityPrice(Commodity commodity, PriceType type, Guid guid) : base(guid)
 {
     this.Commodity    = commodity;
     this.Type         = type;
     this.PriceHistory = new RelationshipCollection <PricePoint>(this);
 }
コード例 #2
0
 public TradingPort(string name, Guid guid) : base(guid)
 {
     this.Name   = name;
     this.Prices = new RelationshipCollection <CommodityPrice>(this);
 }
コード例 #3
0
 public SCDataManager() : base(Guid.NewGuid())
 {
     this.Commodities  = new RelationshipCollection <Commodity>(this);
     this.TradingPorts = new RelationshipCollection <TradingPort>(this);
 }