mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
33 lines
844 B
C#
33 lines
844 B
C#
using Artemis.Core;
|
|
using SkiaSharp;
|
|
using Stylet;
|
|
|
|
namespace Artemis.UI.Screens.SurfaceEditor.Visualization
|
|
{
|
|
public class ListDeviceViewModel : PropertyChangedBase
|
|
{
|
|
private SKColor _color;
|
|
private bool _isSelected;
|
|
|
|
public ListDeviceViewModel(ArtemisDevice device, SurfaceEditorViewModel surfaceEditorViewModel)
|
|
{
|
|
Device = device;
|
|
Parent = surfaceEditorViewModel;
|
|
}
|
|
|
|
public ArtemisDevice Device { get; }
|
|
public SurfaceEditorViewModel Parent { get; }
|
|
|
|
public bool IsSelected
|
|
{
|
|
get => _isSelected;
|
|
set => SetAndNotify(ref _isSelected, value);
|
|
}
|
|
|
|
public SKColor Color
|
|
{
|
|
get => _color;
|
|
set => SetAndNotify(ref _color, value);
|
|
}
|
|
}
|
|
} |