Exemple #1
0
        /// <summary>
        /// 新建图形
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
        {
            // barStaticItem1.Caption = "新建图形";
            if (!GraphOpt.IsGraphicEdit)
            {
                if (DevExpress.XtraEditors.XtraMessageBox.Show("正在预览,要停止吗?", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
                {
                    return;
                }
            }

            GraphOpt.IsGraphicEdit = true;


            GraphicsAdd graphAdd = new GraphicsAdd();

            graphAdd.ShowDialog();
        }
Exemple #2
0
 /// <summary>
 /// 底图更新
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void barButtonItem8_ItemClick(object sender, ItemClickEventArgs e)
 {
     // barStaticItem1.Caption = "更新底图";
     if (GraphOpt.getGraphicNowType() == 0)
     {
         GraphicsAdd graphAdd = new GraphicsAdd();
         graphAdd.Text = "底图更新";
         graphAdd.ShowDialog();
     }
     else if (GraphOpt.getGraphicNowType() == -1)
     {
         //DevExpress.XtraEditors.XtraMessageBox.Show("当前未打开图形,请先打开图形!");
         //barStaticItem1.Caption = "当前未打开图形,请先打开图形!";
     }
     else
     {
         //DevExpress.XtraEditors.XtraMessageBox.Show("拓扑图不支持底图更新!");
         // barStaticItem1.Caption = "拓扑图不支持底图更新!";
     }
 }