public File ViewFile(TreeView root, string userName)
        {
            foreach (var file in _files)
            {
                if (file.Nome == root.SelectedNode.Text && file.CaminhoCompleto == root.SelectedNode.FullPath)
                {
                    if (file.User == userName)
                    {
                        return(file);
                    }
                    if (file.Permissoes.Escrita.Equals(true))
                    {
                        var user         = new GeneralController();
                        var isPermitions = user.PermitionsUser(userName);

                        if (isPermitions[1] && file.Permissoes.Leitura.Equals(true))
                        {
                            return(file);
                        }
                        if (isPermitions[0])
                        {
                            return(file);
                        }
                    }
                }
            }

            return(null);
        }