public NewsPageViewModel(IOpenLinkService linkService, INotifycationService notify) { _linkService = linkService; _notify = notify; ShowDocumentCommand = new ActionCommand(async() => { try { await _linkService.OpenLinkAsync(Document?.url); } catch (Exception ex) { await _notify.ShowMessageAsync("Ошибка при открытии новости"); } }); }
public OpenLinkService(ISettingsService settings, INotifycationService notify) { _settings = settings; _notify = notify; }