mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-21 21:30:12 +00:00
35 lines
779 B
C#
35 lines
779 B
C#
using MSFSPopoutPanelManager.Shared;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace MSFSPopoutPanelManager.DomainModel.Profile
|
|
{
|
|
public class MsfsGameWindowConfig : ObservableObject
|
|
{
|
|
public MsfsGameWindowConfig()
|
|
{
|
|
Top = 0;
|
|
Left = 0;
|
|
Width = 0;
|
|
Height = 0;
|
|
}
|
|
|
|
public MsfsGameWindowConfig(int left, int top, int width, int height)
|
|
{
|
|
Top = top;
|
|
Left = left;
|
|
Width = width;
|
|
Height = height;
|
|
}
|
|
|
|
public int Top { get; set; }
|
|
|
|
public int Left { get; set; }
|
|
|
|
public int Width { get; set; }
|
|
|
|
public int Height { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public bool IsValid => Width != 0 && Height != 0;
|
|
}
|
|
}
|