public static void CommandHandler(object target, ExecutedRoutedEventArgs ea)
        {
            ea.Handled = true;
            var mainWindow = (MainWindow)Application.Current.MainWindow;
            var tweet      = ea.Parameter as Tweet ?? mainWindow.Timeline.GetSelectedTweet;

            if (tweet == null)
            {
                return;
            }
            TimelineController.CopyTweetToClipboard(tweet);
        }
Beispiel #2
0
 private void OnCopy(Tweet tweet)
 {
     TimelineController.CopyTweetToClipboard(tweet);
 }