Exemplo n.º 1
0
 public bool CreateFolder(Element element)
 {
     bool isFolderCreated = false;
     if (element.ParentElement.Path != root.Path)
     {
         DatabaseControl temp_dbControl = new DatabaseControl(element.ParentElement.Path);
         temp_dbControl.OpenConnection();
         isFolderCreated = temp_dbControl.CreateFolder(element);
         temp_dbControl.CloseConnection();
     }
     else
     {
         isFolderCreated = dbControl.CreateFolder(element);
     }
     return isFolderCreated;
 }