Inheritance: ViewModelBase
Ejemplo n.º 1
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)));
     }
 }
Ejemplo 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);
 }
Ejemplo 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)));
 }
Ejemplo 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);
        }