private async void btnFTPConnect_Click(object sender, RoutedEventArgs e) { listGameSaves = await DynamicControls.GetGSavesFromDevice(txtDeviceIPAddress.Text, "/JKSV/Saves"); if (listGameSaves == null) { lbGameSavesInDevice.ItemsSource = null; SaveTypeUpload = ""; txtSaveType.Text = ""; } else { SaveTypeUpload = ((int)Constants.SaveType.N3DS).ToString(); txtSaveType.Text = "Nintendo 3DS"; lbGameSavesInDevice.ItemsSource = listGameSaves; } ShowHideMenu("sbHideRightMenu", btnRightMenuHide, btnRightMenuShow, pnlRightMenu); lbGameSavesInDevice.Items.Refresh(); }
private async void lbGameSavesInDevice_SelChanged(object sender, SelectionChangedEventArgs e) { int index = lbGameSavesInDevice.SelectedIndex; if (lbGameSavesInDevice.HasItems && index >= 0) { listSaveSlots = await DynamicControls.GetGSavesFromDevice(txtDeviceIPAddress.Text, listGameSaves[index].FilePath); if (listGameSaves == null) { lbSaveSlotsInGameFolder.ItemsSource = null; } else { lbSaveSlotsInGameFolder.ItemsSource = listSaveSlots; } lbSaveSlotsInGameFolder.Items.Refresh(); } }