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.
49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Drawing.Design;
|
|
using System.Windows.Forms;
|
|
using System.Windows.Forms.Design;
|
|
|
|
namespace GeoSigma.SigmaDrawerStyle
|
|
{
|
|
public enum ConditionDeletionKind
|
|
{
|
|
曲线长度,
|
|
曲线名称,
|
|
点类名称,
|
|
}
|
|
public enum DeletionMethod
|
|
{
|
|
删除满足条件的元素,
|
|
//将满足条件的元素放入规定层,
|
|
}
|
|
|
|
public class ConditionDeletionProperty
|
|
{
|
|
private ConditionDeletionKind kind; // { get; set; } //删除依据
|
|
private double threshold; // 门限值
|
|
private DeletionMethod method;
|
|
private string layerName;
|
|
/// <summary>
|
|
/// 筛选条件 <门限值
|
|
/// </summary>
|
|
[Category("\t条件删除"), DisplayName("\t\t\t\t\t\t筛选条件")]
|
|
[TypeConverter(typeof(Converter.ConditionDeletionConvert))]
|
|
public string ConditionDeletion
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Category("\t条件删除"), DisplayName("\t\t\t\t\t删除依据")]
|
|
public ConditionDeletionKind Kind { get => kind; set => kind = value; }
|
|
[Category("\t条件删除"), DisplayName("\t\t\t\t\t\t门限值")]
|
|
public double Threshold { get => threshold; set => threshold = value; }
|
|
[Category("\t条件删除"), DisplayName("\t\t\t\t\t\t删除方法")]
|
|
public DeletionMethod Method { get => method; set => method = value; }
|
|
[Category("\t条件删除"), DisplayName("\t\t\t\t\t\t层位")]
|
|
public string LayerName { get => layerName; set => layerName = value; }
|
|
}
|
|
}
|