예제 #1
0
 public void RemoveGroupFromGroupList(GoGroupClass group_val)
 {
     this.groupCount--;
     if (group_val.IndexNumber() != this.groupCount)
     {
         this.groupArray[this.groupCount].SetIndexNumber(group_val.IndexNumber());
         this.groupArray[group_val.IndexNumber()] = this.groupArray[this.groupCount];
     }
     this.groupArray[this.groupCount] = null;
 }
예제 #2
0
        public void AbendGroupList()
        {
            int i = 0;

            while (i < this.groupCount)
            {
                GoGroupClass group = this.groupArray[i];
                if (group == null)
                {
                    this.abendIt("abendGroupList", "null group");
                    return;
                }
                if (group.GroupListObject() != this)
                {
                    this.abendIt("abendGroupList", "groupListObject");
                    return;
                }
                if (group.IndexNumber() != i)
                {
                    this.abendIt("abendGroupList", "index ");
                    return;
                }

                group.AbendGroup();

                int j = i + 1;
                while (j < this.groupCount)
                {
                    group.AbendOnGroupConflict(this.groupArray[j]);
                    j = j + 1;
                }
                i += 1;
            }
        }