49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
namespace GPW.CORE.Comp
|
|
{
|
|
public partial class CalWeekColumn
|
|
{
|
|
/// <summary>
|
|
/// Modalità di disegno
|
|
/// </summary>
|
|
[Parameter]
|
|
public ColType ItemMode { get; set; } = ColType.dataContainer;
|
|
|
|
/// <summary>
|
|
/// Dimensioni viewbox
|
|
/// </summary>
|
|
[Parameter]
|
|
public Size vBox { get; set; } = new Size(100, 100);
|
|
|
|
/// <summary>
|
|
/// Lista etichette da mostrare (richiede tipo label...)
|
|
/// </summary>
|
|
[Parameter]
|
|
public List<CalendarEvent> EventList { get; set; } = new List<CalendarEvent>();
|
|
|
|
|
|
|
|
public enum ColType
|
|
{
|
|
/// <summary>
|
|
/// Tipo etichetta Start (SX)
|
|
/// </summary>
|
|
labelStart,
|
|
/// <summary>
|
|
/// Tipo etichetta End (DX)
|
|
/// </summary>
|
|
labelEnd,
|
|
/// <summary>
|
|
/// Colonna dati
|
|
/// </summary>
|
|
dataContainer
|
|
}
|
|
}
|
|
} |