mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 03:19:56 +00:00
Dynamic data models - Rewrote the visualization to use leverage new core APIs
This commit is contained in:
1 parent
26db794467
commit
8f552d0f71
22 files changed
+463
-374
No files matched your search
@@ -68,7 +68,7 @@ namespace Artemis.Core.DataModelExpansions
|
||||
if (_dynamicDataModels.ContainsKey(key))
|
||||
{
|
||||
throw new ArtemisCoreException($"Cannot add a dynamic data model with key '{key}' " +
|
||||
"because the key is already in use on this data model.");
|
||||
"because the key is already in use on by another dynamic property this data model.");
|
||||
}
|
||||
|
||||
if (_dynamicDataModels.ContainsValue(dynamicDataModel))
|
||||
@@ -78,6 +78,12 @@ namespace Artemis.Core.DataModelExpansions
|
||||
$"because the dynamic data model is already added with key '{existingKey}.");
|
||||
}
|
||||
|
||||
if (GetType().GetProperty(key) != null)
|
||||
{
|
||||
throw new ArtemisCoreException($"Cannot add a dynamic data model with key '{key}' " +
|
||||
"because the key is already in use by a static property on this data model.");
|
||||
}
|
||||
|
||||
dynamicDataModel.PluginInfo = PluginInfo;
|
||||
dynamicDataModel.DataModelDescription = new DataModelPropertyAttribute
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user