You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/UCDraw/SigmaDrawerWellElement/WellSandstoneInTrackDataSet...

105 lines
2.9 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Drawing.Design;
using System.Xml.Serialization;
using GeoSigma.SigmaDrawerStyle;
using SigmaDrawerStyle;
using System.Drawing;
namespace GeoSigma.SigmaDrawerElement
{
#pragma warning disable SA1402 // File may only contain a single type
#pragma warning disable SA1600 // Elements should be documented
#pragma warning disable SA1649 // File name should match first type name
[XmlRoot("Pcg")]
[TypeConverter(typeof(PropertySorter))]
public class WellSandstoneInTrackDataSetting : baseInTrackObj
{
private const string innerLayerCategory = "\t\t砂岩厚度";
[XmlIgnore]
[Category(innerLayerCategory)]
[DisplayName("顶深")]
[PropertyOrder(0)]
public double TopDepth
{
get => sandStoneLayer.Top;
set
{
sandStoneLayer.Top = value;
}
}
[XmlIgnore]
[Category(innerLayerCategory)]
[DisplayName("底深")]
[PropertyOrder(1)]
public double BottomDepth
{
get => sandStoneLayer.Bottom;
set
{
sandStoneLayer.Bottom = value;
}
}
//[XmlIgnore]
//[PropertyOrder(7)]
//[Category(innerLayerCategory)]
//[DisplayName("字体")]
//[Editor(typeof(PropertyEditorWellFontEx), typeof(UITypeEditor))]
//public WellFontEx CoreDataFont
//{
// get => LayerStyleHelper.GetFontEx(innerLayer.Style);
// set => LayerStyleHelper.SetFontEx(innerLayer.Style, value);
//}
//[XmlIgnore]
//[Category(innerLayerCategory)]
//[DisplayName("类型")]
//[PropertyOrder(2)]
//public string type
//{
// get => innerLayer.Type;
// set => innerLayer.Type = value;
//}
[XmlAttribute("Version")]
[Browsable(false)]
public int Version { get; set; }
[XmlElement("SandstoneThickness")]
[Browsable(false)]
public WellSandstoneInTrackDataEntity sandStoneLayer { get; set; }
}
public class WellSandstoneInTrackDataEntity
{
//[XmlAttribute("Type")]
//public string Type { get; set; }
[XmlAttribute("Top")]
public double Top { get; set; }
[XmlAttribute("Bottom")]
public double Bottom { get; set; }
//[XmlAttribute("Thickness")]
//public double Thickness { get; set; }
//[XmlElement("Style")]
//public WellLayerStyle Style { get; set; }
}
#pragma warning restore SA1649 // File name should match first type name
#pragma warning restore SA1600 // Elements should be documented
#pragma warning restore SA1402 // File may only contain a single type
}