示例#1
0
        public static void CommandHandler(object target, ExecutedRoutedEventArgs ea)
        {
            ea.Handled = true;
            var mainWindow = (MainWindow)Application.Current.MainWindow;
            var tweet      = (Tweet)ea.Parameter ?? mainWindow.Timeline.GetSelectedTweet;
            var link       = TimelineController.TweetLink(tweet);

            OpenLinkCommand.Command.Execute(link, mainWindow);
        }
示例#2
0
        private void OnOpenTweetLink(Tweet tweet)
        {
            var link = TimelineController.TweetLink(tweet);

            Process.Start(new ProcessStartInfo(link));
        }