Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public void OpenWith(string command, string arguments, string node) =>
 _resourceOpeningService.OpenWith(command, arguments, node);