1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 15:20:10 +00:00
msfs-popout-panel-manager/Shared/UserProfileData.cs

69 lines
1.5 KiB
C#
Raw Normal View History

2021-12-14 05:40:07 +00:00
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MSFSPopoutPanelManager.Shared
{
public class UserProfileData
{
public UserProfileData()
{
PanelSourceCoordinates = new List<PanelSourceCoordinate>();
PanelConfigs = new List<PanelConfig>();
2022-01-18 14:58:11 +00:00
IsLocked = false;
2021-12-14 05:40:07 +00:00
}
public int ProfileId { get; set; }
public string ProfileName { get; set; }
public bool IsDefaultProfile { get; set; }
2022-01-18 14:58:11 +00:00
public bool IsLocked { get; set; }
2021-12-14 05:40:07 +00:00
public List<PanelSourceCoordinate> PanelSourceCoordinates;
public List<PanelConfig> PanelConfigs { get; set; }
2022-01-18 14:58:11 +00:00
public void Reset()
{
PanelSourceCoordinates.Clear();
PanelConfigs.Clear();
IsLocked = false;
}
2021-12-14 05:40:07 +00:00
}
public class PanelSourceCoordinate
{
public int PanelIndex { get; set; }
public int X { get; set; }
public int Y { get; set; }
}
public class PanelConfig
{
public int PanelIndex { get; set; }
public string PanelName { get; set; }
public PanelType PanelType { get; set; }
public int Top { get; set; }
public int Left { get; set; }
public int Width { get; set; }
public int Height { get; set; }
public bool AlwaysOnTop { get; set; }
public bool HideTitlebar { get; set; }
[JsonIgnore]
public IntPtr PanelHandle { get; set; }
}
}