예제 #1
0
 /// <summary>
 /// Adds the specified property pair to this join
 /// </summary>
 /// <param name="rel"></param>
 /// <param name="primary"></param>
 /// <param name="secondary"></param>
 public static void AddRelateProperty(this IAttributeRelation rel, string primary, string secondary)
 {
     Check.ArgumentNotNull(rel, nameof(rel));
     rel.AddRelateProperty(new RelatePropertyType()
     {
         FeatureClassProperty = primary, AttributeClassProperty = secondary
     });
 }
 /// <summary>
 /// Adds the specified property pair to this join
 /// </summary>
 /// <param name="rel"></param>
 /// <param name="primary"></param>
 /// <param name="secondary"></param>
 public static void AddRelateProperty(this IAttributeRelation rel, string primary, string secondary)
 {
     Check.NotNull(rel, "rel"); //NOXLATE
     rel.AddRelateProperty(new OSGeo.MapGuide.ObjectModels.FeatureSource.v1_0_0.RelatePropertyType()
     {
         FeatureClassProperty = primary, AttributeClassProperty = secondary
     });
 }
        private void OnPropertyJoinListChanged(object sender, ListChangedEventArgs e)
        {
            switch (e.ListChangedType)
            {
            case ListChangedType.ItemAdded:
                _rel.AddRelateProperty(_propertyJoins[e.NewIndex]);
                break;

            case ListChangedType.Reset:
                _rel.RemoveAllRelateProperties();
                break;
            }
        }