public override void Execute(object?parameter) { if (parameter is string link) { OpenUrlService.Open(link); } }
private void CommandHandler(object sender, ExecutedRoutedEventArgs ea) { try { OpenUrlService.OpenUrl((string)ea.Parameter); } catch (Exception ex) { MessageBoxService.ShowMessageBox(ex.Message); } }