Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void OnCopy(Tweet tweet)
 {
     TimelineController.CopyTweetToClipboard(tweet);
 }