private async void MessageCopyMenuItem_Click(object sender, RoutedEventArgs e)
 {
     if (this.ChatList.SelectedItem != null && this.ChatList.SelectedItem is ChatMessageViewModel)
     {
         ChatMessageViewModel message = (ChatMessageViewModel)this.ChatList.SelectedItem;
         await UIHelpers.CopyToClipboard(message.PlainTextMessage);
     }
 }
 private async void CopyEndpointURLButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     Button button = (Button)sender;
     OverlayEndpointListingViewModel overlay = (OverlayEndpointListingViewModel)button.DataContext;
     await UIHelpers.CopyToClipboard(overlay.Address);
 }
示例#3
0
 private async void CopyURLCommandButton_Click(object sender, RoutedEventArgs e)
 {
     WebhookCommandItemViewModel commandItem = ((Button)sender).DataContext as WebhookCommandItemViewModel;
     await UIHelpers.CopyToClipboard($"{MixItUpService.MixItUpAPIEndpoint}webhook/{commandItem.Webhook.Id}?secret={commandItem.Webhook.Secret}");
 }