private void Import() { var fileName = _uiService.ShowOpenDialog(Strings.Get($"Import profiles")); if (fileName == null) { return; } var reportBuilder = new StringBuilder(); var newOptions = _optionTasks.LoadOptions(fileName); var mergedOptions = _optionTasks.ProfileExportProcessor.PrepareAndMergeForImport(GetOptionsCollection(), newOptions, s => reportBuilder.AppendLine(s)); SetOptionsCollection(mergedOptions); reportBuilder.AppendLine(Strings.Get($"Sucessfully imported {newOptions.Length} profile(s) from '{fileName}'.")); _uiService.ShowReport(Strings.Get($"Import profiles"), reportBuilder.ToString()); }