private void BtnGO_Click(object sender, EventArgs e) { if (int.TryParse(txtYear.Text, out int year)) { SupportedCalendar calendar = rdoHijri.Checked ? SupportedCalendar.HIJRI : SupportedCalendar.GREGORIAN; this.listViewControl1.LoadData("", Controller.GetYearDates(year, calendar), "Id", "GregorianDate", "HijriYear", "HijriMonth", "HijriDay"); } }
private void BtnDelete_Click(object sender, EventArgs e) { if (int.TryParse(txtYear.Text, out int y)) { SupportedCalendar calendar = rdoHijri.Checked ? SupportedCalendar.HIJRI : SupportedCalendar.GREGORIAN; Controller.Delete(y, calendar); listViewControl1.Items.Clear(); } }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="JE"/>. /// </summary> public JE() { Code = "JE"; Alpha3Code = "JEY"; Names = NamesBuilder.Make.Add(Langue.EN, "Jersey").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.EN); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(May), Names = NamesBuilder.Make.Add(Langue.EN, "Early May Bank Holiday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The9th), Names = NamesBuilder.Make.Add(Langue.EN, "Liberation Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).Before(June), Names = NamesBuilder.Make.Add(Langue.EN, "Spring Bank Holiday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).Before(September), Names = NamesBuilder.Make.Add(Langue.EN, "Summer Bank Holiday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.EN, "Boxing Day").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="AE"/>. /// </summary> public AE() { Code = "AE"; Alpha3Code = "ARE"; Names = NamesBuilder.Make.Add(Langue.EN, "United Arab Emirates").Add(Langue.AR, "دولة الإمارات العربية المتحدة").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.AR }; SupportedCalendar.AddRange(Gregorian, Hijri); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.AR, "رأس السنة الميلادية").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The2nd), Names = NamesBuilder.Make.Add(Langue.AR, "اليوم الوطني").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.Muharram.The1st).Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "رأس السنة الهجرية").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.Shawwal.The1st).StartAtMidnight.Duration.P3D().Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "عيد الفطر").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.DhuAlHijjah.The10th).StartAtMidnight.Duration.P3D().Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "عيد الأضحى").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.Rajab.The27th).Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "الإسراء والمعراج").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.Ramadan.The1st).Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "اليوم الأول من رمضان").AsDictionary() }, new HijriRule() { Expression = ExpressionTree.Date.Fix(OnM.RabiAlAwwal.The12th).Over.Hijri(), Names = NamesBuilder.Make.Add(Langue.AR, "المولد النبويّ").AsDictionary() } }; }
public IEnumerable <DateConversionModel> GetYearDates(int year, SupportedCalendar calendar) { if (calendar == SupportedCalendar.GREGORIAN) { var data = Read(new DateConversionModel() { GregorianYear = year }, "GregorianYear"); if (data.Count() < 12 || data.Count() > 12) { Delete(year, calendar); foreach (DateConversionModel model in CalculateDatesForGregorianYear(year)) { Save(model); } data = Read(new DateConversionModel() { GregorianYear = year }, "GregorianYear"); } return(data); } else if (calendar == SupportedCalendar.HIJRI) { var data = Read(new DateConversionModel() { HijriYear = year }, "HijriYear"); if (data.Count() < 11 || data.Count() > 12) { Delete(year, calendar); foreach (DateConversionModel model in CalculateDatesForHijriYear(year)) { Save(model); } data = Read(new DateConversionModel() { HijriYear = year }, "HijriYear"); } return(data); } return(null); }
public int Delete(int y, SupportedCalendar calendar) { int r = 0; if (calendar == SupportedCalendar.HIJRI) { r += Delete(new DateConversionModel() { HijriYear = y }, new string[] { "HijriYear" }); } else if (calendar == SupportedCalendar.GREGORIAN) { for (int m = 1; m <= 12; m++) { r += Delete(new DateConversionModel() { GregorianDate = new DateTime(y, m, 1) }, new string[] { "GregorianDate" }); } } return(r); }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="FR"/>. /// </summary> public FR() { Code = "FR"; Alpha3Code = "FRA"; Names = NamesBuilder.Make.Add(Langue.EN, "France").Add(Langue.FR, "France").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.FR); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.FR, "Jour de l'an").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.FR, "Lundi de pâques").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.FR, "Fête du travail").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The8th), Names = NamesBuilder.Make.Add(Langue.FR, "Fête de la Victoire 1945").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AscensionDay, Names = NamesBuilder.Make.Add(Langue.FR, "Ascension").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make.Add(Langue.FR, "Pentecôte").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.WhitMonday, Names = NamesBuilder.Make.Add(Langue.FR, "Lundi de Pentecôte").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Sunday).Before(June), Names = NamesBuilder.Make.Add(Langue.FR, "Fête des mères").AsDictionary(), Type = Observance, }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.July.The14th), Names = NamesBuilder.Make.Add(Langue.FR, "Fête nationale").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.FR, "Assomption").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.FR, "Toussaint").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The11th), Names = NamesBuilder.Make.Add(Langue.FR, "Armistice 1918").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.FR, "Noël").AsDictionary() } }; States = new ListState() { Parent = this, Langues = Langues, Container = { new FR_67(), new FR_68(), new FR_57(), new FR_YT(), new FR_MQ(), new FR_GP(), new FR_GF(), new FR_RE() } }.Initialize(x => x.Init()); }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="HR"/>. /// </summary> public HR() { Code = "HR"; Alpha3Code = "HRV"; Names = NamesBuilder.Make.Add(Langue.EN, "Croatia").Add(Langue.HR, "Hrvatska").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.HR); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.HR, "Nova godina").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.HR, "Bogojavljenje, Sveta tri kralja").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CarnivalTuesday, Names = NamesBuilder.Make.Add(Langue.HR, "Pokladni utorak").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.HR, "Uskrs").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.HR, "Drugi dan Uskrsa").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.HR, "Tijelovo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.HR, "Praznik rada").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.HR, "Majčin dan").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The22nd), Names = NamesBuilder.Make.Add(Langue.HR, "Dan antifašističke borbe").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The25th), Names = NamesBuilder.Make.Add(Langue.HR, "Dan državnosti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The5th), Names = NamesBuilder.Make.Add(Langue.HR, "Dan pobjede i domovinske zahvalnosti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.HR, "Velika Gospa").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.October.The8th), Names = NamesBuilder.Make.Add(Langue.HR, "Dan neovisnosti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.HR, "Svi sveti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.HR, "Božić").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.HR, "Svetog Stjepana").AsDictionary() } }; States = new ListState() { Parent = this, Langues = Langues, Container = { new HR_17(), new HR_19() } }.Initialize(x => x.Init()); }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="RO"/>. /// </summary> public RO() { Code = "RO"; Alpha3Code = "ROU"; Names = NamesBuilder.Make.Add(Langue.EN, "Romania").Add(Langue.RO, "Romania").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.RO); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.RO, "Anul nou").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The8th), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua Mamei").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.Easter, Names = NamesBuilder.Make.Add(Langue.RO, "Paștele").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.EasterMonday, Names = NamesBuilder.Make.Add(Langue.RO, "Două zi de Pasti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua muncii").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.AscensionDay, Names = NamesBuilder.Make.Add(Langue.RO, "Ziua Eroilor").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.Pentecost, Names = NamesBuilder.Make.Add(Langue.RO, "Rusaliile").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.WhitMonday, Names = NamesBuilder.Make.Add(Langue.RO, "Două zi de Rusalii").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua Mamei").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The1st), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua Copilului").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The26th), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua drapelului national").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.July.The29th), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua Imnului național").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.RO, "Adormirea Maicii Domnului").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The30th), Names = NamesBuilder.Make.Add(Langue.RO, "Sfântul Andrei").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The1st), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua națională, Ziua Marii Uniri").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The8th), Names = NamesBuilder.Make.Add(Langue.RO, "Ziua Constituției").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.RO, "Crăciunul").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.RO, "Două zi de Crăciun").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="HU"/>. /// </summary> public HU() { Code = "HU"; Alpha3Code = "HUN"; Names = NamesBuilder.Make.Add(Langue.EN, "Hungary").Add(Langue.HU, "Magyarország").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.HU); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.HU, "Újév").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The1st), Names = NamesBuilder.Make.Add(Langue.HU, "A köztársaság emléknapja").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The25th), Names = NamesBuilder.Make.Add(Langue.HU, "A kommunista diktatúrák áldozatainak emléknapja").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The8th), Names = NamesBuilder.Make.Add(Langue.HU, "Nemzetközi nőnap").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The15th), Names = NamesBuilder.Make.Add(Langue.HU, "Nemzeti ünnep").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The16th), Names = NamesBuilder.Make.Add(Langue.HU, "A holokauszt áldozatainak emléknapja").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday.StartAtMidnight.UntilMidnight.Every(1).Year.Since(2017), Names = NamesBuilder.Make.Add(Langue.HU, "Nagypéntek").AsDictionary(), }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.HU, "Húsvétvasárnap").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.HU, "Húsvéthétfő").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.HU, "A munka ünnepe").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.HU, "Anyák napja").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The21st), Names = NamesBuilder.Make.Add(Langue.HU, "Honvédelmi nap").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make.Add(Langue.HU, "Pünkösdvasárnap").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.WhitMonday, Names = NamesBuilder.Make.Add(Langue.HU, "Pünkösdhétfő").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The4th), Names = NamesBuilder.Make.Add(Langue.HU, "A nemzeti összetartozás napja").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The19th), Names = NamesBuilder.Make.Add(Langue.HU, "A független Magyarország napja").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The20th), Names = NamesBuilder.Make.Add(Langue.HU, "Szent István ünnepe").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.October.The6th), Names = NamesBuilder.Make.Add(Langue.HU, "Az aradi vértanúk emléknapja").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.October.The23rd), Names = NamesBuilder.Make.Add(Langue.HU, "Nemzeti ünnep").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.HU, "Mindenszentek").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The6th), Names = NamesBuilder.Make.Add(Langue.HU, "Mikulás, Télapó").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.HU, "Karácsony").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.HU, "Karácsony másnapja").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The31st), Names = NamesBuilder.Make.Add(Langue.HU, "Szilveszter").AsDictionary(), Type = Observance } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="AW"/>. /// </summary> public AW() { Code = "AW"; Alpha3Code = "ABW"; Names = NamesBuilder.Make.Add(Langue.EN, "Aruba").Add(Langue.NL, "Aruba").Add(Langue.PAP, "Aruba").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.NL, Langue.PAP }; SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.NL, "Nieuwjaar") .Add(Langue.PAP, "Aña Nobo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The25th), Names = NamesBuilder.Make.Add(Langue.NL, "Herdenking G. F. Croes") .Add(Langue.PAP, "Dia di Betico").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CarnivalMonday, Names = NamesBuilder.Make.Add(Langue.NL, "Carnavalmaandag") .Add(Langue.PAP, "Dialuna di Carnaval").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Observe.Fix(On.March.The18th).If(Saturday).Then.Previous(Friday).Or.If(Sunday).Then.Next(Monday), Names = NamesBuilder.Make.Add(Langue.NL, "Herdenking Vlag en Volkslied") .Add(Langue.PAP, "Dia di Himno y Bandera").AsDictionary(), Substitute = true }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.NL, "Goede Vrijdag") .Add(Langue.PAP, "Diabierna Santo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.NL, "Pasen") .Add(Langue.PAP, "Dia Pasco di Resureccion").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.NL, "Paasmaandag") .Add(Langue.PAP, "Di dos Dia Pasco di Resureccion").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The27th), Names = NamesBuilder.Make.Add(Langue.NL, "Koningsdag") .Add(Langue.PAP, "Aña di Rey").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Move.Fix(On.May.The1st).If(Sunday).Then.Next(Monday), Names = NamesBuilder.Make.Add(Langue.NL, "Dag van de Arbeid") .Add(Langue.PAP, "Dia di Obrero").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The24th), Names = NamesBuilder.Make.Add(Langue.NL, "Dera Gai") .Add(Langue.PAP, "Dera Gai").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AscensionDay, Names = NamesBuilder.Make.Add(Langue.NL, "O.L.H. Hemelvaart") .Add(Langue.PAP, "Dia di Asuncion").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The5th), Names = NamesBuilder.Make.Add(Langue.NL, "Sinterklaasavond").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.NL, "Kerstmis") .Add(Langue.PAP, "Dia Pasco di Nascimento").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.NL, "Tweede kerstdag") .Add(Langue.PAP, "Di dos Dia Pasco di Nascimento").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="SE"/>. /// </summary> public SE() { Code = "SE"; Alpha3Code = "SWE"; Names = NamesBuilder.Make.Add(Langue.EN, "Sweden").Add(Langue.SV, "Sverige").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.SV); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.SV, "Nyårsdagen").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.SV, "Trettondedag jul").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.SV, "Långfredagen").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.SV, "Annandag påsk").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.SV, "Första Maj").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AscensionDay, Names = NamesBuilder.Make.Add(Langue.SV, "Kristi himmelfärds dag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Sunday).Before(June), Names = NamesBuilder.Make.Add(Langue.SV, "Mors dag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The6th), Names = NamesBuilder.Make.Add(Langue.SV, "Sveriges nationaldag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Saturday).After("06-20"), Names = NamesBuilder.Make.Add(Langue.SV, "Midsommar").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Saturday).After("10-31"), Names = NamesBuilder.Make.Add(Langue.SV, "Alla Helgons dag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.SV, "Juldagen").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.SV, "Annandag jul").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The13th), Names = NamesBuilder.Make.Add(Langue.SV, "Knut").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Sunday).In(March), Names = NamesBuilder.Make.Add(Langue.SV, "Vasaloppet").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The25th), Names = NamesBuilder.Make.Add(Langue.SV, "Marie Bebådelsedag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The30th), Names = NamesBuilder.Make.Add(Langue.SV, "Valborgsmässoafton").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.SV, "Påsk").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make.Add(Langue.SV, "Pingst").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The6th), Names = NamesBuilder.Make.Add(Langue.SV, "Gustav-Adolf-dagen").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The11th), Names = NamesBuilder.Make.Add(Langue.SV, "Mårtensgås").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The10th), Names = NamesBuilder.Make.Add(Langue.SV, "Nobeldagen").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The13th), Names = NamesBuilder.Make.Add(Langue.SV, "Luciadagen").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The24th), Names = NamesBuilder.Make.Add(Langue.SV, "Julafton").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The31st), Names = NamesBuilder.Make.Add(Langue.SV, "Nyårsafton").AsDictionary(), Type = Observance } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="AO"/>. /// </summary> public AO() { Code = "AO"; Alpha3Code = "AGO"; Names = NamesBuilder.Make.Add(Langue.EN, "Angola").Add(Langue.PT, "Angola").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.PT }; SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.PT, "Ano Novo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The4th), Names = NamesBuilder.Make.Add(Langue.PT, "Dia do Início da Luta Armada de Libertação Nacional").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CarnivalTuesday, Names = NamesBuilder.Make.Add(Langue.PT, "Carnaval").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The8th), Names = NamesBuilder.Make.Add(Langue.PT, "Dia Internacional da Mulher").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.PT, "Sexta-Feira Santa").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.PT, "Páscoa").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The4th), Names = NamesBuilder.Make.Add(Langue.PT, "Dia da Paz").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.PT, "Dia do trabalhador").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.PT, "Dia das Mães").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.September.The17th), Names = NamesBuilder.Make.Add(Langue.PT, "Fundador da Nação e Dia dos Heróis Nacionais").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The2nd), Names = NamesBuilder.Make.Add(Langue.PT, "Dia de Finados").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The11th), Names = NamesBuilder.Make.Add(Langue.PT, "Dia da Independência").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.PT, "Natal").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="IE"/>. /// </summary> public IE() { Code = "IE"; Alpha3Code = "IRL"; Names = NamesBuilder.Make.Add(Langue.EN, "Ireland").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.EN); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The17th), Names = NamesBuilder.Make.Add(Langue.EN, "St. Patrick’s Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER -21"), Names = NamesBuilder.Make.Add(Langue.EN, "Mothers Day").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Sunday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(May), Names = NamesBuilder.Make.Add(Langue.EN, "May Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(June), Names = NamesBuilder.Make.Add(Langue.EN, "First Monday in June").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(August), Names = NamesBuilder.Make.Add(Langue.EN, "First Monday in August").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).Before("10-31"), Names = NamesBuilder.Make.Add(Langue.EN, "October Bank Holiday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.EN, "St. Stephen's Day").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="AT"/>. /// </summary> public AT() { Code = "AT"; Alpha3Code = "AUT"; Names = NamesBuilder.Make.Add(Langue.EN, "Austria").Add(Langue.DE_AT, "Österreich").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.DE_AT, Langue.DE }; SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.DE, "Neujahr").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.DE, "Heilige Drei Könige").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.DE, "Karfreitag").AsDictionary(), Type = Optional }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.HolySaturday, Names = NamesBuilder.Make.Add(Langue.DE, "Karsamstag").Add(Langue.DE_AT, "").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.DE, "Ostersonntag").Add(Langue.DE_AT, "").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.DE, "Ostermontag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.DE_AT, "Staatsfeiertag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.DE, "Muttertag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AscensionDay, Names = NamesBuilder.Make.Add(Langue.DE, "Christi Himmelfahrt").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make.Add(Langue.DE, "Pfingstsonntag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.WhitMonday, Names = NamesBuilder.Make.Add(Langue.DE, "Pfingstmontag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.DE, "Fronleichnam").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.DE, "Mariä Himmelfahrt").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.October.The26th), Names = NamesBuilder.Make.Add(Langue.DE, "Nationalfeiertag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.DE, "Allerheiligen").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The8th), Names = NamesBuilder.Make.Add(Langue.DE, "Mariä Empfängnis").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The24th).StartAt2PM.UntilMidnight.If(Sunday).ThenStartAtMidnight, Names = NamesBuilder.Make.Add(Langue.DE, "Heiliger Abend").AsDictionary(), Type = Bank }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make .Add(Langue.DE, "Weihnachten") .Add(Langue.DE_AT, "Christtag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make .Add(Langue.DE, "Weihnachtstag") .Add(Langue.DE_AT, "Stefanitag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The31st).StartAt2PM.UntilMidnight.If(Sunday).ThenStartAtMidnight, Names = NamesBuilder.Make.Add(Langue.DE, "Silvester").AsDictionary(), Type = Bank } }; States = new ListState() { Parent = this, Langues = Langues, Container = { new AT_1(), new AT_2(), new AT_3(), new AT_4(), new AT_5(), new AT_6(), new AT_7(), new AT_8(), new AT_9() } }.Initialize(x => x.Init()); }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="BE"/>. /// </summary> public BE() { Code = "BE"; Alpha3Code = "BEL"; Names = NamesBuilder.Make.Add(Langue.FR, "Belgique").Add(Langue.NL, "België").Add(Langue.DE, "Belgien").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.FR, Langue.NL, Langue.DE }; SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make .Add(Langue.FR, "Nouvel An") .Add(Langue.NL, "Nieuwjaar") .Add(Langue.DE, "Neujahr").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make .Add(Langue.FR, "l'Épiphanie") .Add(Langue.NL, "Driekoningen") .Add(Langue.DE, "Erscheinung des Herrn").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The14th), Names = NamesBuilder.Make .Add(Langue.FR, "Saint-Valentin") .Add(Langue.NL, "Valentijnsdag") .Add(Langue.DE, "Valentinstag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make .Add(Langue.FR, "Pâques") .Add(Langue.NL, "Pasen") .Add(Langue.DE, "Ostersonntag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make .Add(Langue.FR, "Lundi de Pâques") .Add(Langue.NL, "Paasmaandag") .Add(Langue.DE, "Ostermontag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make .Add(Langue.FR, "Fête du travail") .Add(Langue.NL, "Dag van de Arbeid") .Add(Langue.DE, "Tag der Arbeit").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May), Names = NamesBuilder.Make .Add(Langue.FR, "Fête des Mères") .Add(Langue.NL, "Moederdag") .Add(Langue.DE, "Muttertag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AscensionDay, Names = NamesBuilder.Make .Add(Langue.FR, "Ascension") .Add(Langue.NL, "O.L.H. Hemelvaart") .Add(Langue.DE, "Christi Himmelfahrt").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make .Add(Langue.FR, "Pentecôte") .Add(Langue.NL, "Pinksteren") .Add(Langue.DE, "Pfingstsonntag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.WhitMonday, Names = NamesBuilder.Make .Add(Langue.FR, "Lundi de Pentecôte") .Add(Langue.NL, "Pinkstermaandag") .Add(Langue.DE, "Pfingstmontag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.July.The21st), Names = NamesBuilder.Make .Add(Langue.FR, "Fête nationale") .Add(Langue.NL, "Nationale feestdag") .Add(Langue.DE, "Nationalfeiertag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make .Add(Langue.FR, "Assomption") .Add(Langue.NL, "O.L.V. Hemelvaart") .Add(Langue.DE, "Mariä Himmelfahrt").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make .Add(Langue.FR, "Toussaint") .Add(Langue.NL, "Allerheiligen") .Add(Langue.DE, "Allerheiligen").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The2nd), Names = NamesBuilder.Make .Add(Langue.FR, "Fête des morts") .Add(Langue.NL, "Allerzielen") .Add(Langue.DE, "Allerseelen").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The11th), Names = NamesBuilder.Make .Add(Langue.FR, "Armistice") .Add(Langue.NL, "Wapenstilstand") .Add(Langue.DE, "Waffenstillstand").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The15th), Names = NamesBuilder.Make .Add(Langue.FR, "Fête du Roi") .Add(Langue.NL, "Koningsdag") .Add(Langue.DE, "Festtag des Königs").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The6th), Names = NamesBuilder.Make .Add(Langue.FR, "Saint-Nicolas") .Add(Langue.NL, "Sinterklaas") .Add(Langue.DE, "Sankt Nikolaus").AsDictionary(), Type = Observance, }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make .Add(Langue.FR, "Noël") .Add(Langue.NL, "Kerstmis") .Add(Langue.DE, "Weihnachten").AsDictionary() } }; States = new ListState() { Parent = this, Langues = Langues, Container = { new BE_BRU(), new BE_DE(), new BE_VLG(), new BE_WAL() } }.Initialize(x => x.Init()); }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="AG"/>. /// </summary> public AG() { Code = "AG"; Alpha3Code = "ATG"; Names = NamesBuilder.Make.Add(Langue.EN, "Antigua & Barbuda").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.EN); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Observe.Fix(On.January.The1st).If(Sunday).Then.Next(Monday), Names = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary(), Substitute = true }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Sunday").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.EN, "Labour Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make.Add(Langue.EN, "Pentecost").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.WhitMonday, Names = NamesBuilder.Make.Add(Langue.EN, "Whit Monday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The1st), Names = NamesBuilder.Make.Add(Langue.EN, "J'Ouvert Morning").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The2nd), Names = NamesBuilder.Make.Add(Langue.EN, "Last Lap").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Move.Fix(On.November.The11th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday), Names = NamesBuilder.Make.Add(Langue.EN, "Independance Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The9th), Names = NamesBuilder.Make.Add(Langue.EN, "V.C Bird Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Observe.Fix(On.December.The25th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Tuesday), Names = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary(), Substitute = true }, new GregorianRule() { Expression = ExpressionTree.Observe.Fix(On.December.The26th).If(Sunday).Then.Next(Monday), Names = NamesBuilder.Make.Add(Langue.EN, "Boxing Day").AsDictionary(), Substitute = true } }; States = new ListState() { Parent = this, Langues = Langues, Container = { new AG_10() } }.Initialize(x => x.Init()); }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="BY"/>. /// </summary> public BY() { Code = "BY"; Alpha3Code = "BLR"; Names = NamesBuilder.Make.Add(Langue.EN, "Belarus").Add(Langue.BE, "Рэспубліка Беларусь").Add(Langue.RU, "Республика Беларусь").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.BE, Langue.RU }; SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make .Add(Langue.BE, "Новы год") .Add(Langue.RU, "Новый год").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.BE, "Вялiкдзень каталiцкi").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.Easter, Names = NamesBuilder.Make.Add(Langue.BE, "Вялiкдзень праваслаўны").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.CustomDay("EASTER +9"), Names = NamesBuilder.Make.Add(Langue.BE, "Радунiца").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The8th), Names = NamesBuilder.Make .Add(Langue.BE, "Мiжнародны жаночы дзень") .Add(Langue.RU, "Международный женский день").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.BE, "Дзень працы").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The9th), Names = NamesBuilder.Make.Add(Langue.BE, "Дзень Перамогi").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.July.The3rd).Since(1996), Names = NamesBuilder.Make.Add(Langue.BE, "Дзень Незалежнасцi").AsDictionary(), }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.October.The7th), Names = NamesBuilder.Make.Add(Langue.BE, "Дзень Кастрычніцкай рэвалюцыі").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.BE, "Каляды каталiцкiя").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th).Over.Julian(), Names = NamesBuilder.Make.Add(Langue.BE, "Каляды каталiцкiя").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="VA"/>. /// </summary> public VA() { Code = "VA"; Alpha3Code = "VAT"; Names = NamesBuilder.Make.Add(Langue.EN, "Vatican City").Add(Langue.IT, "Stato della Città del Vaticano").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.IT); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.IT, "Maria Santissima Madre di Dio").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.IT, "Epifania del Signore").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The11th), Names = NamesBuilder.Make.Add(Langue.IT, "Anniversario della istituzione dello Stato della Città del Vaticano").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The19th), Names = NamesBuilder.Make.Add(Langue.IT, "San Giuseppe").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.IT, "Lunedì dell’Angelo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AscensionDay.StartAtMidnight.UntilMidnight.Every(1).Year.To(2009), Names = NamesBuilder.Make.Add(Langue.IT, "Ascensione").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi.StartAtMidnight.UntilMidnight.Every(1).Year.To(2009), Names = NamesBuilder.Make.Add(Langue.IT, "Corpus Domini").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.IT, "San Giuseppe lavoratore").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The29th), Names = NamesBuilder.Make.Add(Langue.IT, "Santi Pietro e Paolo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.IT, "Assunzione di Maria in Cielo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.September.The8th), Names = NamesBuilder.Make.Add(Langue.IT, "Festa della natività della madonna").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.IT, "Ognissanti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The8th), Names = NamesBuilder.Make.Add(Langue.IT, "Immacolata Concezione").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.IT, "Natale").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.IT, "Santo Stefano").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.October.The16th).Since(1978).To(2005), Names = NamesBuilder.Make.Add(Langue.IT, "Anniversario dell'Elezione del Santo Padre").AsDictionary(), }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The4th).Since(1978).To(2005), Names = NamesBuilder.Make.Add(Langue.IT, "San Carlo Borromeo - Onomastico del Santo Padre").AsDictionary(), Note = "Name day of Pope John Paul II (Karol Józef Wojtyła)" }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The19th).Since(2005).To(2013), Names = NamesBuilder.Make.Add(Langue.IT, "Anniversario dell'Elezione del Santo Padre").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The13th).Since(2013), Names = NamesBuilder.Make.Add(Langue.IT, "Anniversario dell'Elezione del Santo Padre").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The23rd).Since(2013), Names = NamesBuilder.Make.Add(Langue.IT, "San Giorgio - Onomastico del Santo Padre").AsDictionary(), Note = "Name day of Pope Francis (Jorge Mario Bergoglio)" } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="PL"/>. /// </summary> public PL() { Code = "PL"; Alpha3Code = "POL"; Names = NamesBuilder.Make.Add(Langue.EN, "Poland").Add(Langue.PL, "Polska").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.PL); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.PL, "Nowy Rok").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.PL, "Święto Trzech Króli").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.PL, "Niedziela Wielkanocna").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.PL, "Drugi dzień Wielkanocy").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.PL, "Święto Państwowe; Święto Pracy").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The3rd), Names = NamesBuilder.Make.Add(Langue.PL, "Święto Narodowe Trzeciego Maja").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The26th), Names = NamesBuilder.Make.Add(Langue.PL, "Dzień Matki").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make.Add(Langue.PL, "Zielone Świątki").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.PL, "Dzień Bożego Ciała").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.PL, "Wniebowzięcie Najświętszej Maryi Panny").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.PL, "Wszystkich Świętych").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The11th), Names = NamesBuilder.Make.Add(Langue.PL, "Narodowe Święto Niepodległości").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.PL, "Pierwszy dzień Bożego Narodzenia").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.PL, "Drugi dzień Bożego Narodzenia").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="AM"/>. /// </summary> public AM() { Code = "AM"; Alpha3Code = "ARM"; Names = NamesBuilder.Make.Add(Langue.EN, "Armenia").Add(Langue.HY, "Հայաստան").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.HY }; SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The31st), Names = NamesBuilder.Make.Add(Langue.HY, "Նոր տարվա գիշեր").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st).StartAtMidnight.Duration.P2D(), Names = NamesBuilder.Make.Add(Langue.HY, "Ամանոր").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The3rd).StartAtMidnight.Duration.P3D(), Names = NamesBuilder.Make.Add(Langue.HY, "Նախածննդյան տոներ").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.HY, "Սուրբ Ծնունդ").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The28th), Names = NamesBuilder.Make.Add(Langue.HY, "Բանակի օր").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The21st), Names = NamesBuilder.Make.Add(Langue.HY, "Մայրենի լեզվի օր").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER -52"), Names = NamesBuilder.Make.Add(Langue.HY, "Սուրբ Վարդանանց տոն՝ բարի գործի եւ ազգային տուրքի օր").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The8th), Names = NamesBuilder.Make.Add(Langue.HY, "Կանանց տոն").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The7th), Names = NamesBuilder.Make.Add(Langue.HY, "Մայրության, գեղեցկության եւ սիրո տոն").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The24th), Names = NamesBuilder.Make.Add(Langue.HY, "Ցեղասպանության զոհերի հիշատակի օր").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.HY, "Աշխատանքի օր").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The8th), Names = NamesBuilder.Make.Add(Langue.HY, "Երկրապահի օր").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The9th), Names = NamesBuilder.Make.Add(Langue.HY, "Հաղթանակի եւ Խաղաղության տոն").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The28th), Names = NamesBuilder.Make.Add(Langue.HY, "Հանրապետության օր").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The1st), Names = NamesBuilder.Make.Add(Langue.HY, "Երեխաների իրավունքների պաշտպանության օր").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.July.The5th), Names = NamesBuilder.Make.Add(Langue.HY, "Սահմանադրության օր").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.September.The1st), Names = NamesBuilder.Make.Add(Langue.HY, "Գիտելիքի, գրի եւ դպրության օր").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.September.The21st), Names = NamesBuilder.Make.Add(Langue.HY, "Անկախության օր").AsDictionary(), }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Saturday).In(October), Names = NamesBuilder.Make.Add(Langue.HY, "Թարգմանչաց տոն").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The7th), Names = NamesBuilder.Make.Add(Langue.HY, "Երկրաշարժի զոհերի հիշատակի օր").AsDictionary(), Type = Observance } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="SM"/>. /// </summary> public SM() { Code = "SM"; Alpha3Code = "SMR"; Names = NamesBuilder.Make.Add(Langue.EN, "San Marino").Add(Langue.IT, "San Marino").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.IT); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.IT, "Capodanno").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.IT, "Epifania").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The5th), Names = NamesBuilder.Make.Add(Langue.IT, "Festa di Sant’Agata").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.IT, "Domenica di Pasqua").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.IT, "Lunedì dell’Angelo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The25th), Names = NamesBuilder.Make.Add(Langue.IT, "Anniversario dell'Arengo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.April.The1st), Names = NamesBuilder.Make.Add(Langue.IT, "Cerimonia di investitura dei Capitani Reggenti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.IT, "Festa del Lavoro").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.IT, "Festa della mamma").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.IT, "Corpus Domini").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.July.The28th), Names = NamesBuilder.Make.Add(Langue.IT, "Anniversario della caduta del Fascismo e Festa della Libertà").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.IT, "Ferragosto").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.September.The3rd), Names = NamesBuilder.Make.Add(Langue.IT, "Festa di San Marino e di Fondazione della Repubblica").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.October.The1st), Names = NamesBuilder.Make.Add(Langue.IT, "Cerimonia di investitura dei Capitani Reggenti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.IT, "Tutti i Santi").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The2nd), Names = NamesBuilder.Make.Add(Langue.IT, "Commemorazione dei defunti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The8th), Names = NamesBuilder.Make.Add(Langue.IT, "Immacolata Concezione").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.IT, "Natale").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.IT, "Santo Stefano").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The31st), Names = NamesBuilder.Make.Add(Langue.IT, "Ultimo dell’anno").AsDictionary(), Type = Optional } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="LI"/>. /// </summary> public LI() { Code = "LI"; Alpha3Code = "LIE"; Names = NamesBuilder.Make.Add(Langue.EN, "Lichtenstein").Add(Langue.DE, "Lichtenstein").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.DE); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.DE, "Neujahr").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The2nd), Names = NamesBuilder.Make.Add(Langue.DE, "Berchtoldstag").AsDictionary(), Type = Bank }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.DE, "Heilige Drei Könige").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The2nd), Names = NamesBuilder.Make.Add(Langue.DE, "Lichtmess").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The19th), Names = NamesBuilder.Make.Add(Langue.DE, "Josefstag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CarnivalTuesday, Names = NamesBuilder.Make.Add(Langue.DE, "Faschingsdienstag").AsDictionary(), Type = Bank }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.DE, "Karfreitag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.DE, "Ostersonntag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.DE, "Ostermontag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.DE, "Tag der Arbeit").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.DE, "Muttertag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AscensionDay, Names = NamesBuilder.Make.Add(Langue.DE, "Auffahrt").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER +40"), Names = NamesBuilder.Make.Add(Langue.DE, "Feiertagsbrücke").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make.Add(Langue.DE, "Pfingstsonntag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.WhitMonday, Names = NamesBuilder.Make.Add(Langue.DE, "Pfingstmontag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CorpusChristi, Names = NamesBuilder.Make.Add(Langue.DE, "Fronleichnam").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER +61"), Names = NamesBuilder.Make.Add(Langue.DE, "Feiertagsbrücke").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.DE, "Staatsfeiertag").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.September.The8th), Names = NamesBuilder.Make.Add(Langue.DE, "Mariä Geburt").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The1st), Names = NamesBuilder.Make.Add(Langue.DE, "Allerheiligen").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The8th), Names = NamesBuilder.Make.Add(Langue.DE, "Mariä Empfängnis").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The24th), Names = NamesBuilder.Make.Add(Langue.DE, "Heiliger Abend").AsDictionary(), Type = Bank }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.DE, "Weihnachten").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.DE, "Stephanstag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The31st), Names = NamesBuilder.Make.Add(Langue.DE, "Silvester").AsDictionary(), Type = Bank } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="GL"/>. /// </summary> public GL() { Code = "GL"; Alpha3Code = "GRL"; Names = NamesBuilder.Make.Add(Langue.EN, "Greenland").Add(Langue.KL, "Kalaallit Nunaat").Add(Langue.DA, "Grønland").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.KL, Langue.DA }; SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.KL, "ukiortaaq") .Add(Langue.DA, "Nytår").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.DA, "Åbenbaring").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.MaundyThursday, Names = NamesBuilder.Make.Add(Langue.KL, "sisamanngortoq illernartoq") .Add(Langue.DA, "Skærtorsdag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.KL, "tallimanngornersuaq") .Add(Langue.DA, "Langfredag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.KL, "poorskip-ullua") .Add(Langue.DA, "Påskesøndag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.KL, "poorskip-aappaa") .Add(Langue.DA, "Anden påskedag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER +26"), Names = NamesBuilder.Make.Add(Langue.KL, "tussiarfissuaq") .Add(Langue.DA, "Store Bededag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AscensionDay, Names = NamesBuilder.Make.Add(Langue.KL, "qilaliarfik") .Add(Langue.DA, "Kristi Himmelfartsdag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The21st), Names = NamesBuilder.Make.Add(Langue.KL, "ullortuneq") .Add(Langue.DA, "Nationaldag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make.Add(Langue.KL, "piinsip ullua") .Add(Langue.DA, "Pinsedag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.WhitMonday, Names = NamesBuilder.Make.Add(Langue.KL, "piinsip aappaa") .Add(Langue.DA, "2. Pinsedag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The24th), Names = NamesBuilder.Make.Add(Langue.KL, "juulliaraq") .Add(Langue.DA, "Juleaften").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.KL, "juullerujussuaq") .Add(Langue.DA, "1. Juledag").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.KL, "juullip aappaa") .Add(Langue.DA, "2. Juledag").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="MX"/>. /// </summary> public MX() { Code = "MX"; Alpha3Code = "MEX"; Names = NamesBuilder.Make.Add(Langue.EN, "Mexico").Add(Langue.ES, "México").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.ES); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.ES, "Año Nuevo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(February), Names = NamesBuilder.Make.Add(Langue.ES, "Día de la Constitución (día libre)").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The21st), Names = NamesBuilder.Make.Add(Langue.ES, "Natalicio de Benito Juárez").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Third, Monday).In(March), Names = NamesBuilder.Make.Add(Langue.ES, "Natalicio de Benito Juárez (día libre)").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.ES, "Fiesta del trabajo").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The10th), Names = NamesBuilder.Make.Add(Langue.ES, "Día de la Madre").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.September.The16th), Names = NamesBuilder.Make.Add(Langue.ES, "Día de la Independencia").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The20th), Names = NamesBuilder.Make.Add(Langue.ES, "Día de la Revolución").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Third, Monday).In(November), Names = NamesBuilder.Make.Add(Langue.ES, "Día de la Revolución (día libre)").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The1st).StartAtMidnight.Every(6).Year.Since(1934), Names = NamesBuilder.Make.Add(Langue.ES, "Transmisión del Poder Ejecutivo Federal").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.ES, "Navidad").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="CA"/>. /// </summary> public CA() { Code = "CA"; Alpha3Code = "CAN"; Names = NamesBuilder.Make.Add(Langue.EN, "Canada").Add(Langue.FR, "Canada").AsDictionary(); DaysOff.Add(Sunday); Langues = new List <Langue>() { Langue.EN, Langue.FR }; SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.EN, "New Year's Day") .Add(Langue.FR, "Nouvel An").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.EN, "Good Friday") .Add(Langue.FR, "Vendredi saint").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Sunday") .Add(Langue.FR, "Pâques").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.EN, "Mother's Day") .Add(Langue.FR, "Fête des Mères").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).Before("05-25"), Names = NamesBuilder.Make.Add(Langue.EN, "Victoria Day") .Add(Langue.FR, "Fête de la Reine").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Third, Sunday).In(June), Names = NamesBuilder.Make.Add(Langue.EN, "Father's Day").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.July.The1st), Names = NamesBuilder.Make.Add(Langue.EN, "Canada Day") .Add(Langue.FR, "Fête du Canada").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(August), Names = NamesBuilder.Make.Add(Langue.EN, "Civic Holiday") .Add(Langue.FR, "Premier lundi d’août").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).After("08-31"), Names = NamesBuilder.Make.Add(Langue.EN, "Labour Day") .Add(Langue.FR, "Fête du travail").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Monday).After("10-01"), Names = NamesBuilder.Make.Add(Langue.EN, "Thanksgiving") .Add(Langue.FR, "Action de grâce").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The11th), Names = NamesBuilder.Make.Add(Langue.EN, "Remembrance Day") .Add(Langue.FR, "Jour du Souvenir").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.EN, "Christmas Day") .Add(Langue.FR, "Noël").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.EN, "Boxing Day") .Add(Langue.FR, "Lendemain de Noël").AsDictionary() } }; States = new ListState() { Parent = this, Langues = Langues, Container = { new CA_AB(), new CA_BC(), new CA_MB(), new CA_NB(), new CA_NL(), new CA_NS(), new CA_NT(), new CA_NU(), new CA_ON(), new CA_PE(), new CA_QC(), new CA_SK(), new CA_YT() } }.Initialize(x => x.Init()); }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="IS"/>. /// </summary> public IS() { Code = "IS"; Alpha3Code = "ISL"; Names = NamesBuilder.Make.Add(Langue.EN, "Iceland").Add(Langue.IS, "Ísland").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.IS); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.IS, "Nýársdagur").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.IS, "Þrettándinn").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Friday).After("01-18"), Names = NamesBuilder.Make.Add(Langue.IS, "Bóndadagur").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.February.The18th), Names = NamesBuilder.Make.Add(Langue.IS, "Konudagur").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CarnivalMonday, Names = NamesBuilder.Make.Add(Langue.IS, "Bolludagur").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.CarnivalTuesday, Names = NamesBuilder.Make.Add(Langue.IS, "Sprengidagur").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AshWednesday, Names = NamesBuilder.Make.Add(Langue.IS, "Öskudagur").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.PalmSunday, Names = NamesBuilder.Make.Add(Langue.IS, "Pálmasunnudagur").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.MaundyThursday, Names = NamesBuilder.Make.Add(Langue.IS, "Skírdagur").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.IS, "Föstudagurinn langi").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.IS, "Páskadagur").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.IS, "Annar í páskum").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Thursday).After("04-18"), Names = NamesBuilder.Make.Add(Langue.IS, "Sumardagurinn fyrsti").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.IS, "Hátíðisdagur Verkamanna").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.IS, "Mæðradagurinn").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.AscensionDay, Names = NamesBuilder.Make.Add(Langue.IS, "Uppstigningardagur").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Pentecost, Names = NamesBuilder.Make.Add(Langue.IS, "Hvítasunnudagur").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.WhitMonday, Names = NamesBuilder.Make.Add(Langue.IS, "Annar í hvítasunnu").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Sunday).In(June), Names = NamesBuilder.Make.Add(Langue.IS, "Sjómannadagurinn").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The17th), Names = NamesBuilder.Make.Add(Langue.IS, "Íslenski þjóðhátíðardagurinn").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(August), Names = NamesBuilder.Make.Add(Langue.IS, "Frídagur verslunarmanna").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Saturday).After("10-21"), Names = NamesBuilder.Make.Add(Langue.IS, "Fyrsti vetrardagur").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.November.The16th).Since(1996), Names = NamesBuilder.Make.Add(Langue.IS, "Dagur íslenskrar tungu").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The23rd), Names = NamesBuilder.Make.Add(Langue.IS, "Þorláksmessa").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The24th).StartAt1PM.UntilMidnight.If(Sunday).ThenStartAtMidnight, Names = NamesBuilder.Make.Add(Langue.IS, "Aðfangadagur").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.IS, "Jóladagur").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.IS, "Annar í jólum").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The31st).StartAt1PM.UntilMidnight.If(Sunday).ThenStartAtMidnight, Names = NamesBuilder.Make.Add(Langue.IS, "Gamlársdagur").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="LV"/>. /// </summary> public LV() { Code = "LV"; Alpha3Code = "LVA"; Names = NamesBuilder.Make.Add(Langue.EN, "Latvia").Add(Langue.LV, "Latvija").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.LV); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.LV, "Jaunais Gads").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.LV, "Lielā Piektdiena").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.Easter, Names = NamesBuilder.Make.Add(Langue.LV, "Lieldienas").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.LV, "Otrās Lieldienas").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.LV, "Darba svētki").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Observe.Fix(On.May.The4th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday), Names = NamesBuilder.Make.Add(Langue.LV, "Latvijas Republikas Neatkarības atjaunošanas diena").AsDictionary(), Substitute = true }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.LV, "Mātes diena").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The23rd), Names = NamesBuilder.Make.Add(Langue.LV, "Līgo Diena").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.June.The24th), Names = NamesBuilder.Make.Add(Langue.LV, "Jāņi").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Observe.Fix(On.November.The18th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday), Names = NamesBuilder.Make.Add(Langue.LV, "Latvijas Republikas proklamēšanas diena").AsDictionary(), Substitute = true }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The24th), Names = NamesBuilder.Make.Add(Langue.LV, "Ziemassvētku vakars").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.LV, "Ziemassvētki").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.LV, "Otrie Ziemassvētki").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The31st), Names = NamesBuilder.Make.Add(Langue.LV, "Vecgada vakars").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="GR"/>. /// </summary> public GR() { Code = "GR"; Alpha3Code = "GRC"; Names = NamesBuilder.Make.Add(Langue.EN, "Greece").Add(Langue.EL, "Ελλάδα").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.EL); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.EL, "Πρωτοχρονιά").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The6th), Names = NamesBuilder.Make.Add(Langue.EL, "Θεοφάνεια").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.CarnivalMonday, Names = NamesBuilder.Make.Add(Langue.EL, "Καθαρά Δευτέρα").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.March.The25th), Names = NamesBuilder.Make.Add(Langue.EL, "Ευαγγελισμός, Εθνική Εορτή").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.GoodFriday, Names = NamesBuilder.Make.Add(Langue.EL, "Μεγάλη Παρασκευή").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.Easter, Names = NamesBuilder.Make.Add(Langue.EL, "Πάσχα").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.EasterMonday, Names = NamesBuilder.Make.Add(Langue.EL, "Δευτέρα του Πάσχα").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.May.The1st), Names = NamesBuilder.Make.Add(Langue.EL, "Εργατική Πρωτομαγιά").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Orthodox.Pentecost, Names = NamesBuilder.Make.Add(Langue.EL, "Αγίου Πνεύματος").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May), Names = NamesBuilder.Make.Add(Langue.EL, "Γιορτή της μητέρας").AsDictionary(), Type = Observance }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.August.The15th), Names = NamesBuilder.Make.Add(Langue.EL, "Κοίμηση της Θεοτόκου").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.October.The28th), Names = NamesBuilder.Make.Add(Langue.EL, "Επέτειος του Όχι").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.EL, "Χριστούγεννα").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.EL, "Δεύτερη μέρα των Χριστουγέννων").AsDictionary() } }; }
/// <summary> /// Initialise une nouvelle instance pour la classe <see cref="IM"/>. /// </summary> public IM() { Code = "IM"; Alpha3Code = "IMN"; Names = NamesBuilder.Make.Add(Langue.EN, "Isle of Man").AsDictionary(); DaysOff.Add(Sunday); Langues.Add(Langue.EN); SupportedCalendar.Add(Gregorian); Rules = new ListRule() { new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.January.The1st), Names = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.GoodFriday, Names = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Catholic.EasterMonday, Names = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).In(May), Names = NamesBuilder.Make.Add(Langue.EN, "Labour Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).Before(June), Names = NamesBuilder.Make.Add(Langue.EN, "Spring Bank Holiday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(Second, Friday).In(June), Names = NamesBuilder.Make.Add(Langue.EN, "Tourist Trophy, Senior Race Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.July.The5th), Names = NamesBuilder.Make.Add(Langue.EN, "Tynwald Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Movable(First, Monday).Before(September), Names = NamesBuilder.Make.Add(Langue.EN, "Late Summer Bank Holiday").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The25th), Names = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary() }, new GregorianRule() { Expression = ExpressionTree.Date.Fix(On.December.The26th), Names = NamesBuilder.Make.Add(Langue.EN, "Boxing Day").AsDictionary() } }; }