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.
129 lines
3.3 KiB
C#
129 lines
3.3 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Drawing.Design;
|
|
using System.Windows.Forms;
|
|
using System.Windows.Forms.VisualStyles;
|
|
using System.Xml.Serialization;
|
|
using GeoSigma.SigmaDrawerStyle;
|
|
using GeoSigma.SigmaDrawerStyle.Converter;
|
|
using SigmaDrawerElement;
|
|
using SigmaDrawerStyle;
|
|
|
|
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
|
|
|
|
/// <summary>
|
|
/// 射孔道
|
|
/// </summary>
|
|
[XmlRoot("Pcg")]
|
|
[TypeConverter(typeof(PropertySorter))]
|
|
public class WellInTrackSideWallCoring :baseInTrackObj
|
|
{
|
|
private const string ShotTrackCategory = "\t\t取心数据";
|
|
|
|
[XmlIgnore]
|
|
[Category(ShotTrackCategory)]
|
|
[DisplayName("顶深")]
|
|
[PropertyOrder(0)]
|
|
public double Depth
|
|
{
|
|
get => coring.Depth;
|
|
set => coring.Depth = value;
|
|
}
|
|
|
|
|
|
|
|
[XmlIgnore]
|
|
[Category(ShotTrackCategory)]
|
|
[DisplayName("序号")]
|
|
[PropertyOrder(1)]
|
|
public int Times
|
|
{
|
|
get => coring.Times;
|
|
set => coring.Times = value;
|
|
}
|
|
|
|
[XmlIgnore]
|
|
[Category(ShotTrackCategory)]
|
|
[DisplayName("颜色")]
|
|
[PropertyOrder(2)]
|
|
[ListBoxEditor("LithologyColor")]
|
|
[Editor(typeof(PropertyEditorListBox), typeof(UITypeEditor))]
|
|
public string Color
|
|
{
|
|
get => coring.ColorName;
|
|
set
|
|
{
|
|
coring.ColorName = value;
|
|
}
|
|
}
|
|
|
|
[XmlIgnore]
|
|
[Category(ShotTrackCategory)]
|
|
[DisplayName("含油气性")]
|
|
[PropertyOrder(3)]
|
|
[ListBoxEditor("OilGas")]
|
|
[Editor(typeof(PropertyEditorListBox), typeof(UITypeEditor))]
|
|
public string OilGasProperty
|
|
{
|
|
get => coring.OilGas;
|
|
set
|
|
{
|
|
coring.OilGas = value;
|
|
}
|
|
}
|
|
|
|
[XmlIgnore]
|
|
[Category(ShotTrackCategory)]
|
|
[DisplayName("岩性")]
|
|
[PropertyOrder(4)]
|
|
[ListBoxEditor("Lithology")]
|
|
[Editor(typeof(PropertyEditorListBox), typeof(UITypeEditor))]
|
|
public string Lithology
|
|
{
|
|
get =>coring.Lith;
|
|
set
|
|
{
|
|
coring.Lith = value;
|
|
}
|
|
}
|
|
|
|
[XmlAttribute]
|
|
[Browsable(false)]
|
|
public int Version { get; set; }
|
|
|
|
[XmlElement("CoreSideLayer")]
|
|
[Browsable(false)]
|
|
public SideWallCoring coring { 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
|
|
|
|
|
|
public class SideWallCoring
|
|
{
|
|
[XmlAttribute("Lithology")]
|
|
public string Lith { get; set; } = "";
|
|
|
|
[XmlAttribute("Depth")]
|
|
public double Depth { get; set; }
|
|
|
|
[XmlAttribute("OilGas")]
|
|
public string OilGas { get; set; } = "";
|
|
|
|
[XmlAttribute("ColorName")]
|
|
public string ColorName { get; set; } = "";
|
|
|
|
[XmlAttribute("Times")]
|
|
public int Times { get; set; }
|
|
}
|
|
|
|
|
|
}
|