using System; using System.Collections.ObjectModel; using System.Reactive; using Artemis.Core; using Artemis.Core.Services; using Avalonia; using ReactiveUI; namespace Artemis.UI.Avalonia.Screens.SurfaceEditor.ViewModels { public class SurfaceEditorViewModel : MainScreenViewModel { public SurfaceEditorViewModel(IScreen hostScreen, IRgbService rgbService) : base(hostScreen, "surface-editor") { DisplayName = "Surface Editor"; Devices = new ObservableCollection(rgbService.Devices); UpdateSelection = ReactiveCommand.Create(ExecuteUpdateSelection); ApplySelection = ReactiveCommand.Create(ExecuteApplySelection); } public ObservableCollection Devices { get; } public ReactiveCommand UpdateSelection { get; } public ReactiveCommand ApplySelection { get; } private void ExecuteUpdateSelection(Rect rect) { } private void ExecuteApplySelection(Rect rect) { } } }