Project cleanup

This commit is contained in:
Robert committed 2020-02-13 19:38:43 +01:00
1 parent 73115898de
commit 6f95c609b6
51 files changed
+440 -490

No files matched your search

@@ -76,6 +76,18 @@ namespace Artemis.Core.Models.Surface
set => DeviceEntity.ZIndex = value;
}
public override string ToString()
{
return $"[{RgbDevice.DeviceInfo.DeviceType}] {RgbDevice.DeviceInfo.DeviceName} - {X}.{Y}.{ZIndex}";
}
public event EventHandler DeviceUpdated;
protected virtual void OnDeviceUpdated()
{
DeviceUpdated?.Invoke(this, EventArgs.Empty);
}
internal void ApplyToEntity()
{
// Other properties are computed
@@ -113,17 +125,5 @@ namespace Artemis.Core.Models.Surface
RenderPath = path;
}
public override string ToString()
{
return $"[{RgbDevice.DeviceInfo.DeviceType}] {RgbDevice.DeviceInfo.DeviceName} - {X}.{Y}.{ZIndex}";
}
public event EventHandler DeviceUpdated;
protected virtual void OnDeviceUpdated()
{
DeviceUpdated?.Invoke(this, EventArgs.Empty);
}
}
}
@@ -48,6 +48,15 @@ namespace Artemis.Core.Models.Surface
internal SurfaceEntity SurfaceEntity { get; set; }
internal Guid EntityId { get; set; }
public void UpdateScale(double value)
{
Scale = value;
foreach (var device in Devices)
device.CalculateRenderProperties();
OnScaleChanged();
}
internal void ApplyToEntity()
{
SurfaceEntity.Id = EntityId;
@@ -62,15 +71,6 @@ namespace Artemis.Core.Models.Surface
}
}
public void UpdateScale(double value)
{
Scale = value;
foreach (var device in Devices)
device.CalculateRenderProperties();
OnScaleChanged();
}
#region Events
public event EventHandler<EventArgs> ScaleChanged;