/// <summary> /// Initializes a new instance of the <see cref="RouteEventSourceProxy" /> class. /// </summary> /// <param name="eventTable">The event table.</param> /// <param name="locatorName">Name of the locator.</param> /// <param name="eventProperties">The event properties.</param> public RouteEventSourceProxy(ITable eventTable, IRouteLocatorName locatorName, IRouteEventProperties eventProperties) { IRouteEventSourceName eventSourceName = new RouteEventSourceNameClass(); eventSourceName.EventProperties = eventProperties; eventSourceName.EventTableName = ((IDataset)eventTable).FullName; eventSourceName.RouteLocatorName = locatorName; this.Name = eventSourceName; this.FeatureClass = (IRouteEventSource)((IName)eventSourceName).Open(); }
/// <summary> /// Initializes a new instance of the <see cref="RouteEventSourceProxy" /> class. /// </summary> /// <param name="eventTable">The event table that contains the event data.</param> /// <param name="routeFeatureClass">The route feature class.</param> /// <param name="eventProperties">The event properties.</param> /// <param name="routeIdIsUnique">if set to <c>true</c> when the route identifier is unique.</param> public RouteEventSourceProxy(ITable eventTable, IFeatureClass routeFeatureClass, IRouteEventProperties eventProperties, bool routeIdIsUnique) : this(eventTable, new RouteMeasureLocatorNameClass { RouteFeatureClassName = ((IDataset)routeFeatureClass).FullName, RouteMeasureUnit = eventProperties.EventMeasureUnit, RouteIDFieldName = eventProperties.EventRouteIDFieldName, RouteIDIsUnique = routeIdIsUnique }, eventProperties) { }