29 lines
815 B
C#
29 lines
815 B
C#
using BeWo.Service.Plugins;
|
|
using BS.Shared.DataContracts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
|
|
namespace LebenshilfeCoburg
|
|
{
|
|
public class CustomVacationService : VacationService
|
|
{
|
|
public override string Bundesland { get => "Bayern"; }
|
|
|
|
public override List<FeiertagDC> GetFeiertage(int year, String bundesland)
|
|
{
|
|
var list = base.GetFeiertage(year, bundesland);
|
|
|
|
if (list.Any(f => f.Name == "Mariä Himmelfahrt"))
|
|
list.Remove(list.First(f => f.Name == "Mariä Himmelfahrt"));
|
|
if (year >= 2024)
|
|
{
|
|
list.Add(new FeiertagDC() { Name = "Silvester", Datum = new DateTime(year, 12, 31) });
|
|
}
|
|
|
|
|
|
return list;
|
|
}
|
|
}
|
|
} |