Beispiel #1
0
        public static SchematicNetworkConfigurationPersistent GetSchematic(RiverSystemScenario scenario)
        {
            object tmp;

            scenario.AuxiliaryInformation.TryGetValue(SchematicNetworkControl.AUX_CONFIG, out tmp);
            SchematicNetworkConfigurationPersistent schematic = tmp as SchematicNetworkConfigurationPersistent;

            return(schematic);
        }
Beispiel #2
0
 private static PointF SchematicLocationForNode(TIME.DataTypes.NodeLinkNetwork.Node n, SchematicNetworkConfigurationPersistent schematic)
 {
     return(schematic.ExistingFeatureShapeProperties.Where(shape => shape.Feature == n).Select(shape => shape.Location).FirstOrDefault());
 }
Beispiel #3
0
 private static PointF SchematicLocationForNode(TIME.DataTypes.NodeLinkNetwork.Node n, SchematicNetworkConfigurationPersistent schematic)
 {
     return schematic.ExistingFeatureShapeProperties.Where(shape=>shape.Feature==n).Select(shape=>shape.Location).FirstOrDefault();
 }