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

            if (comment != null)
            {
                ReportCommentContent = new ReportContentUserControlViewModel(MasterDataService, new DelegateCommand <ReportContentData>((d) => DoReportComment(commentId, d)));
            }
        }
        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();
        }