Пример #1
0
        /// <summary>
        /// 上传默认图形
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem3_ItemClick_1(object sender, ItemClickEventArgs e)
        {
            AreaGraphicsAdd graphicsAdd = new AreaGraphicsAdd(GraphOpt);

            //判断是否存在默认图形
            if (GraphOpt.GraphNameNow.Length > 0)
            {
                graphicsAdd.Text = "图形编辑";
            }
            graphicsAdd.Show();
        }
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            AreaGraphicsAdd graphicsAdd = new AreaGraphicsAdd(GraphOpt);

            //判断是否存在默认图形
            if (GraphOpt.GraphNameNow.Length > 0)
            {
                graphicsAdd.Text = "图形编辑";
            }
            graphicsAdd.ShowDialog();
            LoadMap(GraphOpt.GraphNameNow);
        }