상속: ViewModelBase
 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)));
     }
 }
예제 #2
0
 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);
 }
예제 #3
0
 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)));
 }
예제 #4
0
 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);
        }