void dlg_OnLoactionXL(object sender, EventArgs e) { if (dlg != null) { dlg.WindowState = System.Windows.Forms.FormWindowState.Minimized; } string deviceid = sender as string; ItopVectorControl xltVectorCtrl = tlVectorControl1; XmlNodeList elelist = xltVectorCtrl.SVGDocument.SelectNodes("svg/*[@Deviceid='" + deviceid + "']"); if (elelist.Count == 1) { SvgElement ele = (SvgElement)elelist[0]; xltVectorCtrl.GoLocation((IGraph)ele); xltVectorCtrl.Refresh(); xltVectorCtrl.SVGDocument.CurrentElement = ele; } else { xltVectorCtrl.SVGDocument.SelectCollection.Clear(); for (int i = 0; i < elelist.Count; i++) { SvgElement ee = (SvgElement)elelist[i]; xltVectorCtrl.SVGDocument.SelectCollection.Add(ee); xltVectorCtrl.Refresh(); } } }
public PrintHelper(ItopVectorControl tc, Itop.MapView.IMapViewObj map) { //int chose = Convert.ToInt32(ConfigurationSettings.AppSettings.Get("chose")); //if (chose == 1) //{ map = new Itop.MapView.MapViewObj(); } //else if (chose == 2) //{ map = new Itop.MapView.MapViewObj2(); } tlVectorControl1 = tc; mapview = map; pdoc = new PrintDocument(); pdoc.PrintPage += new PrintPageEventHandler(pdoc_PrintPage); pageSetting = pdoc.PrinterSettings.DefaultPageSettings; }
public PrintHelper(ItopVectorControl tc, Itop.MapView.IMapViewObj map) { //int chose = Convert.ToInt32(ConfigurationSettings.AppSettings.Get("chose")); //if (chose == 1) //{ map = new Itop.MapView.MapViewObj(); } //else if (chose == 2) //{ map = new Itop.MapView.MapViewGoogle(); } tlVectorControl1 = tc; mapview = map; pdoc = new PrintDocument(); pdoc.PrintPage += new PrintPageEventHandler(pdoc_PrintPage); pageSetting = pdoc.PrinterSettings.DefaultPageSettings; }
public AerialView(DrawArea.DrawArea vcontrol, ItopVectorControl tlVector) { this.components = null; tl1 = tlVector; this.vectorControl = vcontrol; this.pageSetting = vcontrol.PageSettings; this.pageSetupdlg = new PageSetupDialog(); this.pageSetupdlg.PageSettings = this.pageSetting; this.margin = 0; this.printdoc = new PrintDocument(); this.pos = Point.Empty; this.scalex = 1f; this.scaley = 1f; this.startPoint = Point.Empty; this.oriPoint = Point.Empty; this.InitializeComponent(); this.printdoc.PrintPage += new PrintPageEventHandler(this.printdoc_PrintPage); this.label8.Cursor = SpecialCursors.handCurosr; this.CalculateScale(); }
public AerialView(DrawArea.DrawArea vcontrol,ItopVectorControl tlVector) { this.components = null; tl1=tlVector; this.vectorControl = vcontrol; this.pageSetting = vcontrol.PageSettings; this.pageSetupdlg = new PageSetupDialog(); this.pageSetupdlg.PageSettings = this.pageSetting; this.margin = 0; this.printdoc = new PrintDocument(); this.pos = Point.Empty; this.scalex = 1f; this.scaley = 1f; this.startPoint = Point.Empty; this.oriPoint = Point.Empty; this.InitializeComponent(); this.printdoc.PrintPage += new PrintPageEventHandler(this.printdoc_PrintPage); this.label8.Cursor = SpecialCursors.handCurosr; this.CalculateScale(); }
public ImportJxt2(ItopVectorControl vc) { tlVectorControl1 = vc; }
public void InitData(ItopVectorControl vector) { miniatureView1.VectorControl = vector; }