Exemple #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;
            }
        }
Exemple #2
0
        public MapZoneControl(MapZoneDrawing zone)
        {
            this.lstPoints = new List <MapZonePointControl>();

            this.ZoneDetails = zone;

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

            this.ZoneDetails = zone;

            this.SetZonePoints(zone.ZonePolygon);
        }
Exemple #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;
            }
        }
Exemple #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;
            }
        }
Exemple #6
0
 public void SetMapZonePoints(MapZoneDrawing zone) {
     if (this.MapZoneControls.ContainsKey(zone.UID) == true) {
         this.MapZoneControls[zone.UID].SetZonePoints(zone.ZonePolygon);
     }
 }
Exemple #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);
            }
        }
Exemple #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;
            }
        }
Exemple #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;
     }
 }
Exemple #10
0
 void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneRemoved(zone);
 }
Exemple #11
0
 private void MapZones_MapZoneAdded(MapZoneDrawing item) {
     this.SaveConnectionConfig();
 }
Exemple #12
0
 void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone) {
     this.InvokeIfRequired(() => this.MapZones_MapZoneRemoved(zone));
 }
Exemple #13
0
 void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone)
 {
     this.InvokeIfRequired(() => this.MapZones_MapZoneRemoved(zone));
 }
Exemple #14
0
 private void MapZones_MapZoneRemoved(MapZoneDrawing item)
 {
     this.uscBattlemap.RemoveMapZone(item);
 }
Exemple #15
0
 void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneAdded(zone);
 }
Exemple #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;
            }
        }
Exemple #17
0
 private void MapZones_MapZoneAdded(MapZoneDrawing item)
 {
     this.uscBattlemap.AddMapZone(item);
 }
Exemple #18
0
 void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneChanged(zone);
 }
Exemple #19
0
 void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone)
 {
     this.InvokeIfRequired(() => this.MapZones_MapZoneChanged(zone));
 }
Exemple #20
0
 private void MapZones_MapZoneAdded(MapZoneDrawing item)
 {
     this.uscBattlemap.AddMapZone(item);
 }
Exemple #21
0
 void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone)
 {
     this.InvokeIfRequired(() => this.MapZones_MapZoneAdded(zone));
 }
Exemple #22
0
 void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone) {
     this.InvokeIfRequired(() => this.MapZones_MapZoneAdded(zone));
 }
Exemple #23
0
 void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneRemoved(zone);
 }
Exemple #24
0
 void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneAdded(zone);
 }
Exemple #25
0
 void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone)
 {
     this.MapZones_MapZoneChanged(zone);
 }
Exemple #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;
            }
        }
Exemple #27
0
 private void MapZones_MapZoneRemoved(MapZoneDrawing item)
 {
     this.uscBattlemap.RemoveMapZone(item);
 }
Exemple #28
0
 void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone) {
     this.InvokeIfRequired(() => this.MapZones_MapZoneChanged(zone));
 }