Exemple #1
0
        private void documentControl1_RightClick(object sender, ItopVector.DrawArea.SvgElementSelectedEventArgs e)
        {
            documentControl1.Operation = ToolOperation.Select;
            curImage = null;
            if (documentControl1.SVGDocument.SelectCollection.Count > 0 && !(documentControl1.SVGDocument.CurrentElement is SVG))
            {
                contextMenuStrip1.Show(documentControl1, e.Mouse.Location);
            }
            else
            {
                curImage = mapview.FindImage(e.Mouse.Location);
                contextMenuStrip2.Show(documentControl1, e.Mouse.Location);
            }

            //			Region r=new Region();
            //			documentControl1.SelectedRectangle(r);
            //			this.Text=e.SvgElement.ID+"right";
            //			if(documentControl1.Operation==ToolOperation.Enclosure)
            //			{
            //				ArrayList aList=new ArrayList();
            //				System.Collections.CollectionBase col=documentControl1.SVGDocument.SelectCollection;
            //				IEnumerator cl=col.GetEnumerator();
            //				while(cl.MoveNext())
            //				{
            //					XmlElement xl=(XmlElement)cl.Current;
            //					aList.Add(xl.GetAttribute("info-name"));
            //				}
            //				frmSelCol frm=new frmSelCol();
            //				frm.list=aList;
            //				frm.ShowDialog(this);
            //			}
            //			documentControl1.Operation=ToolOperation.FreeTransform;
            //			((MainFrame)this.MdiParent).UpdateToolBottom(ToolOperation.FreeTransform);
        }
Exemple #2
0
        private void documentControl1_DoubleLeftClick(object sender, ItopVector.DrawArea.SvgElementSelectedEventArgs e)
        {
//			IGraph graph1 = this.documentControl1.DrawArea.CurrentElement as IGraph;
//			if (graph1 !=null)
//			{
//				PointF pf1= graph1.CenterPoint;
//				LongLat ll = mapview.ParseToLongLat((int)pf1.X,(int)pf1.Y);
//				PointF pf2 = mapview.ParseToPoint(ll.Longitude,ll.Latitude);
//				graph1.CenterPoint = new PointF(744f,525f);
//			}
//			this.documentControl1.CurrentOperation = ToolOperation.EqualPolygon;
//			this.documentControl1.DrawArea.ExportImageToClipboard( ExportType.Selected);
//			documentControl1.GoLocation(documentControl1.PointToView( documentControl1.PointToClient(Control.MousePosition)));
            isIn = !isIn;
            //documentControl1.SVGDocument.BeginPrint=!documentControl1.SVGDocument.BeginPrint;
            //MapViewGoogle mvg = mapview as MapViewGoogle;
            //if (mvg != null) {
            //    if (!mvg.Showmap1) {
            //        mvg.Showmap1 = true;
            //    } else {
            //        mvg.Showmap3 = true;
            //    }
            //}
        }
Exemple #3
0
 private void documentControl1_MoveOut(object sender, ItopVector.DrawArea.SvgElementSelectedEventArgs e)
 {
     this.documentControl1.SetToolTip("");
 }
Exemple #4
0
 private void documentControl1_MoveIn(object sender, ItopVector.DrawArea.SvgElementSelectedEventArgs e)
 {
     //(e.SvgElement as IGraph).CanSelect=false;
     this.documentControl1.SetToolTip(((ItopVector.Core.SvgElement)e.SvgElement).GetAttribute("info-name"));
 }
Exemple #5
0
 private void documentControl1_LeftClick(object sender, ItopVector.DrawArea.SvgElementSelectedEventArgs e)
 {
     //MessageBox.Show(documentControl1.SVGDocument.CurrentElement.ID);
 }