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.
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
using GeoSigmaDrawLib;
|
|
|
|
|
|
|
|
|
|
|
|
namespace GeoSigma.SigmaDrawerStyle
|
|
|
|
|
|
{
|
|
|
|
|
|
public class MathFindProperty
|
|
|
|
|
|
{
|
|
|
|
|
|
private MathFindKind kind = MathFindKind.曲线;
|
|
|
|
|
|
private double step = 100;
|
|
|
|
|
|
private double remainder;
|
|
|
|
|
|
private int start;
|
|
|
|
|
|
|
|
|
|
|
|
[DisplayName("\t\t类型")]
|
|
|
|
|
|
public MathFindKind Kind { get => kind; set => kind = value; }
|
|
|
|
|
|
[DisplayName("\t\t步长")]
|
|
|
|
|
|
public double Step
|
|
|
|
|
|
{
|
|
|
|
|
|
get => step;
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if(value <= 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
MessageBox.Show("步长为正数。请重新输入。", "提示");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
step = value;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
[DisplayName("\t\t余数")]
|
|
|
|
|
|
public double Remainder
|
|
|
|
|
|
{
|
|
|
|
|
|
get => remainder;
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (value <= 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
MessageBox.Show("余数为正数。请重新输入。", "提示");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
remainder = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
[DisplayName("\t\t从名称的第几个字符开始计算")]
|
|
|
|
|
|
public int Start {
|
|
|
|
|
|
get => start;
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (value < 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
MessageBox.Show("请输入非负数。", "提示");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
start = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|