Пример #1
0
        public async Task ExtractParameter()
        {
            try
            {
                ClearStatus();
                string fileName = _getFileName.SaveGetFileName("Save As", ArcFile.RemoveArcExtension(ArcPath).Item1 + "_parameter.xlsx", "Excel spreadsheet (*.xlsx)|*.xlsx");
                if (fileName != null)
                {
                    await ArcFile.ExtractParameterToXlsx(fileName, true, ProgressReporter);

                    ReportMessage("Done.");
                }
            }
            catch (Exception ex)
            {
                ReportException(ex);
            }
        }
Пример #2
0
        public async Task ExtractLyrics()
        {
            try
            {
                ClearStatus();
                string dirName = _getFileName.SaveGetFileName("Select New Folder", ArcFile.RemoveArcExtension(ArcPath).Item1 + "_lyrics", "");
                if (dirName != null)
                {
                    await ArcFile.ExtractLyrics(dirName, true, ProgressReporter);

                    ReportMessage("Done.");
                }
            }
            catch (Exception ex)
            {
                ReportException(ex);
            }
        }
Пример #3
0
        public async Task ExtractAll()
        {
            try
            {
                ClearStatus();
                string fileName = _getFileName.SaveGetFileName("Extract to...", ArcFile.RemoveArcExtension(ArcPath).Item1, "");
                if (fileName != null)
                {
                    await ArcFile.ExtractAllAsync(fileName, false, ProgressReporter);

                    ReportMessage("Done.");
                }
            }
            catch (Exception ex)
            {
                ReportException(ex);
            }
        }