Exemplo n.º 1
0
 private void RestHolidayMenuItem_OnClick(object sender, RoutedEventArgs e)
 {
     var holiday = HolidayHelper.Instance.HolidayInfo.GetRestHoliday(DateInfo.DateTime);
     var info = new RestHolidayInfo
     {
         Name = holiday == null ? "" : holiday.Name,
         Date = DateInfo.DateTime,
         IsRest = holiday?.RestDay?.Contains(DateInfo.DateTime, new DateTimeComparer()) ?? false
     };
     SetRestHolidayWindow sh = new SetRestHolidayWindow(info);
     sh.ShowDialog();
 }
Exemplo n.º 2
0
        public SetRestHolidayWindow(RestHolidayInfo info)
        {
            InitializeComponent();

            RestHolidayInfo = info;
        }