From a0a72b5fe8d972d4ff5dca35fff7ac6dcf39fd5d Mon Sep 17 00:00:00 2001 From: GlenCFL Date: Fri, 8 Dec 2017 10:44:22 -0500 Subject: [PATCH] Mark comments as two way, fixing updating issues. --- .../ViewModels/ItemFilterCommentBlockViewModel.cs | 14 ++++++++++++-- Filtration/Views/ItemFilterCommentBlockView.xaml | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Filtration/ViewModels/ItemFilterCommentBlockViewModel.cs b/Filtration/ViewModels/ItemFilterCommentBlockViewModel.cs index 4ed357e..da61e76 100644 --- a/Filtration/ViewModels/ItemFilterCommentBlockViewModel.cs +++ b/Filtration/ViewModels/ItemFilterCommentBlockViewModel.cs @@ -25,7 +25,7 @@ namespace Filtration.ViewModels MoveBlockToTopCommand = new RelayCommand(OnMoveBlockToTopCommand); MoveBlockToBottomCommand = new RelayCommand(OnMoveBlockToBottomCommand); } - + public RelayCommand CopyBlockCommand { get; } public RelayCommand PasteBlockCommand { get; } public RelayCommand AddBlockCommand { get; } @@ -47,7 +47,17 @@ namespace Filtration.ViewModels public IItemFilterCommentBlock ItemFilterCommentBlock { get; private set; } - public string Comment => ItemFilterCommentBlock.Comment; + public string Comment + { + get + { + return ItemFilterCommentBlock.Comment; + } + set + { + ItemFilterCommentBlock.Comment = value; + } + } private void OnCopyBlockCommand() { diff --git a/Filtration/Views/ItemFilterCommentBlockView.xaml b/Filtration/Views/ItemFilterCommentBlockView.xaml index fd62e90..8846a50 100644 --- a/Filtration/Views/ItemFilterCommentBlockView.xaml +++ b/Filtration/Views/ItemFilterCommentBlockView.xaml @@ -56,7 +56,7 @@ - + @@ -76,7 +76,7 @@ - +