예제 #1
0
        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);
            }
        }
예제 #2
0
 private void CloseAllImpl()
 {
     XMLProcessors.Clear();
     GC.Collect(2, GCCollectionMode.Optimized);
     GC.WaitForPendingFinalizers();
 }