using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace TIProDevExtension { public partial class TestSignalSenderForm : Form { public string Symbol { get { return textBoxSymbol.Text; } } public double? Price { get { double price; if (double.TryParse(textBoxPrice.Text, out price)) return price; return null; } } public TestSignalSenderForm() { InitializeComponent(); } private void buttonSend_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; Close(); } private void buttonCancel_Click(object sender, EventArgs e) { DialogResult = DialogResult.Cancel; Close(); } } }