private void SetNewComment(Comment comment) { Debug.WriteLine(comment.CommentID); if (_isOnComment1) Comment1 = comment; else Comment2 = comment; Comment1IsVisible = _isOnComment1; Comment2IsVisible = !_isOnComment1; _isOnComment1 = !_isOnComment1; }
public FeedbackDialogViewModel() { Comment = new Comment(); _context = ServiceFactory.Create(); _context.Comments.Add(Comment); }
public void InsertComment(Comment comment) { _dbContext.Comments.Add(comment); }