Input - Polished up UI

Input - Added events to service
This commit is contained in:
SpoinkyNL committed 2020-11-23 19:41:48 +01:00
1 parent 6ee5cbd09c
commit f1f0abfec5
40 files changed
+552 -203

No files matched your search

@@ -6,7 +6,7 @@ namespace Artemis.Storage.Entities.Surface
{
public DeviceEntity()
{
InputIdentifier = new List<DeviceInputIdentifierEntity>();
InputIdentifiers = new List<DeviceInputIdentifierEntity>();
}
public string DeviceIdentifier { get; set; }
@@ -16,7 +16,7 @@ namespace Artemis.Storage.Entities.Surface
public double Scale { get; set; }
public int ZIndex { get; set; }
public List<DeviceInputIdentifierEntity> InputIdentifier { get; set; }
public List<DeviceInputIdentifierEntity> InputIdentifiers { get; set; }
}
public class DeviceInputIdentifierEntity
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using Artemis.Storage.Entities.Surface;
using Artemis.Storage.Repositories.Interfaces;
using LiteDB;
@@ -32,7 +33,7 @@ namespace Artemis.Storage.Repositories
public List<SurfaceEntity> GetAll()
{
return _repository.Query<SurfaceEntity>().Include(s => s.DeviceEntities).ToList();
return _repository.Query<SurfaceEntity>().Include(s => s.DeviceEntities.Select(de => de.InputIdentifiers)).ToList();
}
public void Save(SurfaceEntity surfaceEntity)