41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using Filtration.ObjectModel;
|
|
|
|
namespace Filtration.ViewModels
|
|
{
|
|
internal interface IItemFilterCommentBlockViewModel : IItemFilterBlockViewModelBase
|
|
{
|
|
IItemFilterCommentBlock ItemFilterCommentBlock { get; }
|
|
string Comment { get; }
|
|
}
|
|
|
|
internal class ItemFilterCommentBlockViewModel : ItemFilterBlockViewModelBase, IItemFilterCommentBlockViewModel
|
|
{
|
|
public override void Initialise(IItemFilterBlockBase itemfilterBlock, IItemFilterScriptViewModel itemFilterScriptViewModel)
|
|
{
|
|
_parentScriptViewModel = itemFilterScriptViewModel;
|
|
ItemFilterCommentBlock = itemfilterBlock as IItemFilterCommentBlock;
|
|
BaseBlock = ItemFilterCommentBlock;
|
|
|
|
base.Initialise(itemfilterBlock, itemFilterScriptViewModel);
|
|
}
|
|
|
|
public IItemFilterCommentBlock ItemFilterCommentBlock { get; private set; }
|
|
|
|
public string Comment
|
|
{
|
|
get
|
|
{
|
|
return ItemFilterCommentBlock.Comment;
|
|
}
|
|
set
|
|
{
|
|
if (ItemFilterCommentBlock.Comment != value)
|
|
{
|
|
ItemFilterCommentBlock.Comment = value;
|
|
IsDirty = true;
|
|
RaisePropertyChanged();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |