Beispiel #1
0
 internal void _daypicker_onDaySelected(object sender, DaySelectedEventArgs e)
 {
     if (checkLeaveEditor())
     {
         LoadReport(e.SelectedDate);
     }
 }
 internal void _daypicker_DaySelected(object sender, DaySelectedEventArgs e)
 {
     //Prüfen ob der aktuelle Text geändert wurde
     if (checkLeaveEditor())
     {
         gpEdit.Enabled = true;
         if (e.SelectedDate < DateTime.Parse(DataManager.LoadBaseData()["ende"]) && int.Parse(_actWeekReport.YearWeekNumber) != DateTimeTools.GetWeekOfYear(e.SelectedDate))
         {
             _actWeekReport = DataManager.GetReportOfWeek(DateTimeTools.GetActAppWeek(DateTime.Parse(DataManager.LoadBaseData()["beginn"]), e.SelectedDate));
             if (_actWeekReport == null)
             {
                 _actWeekReport = new Report(null, DateTimeTools.GetActAppWeek(DateTime.Parse(_baseData["beginn"]), e.SelectedDate).ToString(), DateTimeTools.GetWeekOfYear(e.SelectedDate).ToString(), e.SelectedDate.Year.ToString(), "", "", "", "0");
             }
             fillReport();
             cbxDelivered.Checked = _actWeekReport.Delivered == "1" ? true : false;
         }
         _changed = false;
     }
 }
 private void daypicker_daychanged(object sender, DaySelectedEventArgs e)
 {
     fillGUI(e.SelectedDate);
 }