// The Convert saves page: an emulator's saves into Triforce, or Triforce's out to an emulator (Saves.cs). using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace TriforceSetup; sealed partial class Shell { Grid SavesPage = null!; RadioButton SavesIn = null!, SavesOut = null!; Caps SavesListLabel = null!; TextBlock SavesInfo = null!, SavesTarget = null!, SavesLine = null!, SavesDetail = null!; Button SavesRescan = null!, SavesBrowse = null!, SavesBack = null!, SavesGo = null!, ConvertSavesButton = null!; ListBox SaveList = null!; List found = new(); SaveSet? chosenFolder; // (one picked with Choose a folder) bool savesBusy; void InitSaves() { SavesPage = Part("SavesPage"); SavesIn = Part("SavesIn"); SavesOut = Part("SavesOut"); SavesListLabel = Part("SavesListLabel"); SavesInfo = Part("SavesInfo"); SavesTarget = Part("SavesTarget"); SavesLine = Part("SavesLine"); SavesDetail = Part("SavesDetail"); SavesRescan = Part