|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MvcSchedule.Data
{
/// <summary>
/// Wrapper for the actual data.
/// </summary>
internal class ScheduleItemData<TItem>
{
private TItem _dataObject;
public TItem DataObject
{
get { return _dataObject; }
set { _dataObject = value; }
}
private object _startValue;
public object StartValue {
get { return _startValue; }
set { _startValue = value; }
}
private object _endValue;
public object EndValue {
get { return _endValue; }
set { _endValue = value; }
}
private object _titleValue;
public object TitleValue {
get { return _titleValue; }
set { _titleValue = value; }
}
public ScheduleItemData(TItem data, object startValue, object endValue, object titleValue)
{
_dataObject = data;
_startValue = startValue;
_endValue = endValue;
_titleValue = titleValue;
}
public ScheduleItemData(ScheduleItemData<TItem> original)
{
_dataObject = original.DataObject;
_startValue = original.StartValue;
_endValue = original.EndValue;
_titleValue = original.TitleValue;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.