Index: Core/Plugins/src/Core.Plugins.Map/Core.Plugins.Map.csproj =================================================================== diff -u -r1795be9025cb0e054dca86a5275203966c0a9b2a -rcbb68632c994ef71c5fd4a2b3a8749a207553679 --- Core/Plugins/src/Core.Plugins.Map/Core.Plugins.Map.csproj (.../Core.Plugins.Map.csproj) (revision 1795be9025cb0e054dca86a5275203966c0a9b2a) +++ Core/Plugins/src/Core.Plugins.Map/Core.Plugins.Map.csproj (.../Core.Plugins.Map.csproj) (revision cbb68632c994ef71c5fd4a2b3a8749a207553679) @@ -80,6 +80,7 @@ True Resources.resx + Index: Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs =================================================================== diff -u -r84e9dd40942da514fb2f2cb270001e81857b1be4 -rcbb68632c994ef71c5fd4a2b3a8749a207553679 --- Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs (.../MapPlugin.cs) (revision 84e9dd40942da514fb2f2cb270001e81857b1be4) +++ Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs (.../MapPlugin.cs) (revision cbb68632c994ef71c5fd4a2b3a8749a207553679) @@ -20,12 +20,15 @@ // All rights reserved. using System; +using System.Collections.Generic; using Core.Common.Gui; using Core.Common.Gui.Forms; using Core.Common.Gui.Plugin; +using Core.Components.Gis.Data; using Core.Components.Gis.Forms; using Core.Plugins.Map.Commands; using Core.Plugins.Map.Legend; +using Core.Plugins.Map.PropertyClasses; namespace Core.Plugins.Map { @@ -56,6 +59,11 @@ activated = true; } + public override IEnumerable GetPropertyInfos() + { + yield return new PropertyInfo(); + } + public override void Dispose() { if (activated) Index: Core/Plugins/src/Core.Plugins.Map/Properties/Resources.Designer.cs =================================================================== diff -u -ra8bfedc443289dd37ebd3c2304d4c4add4ef7d58 -rcbb68632c994ef71c5fd4a2b3a8749a207553679 --- Core/Plugins/src/Core.Plugins.Map/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision a8bfedc443289dd37ebd3c2304d4c4add4ef7d58) +++ Core/Plugins/src/Core.Plugins.Map/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision cbb68632c994ef71c5fd4a2b3a8749a207553679) @@ -92,6 +92,15 @@ } /// + /// Looks up a localized string similar to Algemeen. + /// + public static string Categories_General { + get { + return ResourceManager.GetString("Categories_General", resourceCulture); + } + } + + /// /// Looks up a localized string similar to Kaart. /// public static string General_Map { @@ -111,6 +120,24 @@ } /// + /// Looks up a localized string similar to Naam van de kaartlaag.. + /// + public static string MapData_Name_Description { + get { + return ResourceManager.GetString("MapData_Name_Description", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Naam. + /// + public static string MapData_Name_DisplayName { + get { + return ResourceManager.GetString("MapData_Name_DisplayName", resourceCulture); + } + } + + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// public static System.Drawing.Bitmap MapIcon { Index: Core/Plugins/src/Core.Plugins.Map/Properties/Resources.resx =================================================================== diff -u -ra8bfedc443289dd37ebd3c2304d4c4add4ef7d58 -rcbb68632c994ef71c5fd4a2b3a8749a207553679 --- Core/Plugins/src/Core.Plugins.Map/Properties/Resources.resx (.../Resources.resx) (revision a8bfedc443289dd37ebd3c2304d4c4add4ef7d58) +++ Core/Plugins/src/Core.Plugins.Map/Properties/Resources.resx (.../Resources.resx) (revision cbb68632c994ef71c5fd4a2b3a8749a207553679) @@ -211,4 +211,13 @@ Kon geen geometrieën vinden in dit bestand. + + Algemeen + + + Naam van de kaartlaag. + + + Naam + \ No newline at end of file Index: Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapPointDataProperties.cs =================================================================== diff -u --- Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapPointDataProperties.cs (revision 0) +++ Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapPointDataProperties.cs (revision cbb68632c994ef71c5fd4a2b3a8749a207553679) @@ -0,0 +1,49 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using Core.Common.Gui.Attributes; +using Core.Common.Gui.PropertyBag; +using Core.Common.Utils.Attributes; +using Core.Components.Gis.Data; +using Core.Plugins.Map.Properties; + +namespace Core.Plugins.Map.PropertyClasses +{ + /// + /// ViewModel of for properties panel. + /// + public class MapPointDataProperties : ObjectProperties + { + private const int namePropertyIndex = 1; + + [PropertyOrder(namePropertyIndex)] + [ResourcesCategory(typeof(Resources), "Categories_General")] + [ResourcesDisplayName(typeof(Resources), "MapData_Name_DisplayName")] + [ResourcesDescription(typeof(Resources), "MapData_Name_Description")] + public string Name + { + get + { + return data.Name; + } + } + } +} \ No newline at end of file