2023-07-12 22:41:31 +00:00
|
|
|
|
using MSFSPopoutPanelManager.DomainModel.Profile;
|
|
|
|
|
using MSFSPopoutPanelManager.Orchestration;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace MSFSPopoutPanelManager.MainApp.ViewModel
|
|
|
|
|
{
|
|
|
|
|
public class PanelCoorOverlayViewModel : BaseViewModel
|
|
|
|
|
{
|
2024-02-28 02:44:21 +00:00
|
|
|
|
public PanelCoorOverlayViewModel(SharedStorage sharedStorage) : base(sharedStorage)
|
2023-07-12 22:41:31 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-28 02:44:21 +00:00
|
|
|
|
public PanelConfig Panel { get; private set; }
|
2023-07-12 22:41:31 +00:00
|
|
|
|
|
|
|
|
|
public void SetPanelId(Guid id)
|
|
|
|
|
{
|
2024-02-28 02:44:21 +00:00
|
|
|
|
Panel = ActiveProfile.PanelConfigs.FirstOrDefault(p => p.Id == id);
|
2023-07-12 22:41:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|