Example #1
0
        public void OpenJXT(IList svglist, SVGFILE svg)
        {
            if (string.IsNullOrEmpty(svg.FILENAME)) return;
            frmMain2 frm = new frmMain2(svglist, svg.SUID);
            frm.Owner = this.ParentForm;
            frm.Show();
            frm.LoadShape("symbol4.xml");
            frm.OpenJXT(svglist, svg);
            //SVGFILE svg_temp = new SVGFILE();
            //if (svglist.Count > 0)
            //{
            //    svg_temp = (SVGFILE)svglist[0];
            //    sdoc = null;
            //    sdoc = new SvgDocument();
            //    //tlVectorControl1.NewFile();
            //    sdoc.LoadXml(svg_temp.SVGDATA);
            //    tlVectorControl1.SVGDocument = sdoc;
            //    tlVectorControl1.SVGDocument.SvgdataUid = svg_temp.SUID;

            //    MapType = "所内接线图";
            //}
            //else
            //{
            //    tlVectorControl1.NewFile();
            //    tlVectorControl1.SVGDocument.SvgdataUid = eleid;
            //    //InitGroup();
            //    MapType = "所内接线图";
            //}
            //substation _s = new substation();
            //_s.EleID = eleid;
            //_s.SvgUID = ParentUID;
            //substation _s1 = (substation)Services.BaseService.GetObject("SelectsubstationByEleID", _s);
            //if (_s1 != null)
            //{
            //    tlVectorControl1.SVGDocument.FileName = _s1.EleName + "主接线图";
            //    this.Text = _s1.EleName + "主接线图";
            //}
            //ArrayList a = tlVectorControl1.SVGDocument.getLayerList();
            //if (tlVectorControl1.SVGDocument.getLayerList().Count == 0)
            //{
            //    Layer _lar = ItopVector.Core.Figure.Layer.CreateNew("接线图", tlVectorControl1.SVGDocument);
            //    _lar.SetAttribute("layerType", "所内接线图");
            //    _lar.Visible = true;
            //    SvgDocument.currentLayer = ((Layer)tlVectorControl1.SVGDocument.getLayerList()[0]).ID;
            //}
            //tlVectorControl1.ContextMenuStrip = null;
            ////CreateComboBox();
            //InitJXT();
            //LoadShape("symbol4.xml");
            //LoadImage = false;
            //bk1.Enabled = false;
            //tlVectorControl1.ScaleRatio = 1F;
            //tlVectorControl1.Refresh();
            //ButtonEnb(false);
        }
Example #2
0
 public void OpenJXT(IList svglist, SVGFILE svg)
 {
     if (string.IsNullOrEmpty(svg.FILENAME)) return;
     frmMain2 frm = new frmMain2(svglist, svg.SUID);
     frm.Owner = this.ParentForm;
     frm.Show();
     frm.LoadShape("symbol4.xml");
     frm.OpenJXT(svglist, svg);
 }