コード例 #1
0
 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;
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public LayerElementFence(MangoLayerElement ele, ElementIconSet icon, IconExtParamFence Ext) : base(ele)
 {
     this.iconSet = icon;
     this.Ext     = Ext;
     this.Type    = ElementType.TYPE_FENCE;
 }
コード例 #4
0
 public LayerElement(MangoLayerElement ele, ElementIconSet icon) : base(ele)
 {
     this.iconSet = icon;
 }
コード例 #5
0
 public AbstractLayerElement(MangoLayerElement ele)
 {
     this.Ele = ele;
     this.p   = new Coordinate(ele.latitude, ele.longitude);
 }