Пример #1
0
 internal void FromLocatorInfo(LocatorInfo l)
 {
     if (l == null)
     {
         return;
     }
     this.Name             = l.Name;
     this.DisplayName      = l.DisplayName;
     this.IsDefault        = l.IsDefault;
     this.Url              = l.Url;
     this.LocatorType      = l.LocatorType;
     this.Description      = l.Description;
     this.SpatialReference = l.SpatialReference;
     if (l.LocatorAddressFields != null)
     {
         this.LocatorAddressFields = new List <LocatorAddressField>(l.LocatorAddressFields.Count);
         foreach (LocatorAddressField addressField in l.LocatorAddressFields)
         {
             this.LocatorAddressFields.Add(new LocatorAddressField(addressField));
         }
     }
     else
     {
         this.LocatorAddressFields = null;
     }
 }
Пример #2
0
 internal LocatorInfo Clone()
 {
     LocatorInfo l = new LocatorInfo
     {
         Name = this.Name,
         Url = this.Url,
         DisplayName = this.DisplayName,
         IsDefault = this.IsDefault,
         LocatorType = this.LocatorType,
         Description = this.Description,
         SpatialReference = this.SpatialReference,
     };
     if (this.LocatorAddressFields != null)
     {
         l.LocatorAddressFields = new List<LocatorAddressField>(this.LocatorAddressFields.Count);
         foreach (LocatorAddressField addressField in this.LocatorAddressFields)
         {
             l.LocatorAddressFields.Add(addressField.Clone());
         }
     }
     return l;
 }
Пример #3
0
        internal LocatorInfo Clone()
        {
            LocatorInfo l = new LocatorInfo
            {
                Name             = this.Name,
                Url              = this.Url,
                DisplayName      = this.DisplayName,
                IsDefault        = this.IsDefault,
                LocatorType      = this.LocatorType,
                Description      = this.Description,
                SpatialReference = this.SpatialReference,
            };

            if (this.LocatorAddressFields != null)
            {
                l.LocatorAddressFields = new List <LocatorAddressField>(this.LocatorAddressFields.Count);
                foreach (LocatorAddressField addressField in this.LocatorAddressFields)
                {
                    l.LocatorAddressFields.Add(addressField.Clone());
                }
            }
            return(l);
        }
Пример #4
0
 internal void FromLocatorInfo(LocatorInfo l)
 {
     if (l == null)
         return;
     this.Name = l.Name;
     this.DisplayName = l.DisplayName;
     this.IsDefault = l.IsDefault;
     this.Url = l.Url;
     this.LocatorType = l.LocatorType;
     this.Description = l.Description;
     this.SpatialReference = l.SpatialReference;
     if (l.LocatorAddressFields != null)
     {
         this.LocatorAddressFields = new List<LocatorAddressField>(l.LocatorAddressFields.Count);
         foreach (LocatorAddressField addressField in l.LocatorAddressFields)
         {
             this.LocatorAddressFields.Add(new LocatorAddressField(addressField));
         }
     }
     else
     {
         this.LocatorAddressFields = null;
     }
 }
Пример #5
0
 public LocatorInfo(LocatorInfo locatorInfo)
 {
     FromLocatorInfo(locatorInfo);
 }
Пример #6
0
 public LocatorInfo(LocatorInfo locatorInfo)
 {
     FromLocatorInfo(locatorInfo);
 }