BMap.NET.WindowsForm/BPointTipControl.cs

(开头部分) 12KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using BMap.NET.WindowsForm.BMapElements;
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

namespace BMap.NET.WindowsForm
{
    /// <summary>
    /// 位置点信息显示控件
    /// </summary>
    partial class BPointTipControl : UserControl
    {
        public event SearchNearbyStartedEventHandler SearchNearbyStarted;

        public event DirectionStartedEventHandler DirecttionStarted;

        private int _tab_index;
        private BPoint _bpoint;

        /// <summary>
        /// 与之关联的BPoint数据
        /// </summary>
        public BPoint BPoint
        {
            get
            {
                return _bpoint;
            }
            set
            {
                _bpoint = value;
                lblName.Text = _bpoint.Address;
            }
        }

        /// <summary>
        /// 当前建议搜索城市
        /// </summary>
        public string CurrentCity
        {
            get
            {
                return bPlaceBox.CurrentCity;
            }
            set
            {
                bPlaceBox.CurrentCity = value;
            }
        }

        /// <summary>
        /// 构造方法
        /// </summary>
        public BPointTipControl()
        {
            InitializeComponent();
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
        }

后面还有 254 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。