Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TreeWatch.SettingsViewModel"/> class.
        /// </summary>
        /// <param name="mapContentPage">Map content page.</param>
        public SettingsViewModel(MapContentPage mapContentPage)
        {
            FieldMap = mapContentPage.Content as FieldMap;
            this.MapTypes = new List<MType>();

            foreach (var name in Enum.GetValues(typeof(MapType)))
            {
                this.MapTypes.Add(new MType(name.ToString()));
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TreeWatch.SettingsViewModel"/> class.
        /// </summary>
        /// <param name="mapContentPage">Map content page.</param>
        public SettingsViewModel(MapContentPage mapContentPage)
        {
            FieldMap      = mapContentPage.Content as FieldMap;
            this.MapTypes = new List <MType>();

            foreach (var name in Enum.GetValues(typeof(MapType)))
            {
                this.MapTypes.Add(new MType(name.ToString()));
            }
        }