Esempio n. 1
0
        private void 添加简单圈选(F纯地图 __纯地图)
        {
            var __圈选 = new F圈选_圆形(__纯地图.地图);

            __圈选.圈选结束 += 处理圆形圈选;
            var __按钮 = new U按钮
            {
                Top  = 10,
                Left = 50,
                Text = "开始"
            };

            __按钮.Click += (sender1, e1) =>
            {
                if (__按钮.Text == "开始")
                {
                    __按钮.Text = "结束";
                    __圈选.开始();
                }
                else
                {
                    __按钮.Text = "开始";
                    __圈选.结束();
                    __圈选.清除();
                }
            };
            __纯地图.Controls.Add(__按钮);
            __按钮.BringToFront();
        }
Esempio n. 2
0
        private void 添加简单圈选(F地图 __地图)
        {
            var __圈选 = new F圈选_圆形(__地图);

            __圈选.圈选结束 += 处理圆形圈选;
            var __按钮 = new U按钮
            {
                Width  = 70,
                Top    = 30,
                Left   = _F显示号码.out地图容器.Width - 116,
                Anchor = AnchorStyles.Right | AnchorStyles.Top,
                Text   = "开始圈选"
            };

            __按钮.Click += (sender1, e1) =>
            {
                if (__按钮.Text == "开始圈选")
                {
                    __按钮.Text = "结束圈选";
                    __圈选.开始();
                }
                else
                {
                    __按钮.Text = "开始圈选";
                    __圈选.结束();
                    __圈选.清除();
                }
            };
            _F显示号码.out地图容器.Controls.Add(__按钮);
            __按钮.BringToFront();
        }
Esempio n. 3
0
        void do测距_Click(object sender, EventArgs e)
        {
            var __纯地图 = new F纯地图();
            var __测距  = new F测距(__纯地图.地图);
            var __按钮  = new U按钮
            {
                Top  = 10,
                Left = 50,
                Text = "开始"
            };

            __按钮.Click += (sender1, e1) =>
            {
                if (__按钮.Text == "开始")
                {
                    __按钮.Text = "结束";
                    __测距.开始();
                }
                else
                {
                    __按钮.Text = "开始";
                    __测距.结束();
                }
            };
            __纯地图.Controls.Add(__按钮);
            __按钮.BringToFront();
            var __空窗口 = new F空窗口(__纯地图, "测距");

            __空窗口.ShowDialog();
            __空窗口.Dispose();
        }