Пример #1
0
        //--------------------------------------------------
        public CEasyQuerySourceFolder GetSubFolderWithCreate(string strName)
        {
            CEasyQuerySourceFolder child = GetSubFolder(strName);

            if (child == null)
            {
                child      = new CEasyQuerySourceFolder(m_source);
                child.Name = strName;
                m_childFolders.Add(child);
            }
            return(child);
        }
Пример #2
0
 //--------------------------------------------------
 public CEasyQuerySourceFolder FindFolder(string strId)
 {
     if (strId == Id)
     {
         return(this);
     }
     foreach (CEasyQuerySourceFolder folder in Childs)
     {
         CEasyQuerySourceFolder trouve = folder.FindFolder(strId);
         if (trouve != null)
         {
             return(trouve);
         }
     }
     return(null);
 }
Пример #3
0
 //--------------------------------------------------
 public void AddChild(CEasyQuerySourceFolder folder)
 {
     m_childFolders.Add(folder);
 }
Пример #4
0
 //-----------------------------------------------
 public CEasyQuerySource()
 {
     m_strSourceId  = Guid.NewGuid().ToString();
     m_folderRacine = new CEasyQuerySourceFolder(this);
 }