public static SchematicNetworkConfigurationPersistent GetSchematic(RiverSystemScenario scenario) { object tmp; scenario.AuxiliaryInformation.TryGetValue(SchematicNetworkControl.AUX_CONFIG, out tmp); SchematicNetworkConfigurationPersistent schematic = tmp as SchematicNetworkConfigurationPersistent; return(schematic); }
private static PointF SchematicLocationForNode(TIME.DataTypes.NodeLinkNetwork.Node n, SchematicNetworkConfigurationPersistent schematic) { return(schematic.ExistingFeatureShapeProperties.Where(shape => shape.Feature == n).Select(shape => shape.Location).FirstOrDefault()); }
private static PointF SchematicLocationForNode(TIME.DataTypes.NodeLinkNetwork.Node n, SchematicNetworkConfigurationPersistent schematic) { return schematic.ExistingFeatureShapeProperties.Where(shape=>shape.Feature==n).Select(shape=>shape.Location).FirstOrDefault(); }