Exemplo n.º 1
0
        /// <summary>
        /// Récupère la listes des fichiers correspondant à un cloud
        /// </summary>
        /// <param name="drive"></param>
        /// <returns></returns>
        public List <Fichier> GetItems(Drive drive)
        {
            List <Fichier> lst = new List <Fichier>();

            try {
                switch (drive)
                {
                case Drive.DP:
                    if (DBB != null)
                    {
                        lst = DBB.GetItems();
                    }
                    lst.AddRange(DBB.GetFilesShared());
                    break;

                case Drive.GG:
                    if (Google != null)
                    {
                        lst = Google.GetItems();
                    }
                    break;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(lst);
        }