/// <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()));
            }
        }
Example #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()));
            }
        }