/
jhayphal
/
CitReportDesigner
Обзор
Документация
Войти
/
jhayphal
/
CitReportDesigner
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ControlsSandbox/ControlBounds.cs
25 строк
523 B
Oleg Nazarenko
Рефакторинг - сегрегация интерфесов.
18 мар 2023, 19:28
18 мар 2023, 19:28
fed2e4f
Код
Авторство
О чём код?
namespace ControlsSandbox; public struct ControlBounds : IBounds { public ControlBounds(IBounds bounds) { X = bounds.X; Y = bounds.Y; Width = bounds.Width; Height = bounds.Height; SizeUnit = bounds.SizeUnit; } public double X { get; set; } public double Y { get; set; } public double Width { get; set; } public double Height { get; set; } public ReportSizeUnit SizeUnit { get; set; } public override string ToString() => $"{X:###.#}:{Y:###.#} {Width:###.#}:{Height:###.#}"; }