Exemple #1
0
        void OnPopupBackClicked(object sender, EventArgs e)
        {
            ContentView.Folder = ContentView.Folder.Substring(0, ContentView.Folder.Length - 1);
            var lastSlash = ContentView.Folder.LastIndexOf("/", StringComparison.Ordinal);

            if (lastSlash == -1)
            {
                ContentView.Folder = "";
                ContentView.HideBackButton();
            }
            else
            {
                ContentView.Folder = ContentView.Folder.Substring(0, lastSlash + 1);
            }

            List <Package> packages = Client.GetPackages(ContentView.Folder);

            ContentView.PackageContent.AddPackages(packages);
        }