Started work on Item Filter Preview module

This commit is contained in:
Ben Wallis
2015-12-19 23:02:32 +00:00
parent 2f2a57e77a
commit 014107c76b
31 changed files with 1222 additions and 24 deletions

View File

@@ -6,8 +6,6 @@ namespace Filtration.ObjectModel.Enums
{
[Description("=")]
Equal,
[Description("!=")]
NotEqual,
[Description("<")]
LessThan,
[Description("<=")]

View File

@@ -88,12 +88,7 @@ namespace Filtration.ObjectModel
return false;
}
if (startingBlockGroup.ParentGroup != null)
{
return HasBlockGroupInParentHierarchy(targetBlockGroup, startingBlockGroup.ParentGroup);
}
return false;
return startingBlockGroup.ParentGroup != null && HasBlockGroupInParentHierarchy(targetBlockGroup, startingBlockGroup.ParentGroup);
}
private void OnBlockGroupStatusChanged(object sender, EventArgs e)

View File

@@ -7,7 +7,19 @@ using Filtration.ObjectModel.ThemeEditor;
namespace Filtration.ObjectModel
{
public class ItemFilterScript
public interface IItemFilterScript
{
ObservableCollection<ItemFilterBlock> ItemFilterBlocks { get; }
ObservableCollection<ItemFilterBlockGroup> ItemFilterBlockGroups { get; }
ThemeComponentCollection ThemeComponents { get; set; }
string FilePath { get; set; }
string Description { get; set; }
DateTime DateModified { get; set; }
List<string> Validate();
void ReplaceColors(ReplaceColorsParameterSet replaceColorsParameterSet);
}
public class ItemFilterScript : IItemFilterScript
{
public ItemFilterScript()
{