// 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 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 General Public License for more details.
//
// You should have received a copy of the GNU 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 System.ComponentModel;
using Core.Common.Base.Data;
using Core.Common.Gui.Attributes;
using Core.Common.Gui.PropertyBag;
using Core.Common.Utils.Attributes;
using Ringtoets.GrassCoverErosionInwards.Data;
using Ringtoets.GrassCoverErosionInwards.Forms.Properties;
namespace Ringtoets.GrassCoverErosionInwards.Forms.PropertyClasses
{
///
/// ViewModel of for properties panel.
///
public class DikeProfileProperties : ObjectProperties
{
private const int namePropertyIndex = 1;
private const int orientationPropertyIndex = 2;
private const int breakWaterPropertyIndex = 3;
private const int foreshorePropertyIndex = 4;
private const int dikeGeometryPropertyIndex = 5;
private const int dikeHeightPropertyIndex = 6;
[PropertyOrder(namePropertyIndex)]
[ResourcesCategory(typeof(Common.Data.Properties.Resources), "Categories_General")]
[ResourcesDisplayName(typeof(Resources), "DikeProfile_Name_DisplayName")]
[ResourcesDescription(typeof(Resources), "DikeProfile_Name_Description")]
public string Name
{
get
{
return data.Name;
}
}
[PropertyOrder(orientationPropertyIndex)]
[ResourcesCategory(typeof(Resources), "Categories_Schematisation")]
[ResourcesDisplayName(typeof(Resources), "Orientation_DisplayName")]
[ResourcesDescription(typeof(Resources), "Orientation_Description")]
public RoundedDouble Orientation
{
get
{
return data.Orientation;
}
}
[PropertyOrder(breakWaterPropertyIndex)]
[TypeConverter(typeof(ExpandableObjectConverter))]
[ResourcesCategory(typeof(Resources), "Categories_Schematisation")]
[ResourcesDisplayName(typeof(Resources), "BreakWaterProperties_DisplayName")]
[ResourcesDescription(typeof(Resources), "BreakWaterProperties_Description")]
public DikeProfileBreakWaterProperties BreakWater
{
get
{
return new DikeProfileBreakWaterProperties
{
Data = data
};
}
}
[PropertyOrder(foreshorePropertyIndex)]
[TypeConverter(typeof(ExpandableObjectConverter))]
[ResourcesCategory(typeof(Resources), "Categories_Schematisation")]
[ResourcesDisplayName(typeof(Resources), "ForeshoreProperties_DisplayName")]
[ResourcesDescription(typeof(Resources), "ForeshoreProperties_Description")]
public DikeProfileForeshoreProperties Foreshore
{
get
{
return new DikeProfileForeshoreProperties
{
Data = data
};
}
}
[PropertyOrder(dikeGeometryPropertyIndex)]
[TypeConverter(typeof(ExpandableObjectConverter))]
[ResourcesCategory(typeof(Resources), "Categories_Schematisation")]
[ResourcesDisplayName(typeof(Resources), "DikeGeometryProperties_DisplayName")]
[ResourcesDescription(typeof(Resources), "DikeGeometryProperties_Description")]
public DikeProfileDikeGeometryProperties DikeGeometry
{
get
{
return new DikeProfileDikeGeometryProperties
{
Data = data
};
}
}
[PropertyOrder(dikeHeightPropertyIndex)]
[ResourcesCategory(typeof(Resources), "Categories_Schematisation")]
[ResourcesDisplayName(typeof(Resources), "DikeHeight_DisplayName")]
[ResourcesDescription(typeof(Resources), "DikeHeight_Description")]
public RoundedDouble DikeHeight
{
get
{
return data.DikeHeight;
}
}
}
}