示例#1
0
文件: Route.cs 项目: wey12138/Wave
        /// <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();
        }
示例#2
0
文件: Route.cs 项目: wey12138/Wave
 /// <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)
 {
 }