From 39791de9823d9901b93351d73c1894830c1bf824 Mon Sep 17 00:00:00 2001 From: Andreas Date: Mon, 15 Sep 2025 06:36:25 +0200 Subject: [PATCH] Added common code for `ExcelExporter` This commit will add common code for `ExcelExporter`. Fixed #239 --- .../Models/Excel/ExcelCoordinate.cs | 22 +++++++++++++++++++ src/SharedNetCoreLibrary/Usings.cs | 1 + 2 files changed, 23 insertions(+) create mode 100644 src/SharedNetCoreLibrary/Models/Excel/ExcelCoordinate.cs create mode 100644 src/SharedNetCoreLibrary/Usings.cs diff --git a/src/SharedNetCoreLibrary/Models/Excel/ExcelCoordinate.cs b/src/SharedNetCoreLibrary/Models/Excel/ExcelCoordinate.cs new file mode 100644 index 0000000..2680bed --- /dev/null +++ b/src/SharedNetCoreLibrary/Models/Excel/ExcelCoordinate.cs @@ -0,0 +1,22 @@ +namespace AndreasReitberger.Shared.Core.Models.Excel +{ + public partial class ExcelCoordinate : ObservableObject + { + #region Properties + [ObservableProperty] + public partial string Column { get; set; } = "A"; + + [ObservableProperty] + public partial int Row { get; set; } = 0; + #endregion + + #region Constructor + public ExcelCoordinate() { } + #endregion + + #region Overrides + public override string ToString() => $"{Column}:{Row}"; + + #endregion + } +} diff --git a/src/SharedNetCoreLibrary/Usings.cs b/src/SharedNetCoreLibrary/Usings.cs new file mode 100644 index 0000000..db20a4f --- /dev/null +++ b/src/SharedNetCoreLibrary/Usings.cs @@ -0,0 +1 @@ +global using CommunityToolkit.Mvvm.ComponentModel;