Пример #1
0
 /// <summary>
 /// コンストラクター。
 /// </summary>
 internal HolidayChecker_ja_JP()
 {
     PropertyChanged += (object sender, PropertyChangedEventArgs e) =>
     {
         HolidaySettingChanged?.Invoke(sender, new HolidaySettingChangedEventArgs(e.PropertyName, e));
     };
 }
Пример #2
0
 /// <summary>
 /// コンストラクター。
 /// </summary>
 public CustomHoliday()
 {
     PropertyChanged += (object sender, PropertyChangedEventArgs e) =>
     {
         HolidaySettingChanged?.Invoke(sender, new HolidaySettingChangedEventArgs(e.PropertyName, e));
     };
 }
Пример #3
0
 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;
         }
     }
 }