using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace TradeIdeas.TIProGUI { public partial class ScoreCylinderThresholdForm : Form { public double? Threshold { get { double result; if (double.TryParse(textBoxThreshold.Text, out result)) return result; return null; } set { textBoxThreshold.Text = value.ToString(); } } public ScoreCylinderThresholdForm() { InitializeComponent(); Icon = GuiEnvironment.Icon; } private void buttonOk_Click(object sender, EventArgs e) { DialogResult = System.Windows.Forms.DialogResult.OK; Close(); } private void buttonCancel_Click(object sender, EventArgs e) { DialogResult = System.Windows.Forms.DialogResult.Cancel; Close(); } } }