Display conditions - Implemented lists in the core, UI needs more work

This commit is contained in:
Robert committed 2020-08-12 23:32:30 +02:00
1 parent ae708fa26a
commit f2f77da953
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; }