/// <summary> /// コンストラクター。 /// </summary> internal HolidayChecker_ja_JP() { PropertyChanged += (object sender, PropertyChangedEventArgs e) => { HolidaySettingChanged?.Invoke(sender, new HolidaySettingChangedEventArgs(e.PropertyName, e)); }; }
/// <summary> /// コンストラクター。 /// </summary> public CustomHoliday() { PropertyChanged += (object sender, PropertyChangedEventArgs e) => { HolidaySettingChanged?.Invoke(sender, new HolidaySettingChangedEventArgs(e.PropertyName, e)); }; }
private void HolidayCheckerSetted(object sender, PropertyChangedEventArgs e) { if (sender is DateTimeEventSource dtEvntSrc) { switch (e.PropertyName) { case nameof(HolidayChecker): HolidaySettingChanged?.Invoke(sender, new HolidaySettingChangedEventArgs(nameof(HolidayChecker), e)); break; } } }