public class CustomCalendar : INotifyPropertyChanged
{
#region Private variables
private string id;
private string name;
private string baseCalendarId;
private bool isBaseCalendar;
private string daysOfWeek;
private string exceptions;
private string workWeeks;
private string customDescription;
#endregion // Private variables
#region Public properties
public string Id
{
get
{
return id;
}
set
{
if (value != id)
{
id = value;
this.OnPropertyChanged("Id");
}
}
}
public string Name
{
get
{
return name;
}
set
{
if (value != name)
{
name = value;
this.OnPropertyChanged("Name");
}
}
}
public string BaseCalendarId
{
get
{
return baseCalendarId;
}
set
{
if (value != baseCalendarId)
{
baseCalendarId = value;
this.OnPropertyChanged("BaseCalendarId");
}
}
}
public bool IsBaseCalendar
{
get
{
return isBaseCalendar;
}
set
{
if (value != isBaseCalendar)
{
isBaseCalendar = value;
this.OnPropertyChanged("IsBaseCalendar");
}
}
}
public string DaysOfWeek
{
get
{
return daysOfWeek;
}
set
{
if (value != daysOfWeek)
{
daysOfWeek = value;
this.OnPropertyChanged("DaysOfWeek");
}
}
}
public string Exceptions
{
get
{
return exceptions;
}
set
{
if (value != exceptions)
{
exceptions = value;
this.OnPropertyChanged("Exceptions");
}
}
}
public string WorkWeeks
{
get
{
return workWeeks;
}
set
{
if (value != workWeeks)
{
workWeeks = value;
this.OnPropertyChanged("WorkWeeks");
}
}
}
public string CustomDescription
{
get { return customDescription; }
set
{
if (value != customDescription)
{
customDescription = value;
OnPropertyChanged("CustomDescription");
}
}
}
#endregion // Public properties
#region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
#endregion // INotifyPropertyChanged
}