Пример #1
0
        private void OnFilesSelected(FilesSelectedMessage message)
        {
            UpdateGameComboBox();
            if (message.ReplaceSelection)
            {
                ArchiveModOptions.Clear();
            }
            bool oneFilePath = message.FilePaths.Count == 1;

            foreach (string filePath in message.FilePaths)
            {
                string fileName = Path.GetFileName(filePath);
                if (ArchiveModOptionExists(filePath))
                {
                    continue;
                }
                LogService.GroupMessage("analysis", "Selected file " + filePath);
                try {
                    ArchiveModOptions.Add(new ModOption(fileName, filePath, oneFilePath));
                } catch (Exception x) {
                    LogService.GroupMessage("analysis", "Exception creating mod option, " + x.Message);
                }
            }
        }
Пример #2
0
 public void AnalyzeArchives(string[] fileNames)
 {
     FilesSelectedMessage.SelectArchives(fileNames, MessengerInstance, true);
 }