Esempio n. 1
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public Railway()
 {
     clockSpeedFactor                = new Property <int>(this, DefaultValues.DefaultRailwayClockSpeedFactor);
     commandStationRefs              = new CommandStationRefSet(this);
     locRefs                         = new LocRefSet(this);
     moduleRefs                      = new ModuleRefSet(this);
     moduleConnections               = new ModuleConnectionSet(this);
     locGroups                       = new LocGroupSet(this);
     preferredDccCommandStation      = new Property <EntityRef <CommandStation> >(this, null);
     preferredLocoNetCommandStation  = new Property <EntityRef <CommandStation> >(this, null);
     preferredMotorolaCommandStation = new Property <EntityRef <CommandStation> >(this, null);
     preferredMfxCommandStation      = new Property <EntityRef <CommandStation> >(this, null);
     preferredMqttCommandStation     = new Property <EntityRef <CommandStation> >(this, null);
     mqttHostName                    = new Property <string>(this, DefaultValues.DefaultRailwayMqttHostName);
     mqttPort                        = new Property <int>(this, DefaultValues.DefaultRailwayMqttPort);
     mqttTopic                       = new Property <string>(this, DefaultValues.DefaultRailwayMqttTopic);
 }
Esempio n. 2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public LocGroup()
 {
     locs = new LocRefSet(this);
 }