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
a646ff95ed
commit
8aba0a55ec
55 files changed
+1382
-1608
No files matched your search
@@ -36,7 +36,7 @@ namespace Artemis.UI.Shared.Input
|
||||
|
||||
Initialize();
|
||||
}
|
||||
|
||||
|
||||
public Brush ButtonBrush
|
||||
{
|
||||
get => _buttonBrush;
|
||||
@@ -75,7 +75,7 @@ namespace Artemis.UI.Shared.Input
|
||||
public DataModelVisualizationViewModel SelectedPropertyViewModel
|
||||
{
|
||||
get => _selectedPropertyViewModel;
|
||||
private set => SetAndNotify(ref _selectedPropertyViewModel, value);
|
||||
set => SetAndNotify(ref _selectedPropertyViewModel, value);
|
||||
}
|
||||
|
||||
public void PopulateSelectedPropertyViewModel(DataModel datamodel, string path)
|
||||
@@ -86,6 +86,17 @@ namespace Artemis.UI.Shared.Input
|
||||
SelectedPropertyViewModel = DataModelViewModel.GetChildByPath(datamodel.PluginInfo.Guid, path);
|
||||
}
|
||||
|
||||
public void ChangeDataModel(DataModelPropertiesViewModel dataModel)
|
||||
{
|
||||
if (DataModelViewModel != null)
|
||||
DataModelViewModel.UpdateRequested -= DataModelOnUpdateRequested;
|
||||
|
||||
DataModelViewModel = dataModel;
|
||||
|
||||
if (DataModelViewModel != null)
|
||||
DataModelViewModel.UpdateRequested += DataModelOnUpdateRequested;
|
||||
}
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
// Get the data models
|
||||
|
||||
Reference in new issue
Block a user