Esempio n. 1
0
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            long commentId   = long.Parse(value.ToString());
            bool isMyComment = CommentDB.IsMyComment(commentId, App.CurrentUser);

            if (isMyComment == false)
            {
                return(Visibility.Collapsed);
            }
            else
            {
                return(Visibility.Visible);
            }
        }