using System;
|
using System.Windows.Forms;
|
|
namespace IStation.WinFrmUI.Curve
|
{
|
public partial class InputParasRangeDlg : Form
|
{
|
public InputParasRangeDlg()
|
{
|
InitializeComponent();
|
}
|
|
private void InputParasRangeDlg_Load(object sender, EventArgs e)
|
{
|
|
}
|
public double? MinRange
|
{
|
get
|
{
|
double v = 0;
|
if (string.IsNullOrEmpty(textEdit1.Text))
|
return null;
|
if (double.TryParse(textEdit1.Text, out v))
|
{
|
return v;
|
}
|
return null;
|
}
|
}
|
public double? MaxRange
|
{
|
get
|
{
|
double v = 0;
|
if (string.IsNullOrEmpty(textEdit2.Text))
|
return null;
|
if (double.TryParse(textEdit2.Text, out v))
|
{
|
return v;
|
}
|
return null;
|
}
|
}
|
|
private void simpleButton2_Click(object sender, EventArgs e)
|
{
|
this.DialogResult = DialogResult.OK;
|
this.Close();
|
}
|
|
private void simpleButton1_Click(object sender, EventArgs e)
|
{
|
this.DialogResult = DialogResult.Cancel;
|
this.Close();
|
}
|
}
|
}
|