public void OnCellActionButtonClick(object sender, EventArgs e)
        {
            PackageManagerButton button = (PackageManagerButton)sender;

            if (button.Type == PMButtonType.CancelPackageTasks)
            {
                packageManager.CancelPackageTasks(button.PackageId);
            }
            else if (button.Type == PMButtonType.SetPackagePriority)
            {
                packageManager.SetPackagePriority(button.PackageId, button.PriorityIndex);
            }
            else if (button.Type == PMButtonType.StartPackageDownload)
            {
                packageManager.StartPackageDownload(button.PackageId);
            }
            else if (button.Type == PMButtonType.StartRemovePackage)
            {
                packageManager.StartPackageRemove(button.PackageId);
            }
            else if (button.Type == PMButtonType.UpdatePackages)
            {
                var controller = new PackageManagerController(currentFolder + button.PackageName + "/");
                NavigationController.PushViewController(controller, true);
            }
        }
        public void OnAdapterActionButtonClick(object sender, EventArgs e)
        {
            PMButton button = (PMButton)sender;

            System.Console.WriteLine("Clicked: " + button.PackageId + " - " + button.PackageName + " - " + button.Type);

            if (button.Type == PMButtonType.CancelPackageTasks)
            {
                packageManager.CancelPackageTasks(button.PackageId);
            }
            else if (button.Type == PMButtonType.SetPackagePriority)
            {
                packageManager.SetPackagePriority(button.PackageId, button.PriorityIndex);
                UpdatePackages();
            }
            else if (button.Type == PMButtonType.StartPackageDownload)
            {
                packageManager.StartPackageDownload(button.PackageId);
            }
            else if (button.Type == PMButtonType.StartRemovePackage)
            {
                packageManager.StartPackageRemove(button.PackageId);
            }
            else if (button.Type == PMButtonType.UpdatePackages)
            {
                currentFolder = currentFolder + button.PackageName + "/";
                UpdatePackages();
            }
        }