Ejemplo n.º 1
0
 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("Ошибка при открытии новости");
         }
     });
 }
Ejemplo n.º 2
0
 public OpenLinkService(ISettingsService settings, INotifycationService notify)
 {
     _settings = settings;
     _notify   = notify;
 }