Inheritance: 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)));
     }
 }
Esempio n. 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);
 }
Esempio n. 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)));
 }
Esempio n. 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);
        }