private void HandleRepost(object sender, RoutedEventArgs e) { var target = sender as FrameworkElement; var statusInfo = target.Tag as StatusData; if (null != statusInfo) { var isPicAttached = poster.IsPicAttached; poster.IsPicAttached = false; DoBlur(); var postWin = new PostWindow(viewModel, statusInfo, PosterMode.Repost); postWin.Owner = this; postWin.ShowDialog(); UndoBlur(); poster.IsPicAttached = isPicAttached; } }
private void HandleReplyComment(object sender, RoutedEventArgs e) { var target = sender as FrameworkElement; var comment = target.Tag as CommentInfo; if (null != comment) { var isPicAttached = poster.IsPicAttached; poster.IsPicAttached = false; DoBlur(); var postWin = new PostWindow(viewModel, comment); postWin.Owner = this; postWin.ShowDialog(); UndoBlur(); poster.IsPicAttached = isPicAttached; } }