public LayerElementBuilding(MangoLayerElement ele, ElementIconSet icon, IconExtParamBuilding ext) : base(ele) { this.iconSet = icon; this.Width = icon.icon.Width; this.Height = icon.icon.Height; this.Ext = ext; }
private void Item_Click(object sender, EventArgs e) { DeviceType type = (sender as ToolStripMenuItem).Tag as DeviceType; if (type.deviceClass == "ElectronicFence") { this.drawFence = new DrawFence(); this.drawFence.type = type.deviceTypeCode; return; } Coordinate p = this.mapBox1.Map.ImageToWorld(this.addMemuPoint); MangoLayerElement ele = new MangoLayerElement(this.currentMap.id, p, type.deviceTypeCode); LayerElement element = new LayerElement(ele, type.ToIconSet()); this.deviceLayer.AddLayerElement(element); this.Refresh(); if (this.OnElementAdd != null) { this.OnElementAdd.Invoke(element); } }
public LayerElementFence(MangoLayerElement ele, ElementIconSet icon, IconExtParamFence Ext) : base(ele) { this.iconSet = icon; this.Ext = Ext; this.Type = ElementType.TYPE_FENCE; }
public LayerElement(MangoLayerElement ele, ElementIconSet icon) : base(ele) { this.iconSet = icon; }
public AbstractLayerElement(MangoLayerElement ele) { this.Ele = ele; this.p = new Coordinate(ele.latitude, ele.longitude); }