Exemplo n.º 1
0
        private bool Exists(Dossier directory, string name)
        {
            fichier[] list = directory.Getlistfichier();
            int       i    = 0;
            int       stop = list.Length - 1;

            while (i < stop)
            {
                while ((list[i] != null))

                {
                    if (list[i].GetNom().Equals(name))
                    {
                        return(true);
                    }
                    else
                    {
                        i++;
                    }
                }
                return(false);
            }
            return(false);
        }