Beispiel #1
0
        /// <summary>
        /// 绘制录井解释图
        /// </summary>
        private void DrawLJJSPicture()
        {
            Childform frm = this.ActiveMdiChild as Childform;

            if (frm == null)
            {
                return;
            }

            DrawCommonData.activeDocument = frm.vdScrollableControl1.BaseControl.ActiveDocument;
            if (!FrameDesign.Validate(this))//验证; 若!=true 则return
            {
                return;
            }



            LJJSBuilder  ljjsBuilder  = new LJJSBuilderImpl();
            LJJSDirector ljjsDirector = new LJJSDirector(ljjsBuilder);

            ljjsDirector.BuildLJJS();

            vdDocument activeDocu = DrawCommonData.activeDocument;

            /**
             * if (DrawCommonData.icount == 1)
             * {
             *
             *  if (SuiZuanForm.startpoint != null && this.zoomed == false)
             *  {
             *      gPoint g1 = new gPoint(SuiZuanForm.startpoint.XValue - 100, SuiZuanForm.startpoint.YValue + 40);
             *      gPoint g2 = new gPoint(g1.x + 900.0, g1.y - 450.0);
             *      frm.vdScrollableControl1.BaseControl.ActiveDocument.ActiveLayOut.ZoomWindow(g1, g2);
             *      this.zoomed = true;
             *  }
             *
             * }**/
            Childform cf = this.MdiChildren[0] as Childform;

            //自动缩放到合适的大小
            if (DrawCommonData.icount == 1)
            {
                VectorDraw.Professional.ActionUtilities.vdCommandAction.ZoomE_Ex(cf.vdScrollableControl1.BaseControl.ActiveDocument);
            }

            activeDocu.Redraw(true);

            //commandLine.ExecuteCommand("ze");
            //frm.vdScrollableControl1.BaseControl.ActiveDocument.CommandAction.
        }
Beispiel #2
0
        public void DrawLJJSPicture()
        {
            Childform frm = this.ActiveMdiChild as Childform;

            if (frm == null)
            {
                return;
            }

            DrawCommonData.activeDocument = frm.vdScrollableControl1.BaseControl.ActiveDocument;

            //   frm.vdScrollableControl1.BaseControl.ActiveDocument.ActiveLayOut.ZoomWindow(new VectorDraw.Geometry.gPoint(-170, 0), new VectorDraw.Geometry.gPoint(170.0, 200));

            LJJSBuilder  ljjsBuilder  = new LJJSBuilderImpl();
            LJJSDirector ljjsDirector = new LJJSDirector(ljjsBuilder);

            ljjsDirector.BuildLJJS();

            vdDocument activeDocu = this.cf.vdScrollableControl1.BaseControl.ActiveDocument;

            activeDocu.Redraw(true);
        }