private async Task LoadFilesImpl(bool addingFiles = false) { if (!addingFiles && IsProcessingFiles) { return; } var fileNames = await services .OpenFileDialog( "Select RS2014 XML Arrangement(s)", FileFilter.RSXmlFiles, multiSelect : true); if (fileNames?.Length > 0) { if (!addingFiles) { XMLProcessors.Clear(); } await AddFilesAsync(fileNames).ConfigureAwait(false); } }
private void CloseAllImpl() { XMLProcessors.Clear(); GC.Collect(2, GCCollectionMode.Optimized); GC.WaitForPendingFinalizers(); }