コード例 #1
0
        private void RangeTreeButton_Click(object sender, EventArgs e)
        {
            PointDialog point = new PointDialog();

            if (point.ShowDialog() == DialogResult.OK)
            {
                var result = _rangeTree.Find(point.X, point.Y);

                string pointS = "[" + point.X + " ; " + point.Y + "]";
                string output = String.Format(result == null ? Resources.RangeScanPointNotFound : Resources.RangeScanPointFound, pointS);

                MessageBox.Show(output, Resources.RangeScanResultTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }