public void ShowLimitingDistanceDialog()
        {
            var plot = ViewLogicController.CurrentPlot;

            if (plot == null)
            {
                ShowNoPlotSelectedMessage();
                return;
            }

            using (var view = new FormLimitingDistance()
            {
                Plot = plot
            })
            {
#if !NetCF
                var result = view.ShowDialog(this);
#else
                var result = view.ShowDialog();
#endif

                if (result == DialogResult.OK)
                {
                    plot.Remarks += view.Report;
                }
            }
        }
        private void LimitingDistance_Click(object sender, EventArgs e)
        {
            var fpsOrBaf = 20;
            var isVariableRadious = true;
            using (var view = new FormLimitingDistance(fpsOrBaf, isVariableRadious))
            {
                view.Closed += (object obj, EventArgs ea) =>
                {
                    if (!String.IsNullOrEmpty(view.Report))
                    {
                        MessageBox.Show(view.Report);
                    }
                };

                view.Activated += (obj, ea) =>
                    {
                        view.Controls.FindByDataMember("DBH").Text = "10";
                        view.Controls.FindByDataMember("SlopePCT").Text = "0";
                        //view.Controls.FindByDataMember("BAForFPSize").Text = "20";
                        view.Controls.FindByDataMember("MeasureTo").Text = FSCruiser.Core.DataEntry.LimitingDistanceCalculator.MEASURE_TO_FACE;
                    };

                view.ShowDialog();

                var ldValue = view.Controls.Find("LimitingDistance").Text;
                Debug.Assert(ldValue == "19.03");
            }
        }
        public override DialogResult ShowLimitingDistanceDialog(float baf, bool isVariableRadius, out string logMessage)
        {
            using (FormLimitingDistance view = new FormLimitingDistance(baf, isVariableRadius))
            {
                var result = view.ShowDialog();
                logMessage = view.Report;

                return result;
            }
        }