mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Data bindings - Added the option for different data binding modes
This commit is contained in:
1 parent
906efdac98
commit
f270d786f0
32 files changed
+940
-497
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile.DataBindings
|
||||
{
|
||||
public class ConditionalDataBindingEntity : IDataBindingModeEntity
|
||||
{
|
||||
public ConditionalDataBindingEntity()
|
||||
{
|
||||
Values = new List<DataBindingConditionValueEntity>();
|
||||
}
|
||||
|
||||
public List<DataBindingConditionValueEntity> Values { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Artemis.Storage.Entities.Profile.Conditions;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile.DataBindings
|
||||
{
|
||||
public class DataBindingConditionValueEntity
|
||||
{
|
||||
public string Value { get; set; }
|
||||
public DisplayConditionGroupEntity RootGroup { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,23 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile.DataBindings
|
||||
{
|
||||
public class DataBindingEntity
|
||||
{
|
||||
public DataBindingEntity()
|
||||
{
|
||||
Modifiers = new List<DataBindingModifierEntity>();
|
||||
}
|
||||
|
||||
public string TargetExpression { get; set; }
|
||||
public Guid? SourceDataModelGuid { get; set; }
|
||||
public string SourcePropertyPath { get; set; }
|
||||
public int DataBindingMode { get; set; }
|
||||
public TimeSpan EasingTime { get; set; }
|
||||
public int EasingFunction { get; set; }
|
||||
|
||||
public List<DataBindingModifierEntity> Modifiers { get; set; }
|
||||
|
||||
public IDataBindingModeEntity DataBindingMode { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile.DataBindings
|
||||
{
|
||||
public class DirectDataBindingEntity : IDataBindingModeEntity
|
||||
{
|
||||
public DirectDataBindingEntity()
|
||||
{
|
||||
Modifiers = new List<DataBindingModifierEntity>();
|
||||
}
|
||||
|
||||
public Guid? SourceDataModelGuid { get; set; }
|
||||
public string SourcePropertyPath { get; set; }
|
||||
|
||||
public List<DataBindingModifierEntity> Modifiers { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Artemis.Storage.Entities.Profile.DataBindings
|
||||
{
|
||||
public interface IDataBindingModeEntity
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user