Files
radzen-blazor/Radzen.Blazor/SchedulerSlotSelectEventArgs.cs

40 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using Radzen.Blazor;
namespace Radzen
{
/// <summary>
/// Supplies information about a <see cref="RadzenScheduler{TItem}.SlotSelect" /> event that is being raised.
/// </summary>
public class SchedulerSlotSelectEventArgs
{
/// <summary>
/// The start of the slot.
/// </summary>
public DateTime Start { get; set; }
/// <summary>
/// The end of the slot.
/// </summary>
public DateTime End { get; set; }
/// <summary>
/// List of appointments.
/// </summary>
public IEnumerable<AppointmentData>? Appointments { get; set; }
/// <summary>
/// Current View.
/// </summary>
public ISchedulerView? View { get; set; }
/// <summary>
/// Has default action been prevented from occuring?
/// </summary>
public bool IsDefaultPrevented { get; private set; }
/// <summary>
/// Prevent default action from occuring.
/// </summary>
public void PreventDefault()
{
IsDefaultPrevented = true;
}
}
}