private async void lbMyGameSaves_SelChanged(object sender, SelectionChangedEventArgs e) { int index = lbMyGameSaves.SelectedIndex; if (lbMyGameSaves.HasItems && index >= 0) { listMySaveSlots = await DynamicControls.GetFilesIncludedFromLocalDB(listMyGameSaves[index].Username, listMyGameSaves[index].FileName, txtMUSaveTitle, txtMUSaveDescription, cmbMUSaveRegion, txtMUSaveType, txtMUHasExtData, null, null); if (listMySaveSlots == null) { lbMySaveSlotsInGameFolder.ItemsSource = null; } else { lbMySaveSlotsInGameFolder.ItemsSource = listMySaveSlots; } lbMySaveSlotsInGameFolder.Items.Refresh(); } }
private async void lbGameSavesToDownload_SelChanged(object sender, SelectionChangedEventArgs e) { int index = lbGameSavesToDownload.SelectedIndex; if (lbGameSavesToDownload.HasItems && index >= 0) { listGSToDownloadFilesIncluded = await DynamicControls.GetFilesIncludedFromLocalDB(listGameSavesToDownload[index].Username, listGameSavesToDownload[index].FileName, txtDLSaveTitle, txtDLSaveDescription, cmbDLSaveRegion, txtDLSaveType, txtDLHasExtData, txtDLCount, txtDLUploader); if (listGSToDownloadFilesIncluded == null) { lbFilesIncludedInDownload.ItemsSource = null; } else { lbFilesIncludedInDownload.ItemsSource = listGSToDownloadFilesIncluded; } lbFilesIncludedInDownload.Items.Refresh(); } }