mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:46:30 +00:00
16 lines
463 B
C#
16 lines
463 B
C#
using System.Windows;
|
|
using Azaion.Annotator.DTO;
|
|
using Azaion.Common.DTO.Config;
|
|
|
|
namespace Azaion.Annotator.Extensions;
|
|
|
|
public static class WindowExtensions
|
|
{
|
|
public static WindowConfig GetConfig(this Window window) =>
|
|
new()
|
|
{
|
|
WindowSize = new Size(window.Width, window.Height),
|
|
WindowLocation = new Point(window.Left, window.Top),
|
|
FullScreen = window.WindowState == WindowState.Maximized
|
|
};
|
|
} |