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; } }
public MapZoneControl(MapZoneDrawing zone) { this.lstPoints = new List <MapZonePointControl>(); this.ZoneDetails = zone; this.SetZonePoints(zone.ZonePolygon); }
public MapZoneControl(MapZoneDrawing zone) { this.lstPoints = new List<MapZonePointControl>(); this.ZoneDetails = zone; this.SetZonePoints(zone.ZonePolygon); }
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; } }
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; } }
public void SetMapZonePoints(MapZoneDrawing zone) { if (this.MapZoneControls.ContainsKey(zone.UID) == true) { this.MapZoneControls[zone.UID].SetZonePoints(zone.ZonePolygon); } }
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); } }
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; } }
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; } }
void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone) { this.MapZones_MapZoneRemoved(zone); }
private void MapZones_MapZoneAdded(MapZoneDrawing item) { this.SaveConnectionConfig(); }
void m_prcClient_MapZoneDeleted(PRoConClient sender, MapZoneDrawing zone) { this.InvokeIfRequired(() => this.MapZones_MapZoneRemoved(zone)); }
private void MapZones_MapZoneRemoved(MapZoneDrawing item) { this.uscBattlemap.RemoveMapZone(item); }
void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone) { this.MapZones_MapZoneAdded(zone); }
private void MapZones_MapZoneAdded(MapZoneDrawing item) { this.uscBattlemap.AddMapZone(item); }
void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone) { this.MapZones_MapZoneChanged(zone); }
void m_prcClient_MapZoneModified(PRoConClient sender, MapZoneDrawing zone) { this.InvokeIfRequired(() => this.MapZones_MapZoneChanged(zone)); }
void m_prcClient_MapZoneCreated(PRoConClient sender, MapZoneDrawing zone) { this.InvokeIfRequired(() => this.MapZones_MapZoneAdded(zone)); }