[#41] MemberAdminWindow: Add feature to transfer area commitments from predecessor

This commit is contained in:
2024-03-19 18:27:19 +01:00
parent a9bad4dd3f
commit 1b822a88f3
2 changed files with 56 additions and 4 deletions

View File

@ -30,6 +30,7 @@ namespace Elwig.Helpers {
public static int CurrentYear => DateTime.Now.Year;
public static int CurrentNextSeason => DateTime.Now.Year - (DateTime.Now.Month <= 3 ? 1 : 0);
public static int CurrentLastSeason => DateTime.Now.Year - (DateTime.Now.Month <= 7 ? 1 : 0);
public static int FollowingSeason => DateTime.Now.Year + (DateTime.Now.Month >= 11 ? 1 : 0);
public static DateTime Today => (DateTime.Now.Hour >= 3) ? DateTime.Today : DateTime.Today.AddDays(-1);
[GeneratedRegex("^serial://([A-Za-z0-9]+):([0-9]+)(,([5-9]),([NOEMSnoems]),(0|1|1\\.5|2|))?$", RegexOptions.Compiled)]