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