private void GotoReplyImpl() { if (ReplyData != null) { ReplyData = null; } else { ReplyData = new ReplyViewModel(_baconProvider, _comment, new RelayCommand(() => ReplyData = null), (madeComment) => _replies.Add(new CommentViewModel(_baconProvider, madeComment, _linkId, !OddNesting, Depth + 1))); } }
private void GotoEditImpl() { if (ReplyData != null) ReplyData = null; else ReplyData = new ReplyViewModel(_baconProvider, _comment, new RelayCommand(() => ReplyData = null), (madeComment) => Body = ((Comment)madeComment.Data).Body, true); }
private void GotoReplyImpl() { if (ReplyData != null) ReplyData = null; else ReplyData = new ReplyViewModel(_baconProvider, _comment, new RelayCommand(() => ReplyData = null), (madeComment) => _replies.Add(new CommentViewModel(_baconProvider, madeComment, _linkId, !OddNesting, Depth + 1))); }
private void GotoReplyImpl() { Action<Thing> uiResponse = (madeComment) => Comments.Add(new CommentViewModel(_baconProvider, madeComment, _linkThing.Data.Name, false)); ReplyData = new ReplyViewModel(_baconProvider, _linkThing, new RelayCommand(() => ReplyData = null), uiResponse); }
private void GotoReplyImpl() { Action <Thing> uiResponse = (madeComment) => Comments.Add(new CommentViewModel(_baconProvider, madeComment, _linkThing.Data.Name, false)); ReplyData = new ReplyViewModel(_baconProvider, _linkThing, new RelayCommand(() => ReplyData = null), uiResponse); }