Exemple #1
0
 public MarketSegment(object key, MarketSector parentSector, string name, string code)
     : base(key)
 {
     this.parentSector = parentSector;
     this.name = name;
     this.code = code;
 }
Exemple #2
0
 public MarketSegment(object key, MarketSector parentSector, string name,
                      string code) : base(key)
 {
     this.parentSector = parentSector;
     this.name         = name;
     this.code         = code;
 }
Exemple #3
0
 public MarketSegment(MarketSector parentSector, string name, string code)
     : this(null, parentSector, name, code)
 {
 }
Exemple #4
0
 public static MarketSector ToMarketSector(MarketSectorContract contract)
 {
     MarketSector sector = null;
     if (contract != null)
     {
         sector = new MarketSector(contract.Key, contract.Name);
         foreach (MarketSegmentContract segment in contract.Segments)
         {
             sector.Segments.Add(Converter.ToMarketSegment(segment));
         }
     }
     return sector;
 }
Exemple #5
0
 public static MarketSectorContract ToMarketSectorContract(MarketSector sector)
 {
     MarketSectorContract contract = null;
     if (sector != null)
     {
         contract = new MarketSectorContract();
         contract.Key = sector.Key;
         contract.Name = sector.Name;
         foreach (MarketSegment segment in sector.Segments)
         {
             contract.Segments.Add(Converter.ToMarketSegmentContract(segment));
         }
     }
     return contract;
 }
Exemple #6
0
 public MarketSegment(MarketSector parentSector, string name, string code)
     : this(null, parentSector, name, code)
 {
 }