public void SetZoneTags(ZoneTagList tags) { if (this.ZoneDetails != null) { this.ZoneDetails.Tags.FromString(tags.ToString()); } }
public MapZone(string strUid, string strLevelFileName, string strTagList, Point3D[] zonePolygon, bool blInclusive) { LevelFileName = strLevelFileName; UID = strUid; ZonePolygon = zonePolygon; ZoneInclusive = blInclusive; Tags = new ZoneTagList(strTagList); }
public MapZone(string strUid, string strLevelFileName, string strTagList, Point3D[] a_pntZonePolygon, bool blInclusive) { this.LevelFileName = strLevelFileName; this.UID = strUid; this.ZonePolygon = a_pntZonePolygon; this.ZoneInclusive = blInclusive; this.Tags = new ZoneTagList(strTagList); }
private void btnAddTag_Click(object sender, EventArgs e) { ZoneTagList tags = new ZoneTagList(this.txtTagList.Text); if (this.cboTagList.SelectedItem != null && tags.Contains((string)this.cboTagList.SelectedItem) == false) { tags.Add((string)this.cboTagList.SelectedItem); this.txtTagList.Text = tags.ToString(); } }
private void CheckTagsVariable(Variable item) { if (String.Compare(item.Name, "ZONE_TAG_LIST", true) == 0) { ZoneTagList tags = new ZoneTagList(item.Value); this.cboTagList.Items.Clear(); foreach (string zoneTag in tags) { this.cboTagList.Items.Add(zoneTag); } } }
public void UnregisterZoneTags(params string[] tags) { string tagList = GetVariable("ZONE_TAG_LIST", String.Empty); var tagsList = new ZoneTagList(tagList); foreach (string tag in tags) { if (tagsList.Contains(tag) == true) { tagsList.Remove(tag); } } ExecuteCommand("procon.protected.vars.set", "ZONE_TAG_LIST", tagsList.ToString()); }
public void RegisterZoneTags(params string[] tags) { string tagList = GetVariable <string>("ZONE_TAG_LIST", String.Empty); ZoneTagList tagsList = new ZoneTagList(tagList); foreach (string tag in tags) { if (tagsList.Contains(tag) == false) { tagsList.Add(tag); } } this.ExecuteCommand("procon.protected.vars.set", "ZONE_TAG_LIST", tagsList.ToString()); }
private void CheckTagsVariable(Variable item) { if (String.Compare(item.Name, "ZONE_TAG_LIST", true) == 0) { ZoneTagList tags = new ZoneTagList(item.Value); this.cboTagList.Items.Clear(); foreach (string zoneTag in tags) { this.cboTagList.Items.Add(zoneTag); } } }
private void btnAddTag_Click(object sender, EventArgs e) { ZoneTagList tags = new ZoneTagList(this.txtTagList.Text); if (this.cboTagList.SelectedItem != null && tags.Contains((string)this.cboTagList.SelectedItem) == false) { tags.Add((string)this.cboTagList.SelectedItem); this.txtTagList.Text = tags.ToString(); } }
public void SetZoneTags(ZoneTagList tags) { if (this.ZoneDetails != null) { this.ZoneDetails.Tags.FromString(tags.ToString()); } }
private void Tags_TagsEdited(ZoneTagList sender) { if (TagsEdited != null) { this.TagsEdited(this); } }
private void Tags_TagsEdited(ZoneTagList sender) { if (this.TagsEdited != null) { FrostbiteConnection.RaiseEvent(this.TagsEdited.GetInvocationList(), this); } }
public MapZone(string strLevelFileName) { this.LevelFileName = strLevelFileName; this.Tags = new ZoneTagList(); }
public MapZone(string strLevelFileName) { LevelFileName = strLevelFileName; Tags = new ZoneTagList(); }