DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,44 @@
#if FRAMEWORK20
using System;
namespace DevComponents.DotNetBar.Schedule
{
public class DayView : WeekDayView
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="calendarView"></param>
public DayView(CalendarView calendarView)
: base(calendarView, eCalendarView.Day)
{
}
#region RecalcSize support
/// <summary>
/// Normalizes the user specified start and end dates
/// </summary>
/// <param name="startDate">[out] Normalized start date</param>
/// <param name="endDate">[out] Normalized end date</param>
protected override void NormalizeDates(out DateTime startDate, out DateTime endDate)
{
startDate = this.StartDate;
// If both values are unset, then set them to
// today's date
if (startDate == DateTime.MinValue)
startDate = DateTime.Today.Date;
endDate = startDate;
DaysOfTheWeek = new DaysOfTheWeek(startDate.DayOfWeek, 1);
}
#endregion
}
}
#endif