mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Databindings - Added conditional databindings
Conditions - Added easy method for null-handling in operators
This commit is contained in:
1 parent
b19cc6ca54
commit
b73ea53622
26 files changed
+491
-134
No files matched your search
@@ -142,6 +142,15 @@ namespace Artemis.UI.Screens.ProfileEditor.Conditions
|
||||
|
||||
if (IsRootGroup && Parent is DisplayConditionsViewModel displayConditionsViewModel)
|
||||
displayConditionsViewModel.DisplayStartHint = !Items.Any();
|
||||
|
||||
OnUpdated();
|
||||
}
|
||||
|
||||
public event EventHandler Updated;
|
||||
|
||||
protected virtual void OnUpdated()
|
||||
{
|
||||
Updated?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
@@ -157,6 +157,7 @@ namespace Artemis.UI.Screens.ProfileEditor.Conditions
|
||||
RightSideInputViewModel.ValueUpdated += RightSideOnValueEntered;
|
||||
}
|
||||
|
||||
RightSideInputViewModel.Value = DataModelConditionPredicate.RightStaticValue;
|
||||
if (RightSideInputViewModel.TargetType != targetType)
|
||||
RightSideInputViewModel.UpdateTargetType(targetType);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user