Beispiel #1
0
        private void InitConfirmCommentRepost(Guid commentId)
        {
            var comment = Comments.SingleOrDefault(c => c.CommentId == commentId);

            if (comment != null)
            {
                ConfirmCommentRepost = new ConfirmActionUserControlViewModel(ResourceLoader.GetString("confirmRepostComment"), new DelegateCommand(() => RepostComment(commentId)));
            }
        }
        private void RefreshState()
        {
            ReportPictureContent = new ReportContentUserControlViewModel(MasterDataService, ReportPictureCommand);
            ConfirmPictureRepost = new ConfirmActionUserControlViewModel(ResourceLoader.GetString("confirmRepostPicture"), RepostPictureCommand);

            IsLikeChecked    = picture.UserApprovalModifier == UserApprovalModifier.LIKE;
            IsDislikeChecked = picture.UserApprovalModifier == UserApprovalModifier.DISLIKE;

            LikeCommand.RaiseCanExecuteChanged();
            DislikeCommand.RaiseCanExecuteChanged();

            RepostPictureCommand.RaiseCanExecuteChanged();
            ReportPictureCommand.RaiseCanExecuteChanged();
        }