public void Open(string resource) { var extension = _pathService.GetExtension(resource); var selectedApplication = _openWithApplicationService.GetSelectedApplication(extension); if (selectedApplication is null) { _resourceOpeningService.Open(resource); } else { _resourceOpeningService.OpenWith(selectedApplication.ExecutePath, selectedApplication.Arguments, resource); } }
public void OpenWith(string command, string arguments, string node) => _resourceOpeningService.OpenWith(command, arguments, node);