//
        // CONSTRUCTOR
        //
        //public NetworkSourceDirections() : base() { }
        public NetworkSourceDirections(IXPathNavigable path) : base(path) {
            // Get Navigator
            XPathNavigator navigator = path.CreateNavigator();

            // <AdminAreaFieldName>
            XPathNavigator navigatorAdminAreaFieldName = navigator.SelectSingleNode("AdminAreaFieldName");
            if (navigatorAdminAreaFieldName != null) {
                this._adminAreaFieldName = navigatorAdminAreaFieldName.Value;
            }

            // <Shields>
            XPathNavigator navigatorShields = navigator.SelectSingleNode("Shields");
            if (navigatorShields != null) {
                this._shields = new Shields(navigatorShields);
            }
            else {
                this._shields = new Shields();
            }

            // <StreetNameFields><StreetNameFields>
            this._streetNameFields = new List<StreetNameFields>();
            XPathNodeIterator interatorStreetNameFields = navigator.Select("StreetNameFields/StreetNameFields");
            while (interatorStreetNameFields.MoveNext()) {
                // Get <StreetNameFields>
                XPathNavigator navigatorStreetNameFields = interatorStreetNameFields.Current;

                // Add StreetNameFields
                StreetNameFields streetNameFields = new StreetNameFields(navigatorStreetNameFields);
                this._streetNameFields.Add(streetNameFields);
            }
        }
 public NetworkSourceDirections(NetworkSourceDirections prototype) : base(prototype)
 {
     this._adminAreaFieldName = prototype.AdminAreaFieldName;
     this._shields            = (Shields)prototype.Shields.Clone();
     this._streetNameFields   = new List <StreetNameFields>();
     foreach (StreetNameFields streetNameFields in prototype.StreetNameFieldsCollection)
     {
         StreetNameFields streetNameFieldsClone = (StreetNameFields)streetNameFields.Clone();
         this._streetNameFields.Add(streetNameFieldsClone);
     }
 }
Пример #3
0
 public Shields(Shields prototype) : base(prototype)
 {
     this._typeFieldName     = prototype.TypeFieldName;
     this._numberFieldName   = prototype.NumberFieldName;
     this._combinedFieldName = prototype.CombinedFieldName;
     this._useCombinedField  = prototype.UseCombinedField;
     this._shields           = new List <Shield>();
     foreach (Shield shield in prototype.ShieldCollection)
     {
         Shield shieldClone = (Shield)shield.Clone();
         this._shields.Add(shieldClone);
     }
 }
        //
        // CONSTRUCTOR
        //
        //public NetworkSourceDirections() : base() { }
        public NetworkSourceDirections(IXPathNavigable path) : base(path)
        {
            // Get Navigator
            XPathNavigator navigator = path.CreateNavigator();

            // <AdminAreaFieldName>
            XPathNavigator navigatorAdminAreaFieldName = navigator.SelectSingleNode("AdminAreaFieldName");

            if (navigatorAdminAreaFieldName != null)
            {
                this._adminAreaFieldName = navigatorAdminAreaFieldName.Value;
            }

            // <Shields>
            XPathNavigator navigatorShields = navigator.SelectSingleNode("Shields");

            if (navigatorShields != null)
            {
                this._shields = new Shields(navigatorShields);
            }
            else
            {
                this._shields = new Shields();
            }

            // <StreetNameFields><StreetNameFields>
            this._streetNameFields = new List <StreetNameFields>();
            XPathNodeIterator interatorStreetNameFields = navigator.Select("StreetNameFields/StreetNameFields");

            while (interatorStreetNameFields.MoveNext())
            {
                // Get <StreetNameFields>
                XPathNavigator navigatorStreetNameFields = interatorStreetNameFields.Current;

                // Add StreetNameFields
                StreetNameFields streetNameFields = new StreetNameFields(navigatorStreetNameFields);
                this._streetNameFields.Add(streetNameFields);
            }
        }
 public NetworkSourceDirections(NetworkSourceDirections prototype) : base(prototype) {
     this._adminAreaFieldName = prototype.AdminAreaFieldName;
     this._shields = (Shields)prototype.Shields.Clone();
     this._streetNameFields = new List<StreetNameFields>();
     foreach (StreetNameFields streetNameFields in prototype.StreetNameFieldsCollection) {
         StreetNameFields streetNameFieldsClone = (StreetNameFields)streetNameFields.Clone();
         this._streetNameFields.Add(streetNameFieldsClone);
     }
 }
 public NetworkSourceDirections(SerializationInfo info, StreamingContext context) : base(info, context) {
     this._adminAreaFieldName = info.GetString("adminAreaFieldName");
     this._shields = (Shields)info.GetValue("shields", typeof(Shields));
     this._streetNameFields = (List<StreetNameFields>)info.GetValue("streetNameFields", typeof(List<StreetNameFields>));
 }
 public NetworkSourceDirections(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     this._adminAreaFieldName = info.GetString("adminAreaFieldName");
     this._shields            = (Shields)info.GetValue("shields", typeof(Shields));
     this._streetNameFields   = (List <StreetNameFields>)info.GetValue("streetNameFields", typeof(List <StreetNameFields>));
 }
Пример #8
0
 public Shields(Shields prototype) : base(prototype) {
     this._typeFieldName = prototype.TypeFieldName;
     this._numberFieldName = prototype.NumberFieldName;
     this._combinedFieldName = prototype.CombinedFieldName;
     this._useCombinedField = prototype.UseCombinedField;
     this._shields = new List<Shield>();
     foreach (Shield shield in prototype.ShieldCollection) {
         Shield shieldClone = (Shield)shield.Clone();
         this._shields.Add(shieldClone);
     }
 }