示例#1
0
        public MG_BaseTool(MG_ToolType type, MG_Layer layer, MG_MapView mapview)
        {
            this.ToolType = type;

            this.Layer   = layer;
            this.MapView = mapview;
            if (layer != null)
            {// pan tool: layer==null
                this.Feature = new MG_Feature(this.Layer.GetFieldSet());
            }

            // empty point
            this.FromPoint  = Point.Empty;
            this.ToPoint    = Point.Empty;
            this.Point3     = Point.Empty;
            this.SelectRect = Rectangle.Empty;
        }
示例#2
0
        public MG_BaseTool(MG_ToolType type, MG_Layer layer, MG_MapView mapview)
        {
            this.ToolType = type;

               this.Layer = layer;
               this.MapView = mapview;
               if (layer!=null)
               {// pan tool: layer==null
               this.Feature = new MG_Feature(this.Layer.GetFieldSet());
               }

               // empty point
               this.FromPoint = Point.Empty;
               this.ToPoint = Point.Empty;
               this.Point3 = Point.Empty;
               this.SelectRect = Rectangle.Empty;
        }