Esempio n. 1
0
        /// <summary>
        /// Parameterized Class Constructor
        /// </summary>
        public MetaLocationViewModel(
            BusinessLib.Models.MetaLocationModel locationModel
            , MetaLocationViewModel parent
            )
            : this()
        {
            Parent = parent;

            _LocalName     = locationModel.LocalName;
            ID             = locationModel.ID;
            Latitude       = locationModel.Geo_lat;
            Longitude      = locationModel.Geo_lng;
            TypeOfLocation = locationModel.Type;

            ChildrenClear(false);  // Lazy Load Children !!!
        }
Esempio n. 2
0
        /// <summary>
        /// Parameterized Class Constructor
        /// </summary>
        public MetaLocationModel(
            MetaLocationModel parent
            , int id
            , string iso
            , string localName
            , LocationType type
            , long in_Location
            , double geo_lat
            , double geo_lng
            , string db_id
            )
            : this()
        {
            Parent = parent;

            ID          = id;
            ISO         = iso;
            LocalName   = localName;
            Type        = type;
            In_Location = in_Location;
            Geo_lat     = geo_lat;
            Geo_lng     = geo_lng;
            DB_id       = db_id;
        }
Esempio n. 3
0
 public void ChildrenAdd(MetaLocationModel child)
 {
     _Children.Add(child);
 }
Esempio n. 4
0
 public void SetParent(MetaLocationModel parent)
 {
     Parent = parent;
 }
Esempio n. 5
0
 public void ChildrenRemove(MetaLocationModel child)
 {
     _Children.Remove(child);
 }