1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
Robert 736324e45e Profile editor - Added unro/redo
Profile editor - Added adding layers and folders
2022-01-02 00:04:46 +01:00

24 lines
700 B
C#

using System;
using System.Reactive.Disposables;
using Artemis.UI.Services.ProfileEditor;
using Artemis.UI.Shared;
using ReactiveUI;
namespace Artemis.UI.Screens.ProfileEditor.Panels.MenuBar
{
public class MenuBarViewModel : ActivatableViewModelBase
{
private ProfileEditorHistory? _history;
public MenuBarViewModel(IProfileEditorService profileEditorService)
{
this.WhenActivated(d => profileEditorService.History.Subscribe(history => History = history).DisposeWith(d));
}
public ProfileEditorHistory? History
{
get => _history;
set => this.RaiseAndSetIfChanged(ref _history, value);
}
}
}