FIL-13 Comments on the Show/Hide line are now preserved if block groups are not enabled for the script
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Filtration.ObjectModel.BlockItemBaseTypes
|
||||
|
||||
public BlockAction Action
|
||||
{
|
||||
get { return _action; }
|
||||
get => _action;
|
||||
set
|
||||
{
|
||||
_action = value;
|
||||
@@ -27,6 +27,8 @@ namespace Filtration.ObjectModel.BlockItemBaseTypes
|
||||
}
|
||||
}
|
||||
|
||||
public string Comment { get; set; }
|
||||
|
||||
public override string OutputText => Action.GetAttributeDescription();
|
||||
|
||||
public override string PrefixText => string.Empty;
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace Filtration.ObjectModel
|
||||
string Description { get; set; }
|
||||
ItemFilterBlockGroup BlockGroup { get; set; }
|
||||
BlockAction Action { get; set; }
|
||||
ActionBlockItem ActionBlockItem { get; }
|
||||
ObservableCollection<IItemFilterBlockItem> BlockItems { get; }
|
||||
Color DisplayBackgroundColor { get; }
|
||||
Color DisplayTextColor { get; }
|
||||
@@ -32,7 +33,8 @@ namespace Filtration.ObjectModel
|
||||
|
||||
public ItemFilterBlock()
|
||||
{
|
||||
BlockItems = new ObservableCollection<IItemFilterBlockItem> {new ActionBlockItem(BlockAction.Show)};
|
||||
ActionBlockItem = new ActionBlockItem(BlockAction.Show);
|
||||
BlockItems = new ObservableCollection<IItemFilterBlockItem> {ActionBlockItem};
|
||||
Enabled = true;
|
||||
}
|
||||
|
||||
@@ -79,6 +81,8 @@ namespace Filtration.ObjectModel
|
||||
}
|
||||
}
|
||||
|
||||
public ActionBlockItem ActionBlockItem { get; }
|
||||
|
||||
public ObservableCollection<IItemFilterBlockItem> BlockItems { get; }
|
||||
|
||||
public int BlockCount(Type type)
|
||||
|
||||
Reference in New Issue
Block a user