1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-24 23:00:12 +00:00
msfs-popout-panel-manager/MainApp/ViewModel/PanelCoorOverlayViewModel.cs

22 lines
580 B
C#
Raw Normal View History

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
{
public PanelCoorOverlayViewModel(MainOrchestrator orchestrator) : base(orchestrator)
{
}
public PanelConfig? Panel { get; private set; }
public void SetPanelId(Guid id)
{
Panel = ProfileData.ActiveProfile.PanelConfigs.FirstOrDefault(p => p.Id == id);
}
}
}