private void bnWaypoint_Click(object sender, EventArgs e) { WaypointSelectorForm wps = new WaypointSelectorForm(Core); if (wps.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { string wp = "WP(\"" + wps.WaypointName + "\")"; UpdateFormulaText(wp, 0); } }