mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 20:06:33 +00:00
Display conditions - Implemented lists in the core, UI needs more work
This commit is contained in:
1 parent
cd02a422fe
commit
c0e1e60e5e
13 files changed
+288
-84
No files matched your search
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Artemis.Plugins.Modules.General.DataModel.Windows;
|
||||
|
||||
namespace Artemis.Plugins.Modules.General.DataModel
|
||||
@@ -10,6 +11,12 @@ namespace Artemis.Plugins.Modules.General.DataModel
|
||||
{
|
||||
TimeDataModel = new TimeDataModel();
|
||||
TestTimeList = new List<TimeDataModel>();
|
||||
|
||||
var testExpression = new Func<object, object, bool>((leftItem, rightDataModel) =>
|
||||
((TimeDataModel) leftItem).CurrentTime.Month == ((GeneralDataModel) rightDataModel).TimeDataModel.CurrentTime.Day);
|
||||
|
||||
|
||||
var test = TestTimeList.Any(model => testExpression(model, this));
|
||||
}
|
||||
|
||||
public WindowDataModel ActiveWindow { get; set; }
|
||||
|
||||
Reference in new issue
Block a user