Esempio n. 1
0
        public virtual TerritoryObject SearchFullName(string query)
        {
            TerritoryObject result = null;

            if (query.Length > 1)
            {
                foreach (TerritoryObject cur in childObjects)
                {
                    if (cur.Name == query)
                    {
                        return(cur);
                    }
                    result = cur.SearchFullName(query);
                    if (result == null)
                    {
                        continue;
                    }
                    else
                    {
                        return(result);
                    }
                }
                return(result);
            }
            return(result);
        }
Esempio n. 2
0
 public override void AddChild(TerritoryObject current)
 {
 }
Esempio n. 3
0
 public virtual void AddChild(TerritoryObject current)
 {
     childObjects.Add(current);
 }