Exemplo n.º 1
0
        private void txtTagList_TextChanged(object sender, EventArgs e)
        {
            if (this.m_isModifyingTags == false && this.m_prcClient != null && this.txtTagList.Tag != null && this.txtTagList.Tag is MapZoneDrawing)
            {
                this.m_isModifyingTags = true;

                MapZoneDrawing selectedZone = (MapZoneDrawing)this.txtTagList.Tag;

                if (this.m_prcClient.IsPRoConConnection == true)
                {
                    // Send to layer

                    this.m_prcClient.SendProconBattlemapModifyZoneTagsPacket(selectedZone.UID, this.txtTagList.Text);
                }
                else
                {
                    if (this.m_prcClient.MapGeometry.MapZones.Contains(selectedZone.UID) == true)
                    {
                        this.m_prcClient.MapGeometry.MapZones[selectedZone.UID].Tags.FromString(this.txtTagList.Text);
                    }
                }

                this.m_isModifyingTags = false;
            }
        }
Exemplo n.º 2
0
        public MapZoneControl(MapZoneDrawing zone)
        {
            this.lstPoints = new List <MapZonePointControl>();

            this.ZoneDetails = zone;

            this.SetZonePoints(zone.ZonePolygon);
        }
Exemplo n.º 3
0
        public MapZoneControl(MapZoneDrawing zone)
        {
            this.lstPoints = new List<MapZonePointControl>();

            this.ZoneDetails = zone;

            this.SetZonePoints(zone.ZonePolygon);
        }
Exemplo n.º 4
0
        private void uscBattlemap_MapZoneSelected(MapZoneDrawing zone)
        {
            if (zone != null)
            {
                this.m_isModifyingTags = true;

                this.txtTagList.Tag              = zone;
                this.txtTagList.Text             = zone.Tags.ToString();
                this.spltZoneTags.Panel2.Enabled = true;

                this.m_isModifyingTags = false;
            }
            else
            {
                this.spltZoneTags.Panel2.Enabled = false;
            }
        }
Exemplo n.º 5
0
        private void MapZones_MapZoneChanged(MapZoneDrawing item)
        {
            if (this.m_isModifyingTags == false)
            {
                this.m_isModifyingTags = true;

                this.uscBattlemap.SetMapZonePoints(item);
                this.uscBattlemap.SetMapZoneTags(item);

                if (this.txtTagList.Tag != null && String.Compare(item.UID, ((MapZoneDrawing)this.txtTagList.Tag).UID) == 0)
                {
                    this.txtTagList.Text = item.Tags.ToString();
                    this.txtTagList.Select(this.txtTagList.Text.Length, 0);
                }

                this.m_isModifyingTags = false;
            }
        }
Exemplo n.º 6
0
 public void SetMapZonePoints(MapZoneDrawing zone) {
     if (this.MapZoneControls.ContainsKey(zone.UID) == true) {
         this.MapZoneControls[zone.UID].SetZonePoints(zone.ZonePolygon);
     }
 }
Exemplo n.º 7
0
        public void RemoveMapZone(MapZoneDrawing zone) {

            if (this.MapZoneControls.ContainsKey(zone.UID) == true) {

                this.MapZoneControls[zone.UID].MapZoneSelected -= new MapZoneControl.MapZoneHandler(newZone_MapZoneSelected);
                this.MapZoneControls[zone.UID].MapZoneModified -= new MapZoneControl.MapZoneHandler(newZone_MapZoneModified);

                if (this.MapZoneControls[zone.UID].IsSelected == true && this.MapZoneSelected != null) {
                    this.MapZoneSelected(null);
                }

                this.MapZoneControls.Remove(zone.UID);
            }
        }
Exemplo n.º 8
0
        public void AddMapZone(MapZoneDrawing zone) {

            if (this.MapZoneControls.ContainsKey(zone.UID) == false) {
                MapZoneControl newZone = new MapZoneControl(zone);

                newZone.MapZoneSelected += new MapZoneControl.MapZoneHandler(newZone_MapZoneSelected);
                newZone.MapZoneModified += new MapZoneControl.MapZoneHandler(newZone_MapZoneModified);
                this.MapZoneControls.Add(zone.UID, newZone);
            }
            else {
                this.MapZoneControls[zone.UID].SetZonePoints(zone.ZonePolygon);
                this.MapZoneControls[zone.UID].ZoneDetails = zone;
            }
        }
Exemplo n.º 9
0
 public void SetMapZoneTags(MapZoneDrawing zone) {
     if (this.MapZoneControls.ContainsKey(zone.UID) == true) {
         this.MapZoneControls[zone.UID].SetZoneTags(zone.Tags);
         //this.MapZoneControls[zone.UID].ZoneDetails.ZonePolygon = zone.ZonePolygon;
         //this.MapZoneControls[zone.UID].ZoneDetails = zone;
     }
 }
Exemplo n.º 10
0
 void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneRemoved(zone);
 }
Exemplo n.º 11
0
 private void MapZones_MapZoneAdded(MapZoneDrawing item) {
     this.SaveConnectionConfig();
 }
Exemplo n.º 12
0
 void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone) {
     this.InvokeIfRequired(() => this.MapZones_MapZoneRemoved(zone));
 }
Exemplo n.º 13
0
 void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone)
 {
     this.InvokeIfRequired(() => this.MapZones_MapZoneRemoved(zone));
 }
Exemplo n.º 14
0
 private void MapZones_MapZoneRemoved(MapZoneDrawing item)
 {
     this.uscBattlemap.RemoveMapZone(item);
 }
Exemplo n.º 15
0
 void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneAdded(zone);
 }
Exemplo n.º 16
0
        private void MapZones_MapZoneChanged(MapZoneDrawing item)
        {
            if (this.m_isModifyingTags == false) {
                this.m_isModifyingTags = true;

                this.uscBattlemap.SetMapZonePoints(item);
                this.uscBattlemap.SetMapZoneTags(item);

                if (this.txtTagList.Tag != null && String.Compare(item.UID, ((MapZoneDrawing)this.txtTagList.Tag).UID) == 0) {
                    this.txtTagList.Text = item.Tags.ToString();
                    this.txtTagList.Select(this.txtTagList.Text.Length, 0);
                }

                this.m_isModifyingTags = false;
            }
        }
Exemplo n.º 17
0
 private void MapZones_MapZoneAdded(MapZoneDrawing item)
 {
     this.uscBattlemap.AddMapZone(item);
 }
Exemplo n.º 18
0
 void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneChanged(zone);
 }
Exemplo n.º 19
0
 void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone)
 {
     this.InvokeIfRequired(() => this.MapZones_MapZoneChanged(zone));
 }
Exemplo n.º 20
0
 private void MapZones_MapZoneAdded(MapZoneDrawing item)
 {
     this.uscBattlemap.AddMapZone(item);
 }
Exemplo n.º 21
0
 void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone)
 {
     this.InvokeIfRequired(() => this.MapZones_MapZoneAdded(zone));
 }
Exemplo n.º 22
0
 void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone) {
     this.InvokeIfRequired(() => this.MapZones_MapZoneAdded(zone));
 }
Exemplo n.º 23
0
 void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneRemoved(zone);
 }
Exemplo n.º 24
0
 void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneAdded(zone);
 }
Exemplo n.º 25
0
 void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneChanged(zone);
 }
Exemplo n.º 26
0
        private void uscBattlemap_MapZoneSelected(MapZoneDrawing zone)
        {
            if (zone != null) {
                this.m_isModifyingTags = true;

                this.txtTagList.Tag = zone;
                this.txtTagList.Text = zone.Tags.ToString();
                this.spltZoneTags.Panel2.Enabled = true;

                this.m_isModifyingTags = false;
            }
            else {
                this.spltZoneTags.Panel2.Enabled = false;
            }
        }
Exemplo n.º 27
0
 private void MapZones_MapZoneRemoved(MapZoneDrawing item)
 {
     this.uscBattlemap.RemoveMapZone(item);
 }
Exemplo n.º 28
0
 void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone) {
     this.InvokeIfRequired(() => this.MapZones_MapZoneChanged(zone));
 }