mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Conditions - Big refactor to prepare for conditional databindings
Conditions - Improved list-condition functionality
This commit is contained in:
1 parent
f1e222efb1
commit
5724794987
55 files changed
+1382
-1608
No files matched your search
+3
-3
@@ -176,9 +176,9 @@ namespace Artemis.UI.Shared
|
||||
IsMatchingFilteredTypes = filteredTypes.Any(t => t == PropertyInfo.PropertyType || t == typeof(Enum) && PropertyInfo.PropertyType.IsEnum);
|
||||
}
|
||||
|
||||
public DataModelVisualizationViewModel GetChildForCondition(DataModelConditionPredicate predicate, DisplayConditionSide side)
|
||||
public DataModelVisualizationViewModel GetChildForCondition(DataModelConditionPredicate predicate, DataModelConditionSide side)
|
||||
{
|
||||
if (side == DisplayConditionSide.Left)
|
||||
if (side == DataModelConditionSide.Left)
|
||||
{
|
||||
if (predicate.LeftDataModel == null || predicate.LeftPropertyPath == null)
|
||||
return null;
|
||||
@@ -289,7 +289,7 @@ namespace Artemis.UI.Shared
|
||||
#endregion
|
||||
}
|
||||
|
||||
public enum DisplayConditionSide
|
||||
public enum DataModelConditionSide
|
||||
{
|
||||
Left,
|
||||
Right
|
||||
|
||||
Reference in new issue
Block a user