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

            GraphOpt.IsGraphicEdit = true;

            GraphicsOpen GraphicsOpen = new GraphicsOpen();

            GraphicsOpen.ShowDialog();
            GraphOpt.IsTopologyInit = false;
        }
예제 #2
0
        /// <summary>
        /// 切换图形
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem21_ItemClick(object sender, ItemClickEventArgs e)
        {
            //if (!GraphOpt.IsGraphicEdit)
            //{
            //    if (DevExpress.XtraEditors.XtraMessageBox.Show("正在预览,要停止吗?", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
            //    {
            //        return;
            //    }
            //}

            //GraphOpt.IsGraphicEdit = true;
            //isExit = true;

            GraphicsOpen GraphicsOpen = new GraphicsOpen();

            GraphicsOpen.ShowDialog();
            GraphOpt.IsTopologyInit = false;
        }