Beispiel #1
0
 public void SetZoneTags(ZoneTagList tags)
 {
     if (this.ZoneDetails != null)
     {
         this.ZoneDetails.Tags.FromString(tags.ToString());
     }
 }
Beispiel #2
0
        public MapZone(string strUid, string strLevelFileName, string strTagList, Point3D[] zonePolygon, bool blInclusive) {
            LevelFileName = strLevelFileName;
            UID = strUid;
            ZonePolygon = zonePolygon;
            ZoneInclusive = blInclusive;

            Tags = new ZoneTagList(strTagList);
        }
Beispiel #3
0
        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);
            
        }
Beispiel #4
0
        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();
            }
        }
Beispiel #5
0
        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);
                }
            }
        }
Beispiel #6
0
        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());
        }
Beispiel #7
0
        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());
        }
Beispiel #8
0
        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);
                }
            }
        }
Beispiel #9
0
        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();
            }
        }
Beispiel #10
0
 public void SetZoneTags(ZoneTagList tags)
 {
     if (this.ZoneDetails != null) {
         this.ZoneDetails.Tags.FromString(tags.ToString());
     }
 }
Beispiel #11
0
 private void Tags_TagsEdited(ZoneTagList sender) {
     if (TagsEdited != null) {
         this.TagsEdited(this);
     }
 }
Beispiel #12
0
 private void Tags_TagsEdited(ZoneTagList sender) {
     if (this.TagsEdited != null) {
         FrostbiteConnection.RaiseEvent(this.TagsEdited.GetInvocationList(), this);
     }
 }
Beispiel #13
0
 public MapZone(string strLevelFileName) {
     this.LevelFileName = strLevelFileName;
     this.Tags = new ZoneTagList();
 }
Beispiel #14
0
 public MapZone(string strLevelFileName) {
     LevelFileName = strLevelFileName;
     Tags = new ZoneTagList();
 }