コード例 #1
0
 private void UninstallLibraryFromListItem(LibraryListItem libraryListItem)
 {
     if (libraryListItem.ButtonText != "Uninstall")
     {
         return;
     }
     LibraryManager.UninstallLibrary(libraryListItem);
     IsRestartRequired = true;
 }
コード例 #2
0
        private async Task InstallLibraryFromListItemAsync(LibraryListItem libraryListItem)
        {
            if (libraryListItem.ButtonText != "Install")
            {
                return;
            }
            await LibraryManager.InstallLatestVersionOfLibraryAsync(libraryListItem);

            IsRestartRequired = true;
        }