public class CustomProjectTable : INotifyPropertyChanged
{
#region Private variables
private string key;
private string columnIds;
private string dateFormat;
private bool showInMenu;
#endregion // プライベート変数
#region Public properties
public string Key
{
get { return key; }
set
{
if (key != value)
{
key = value;
OnPropertyChanged("Key");
}
}
}
public string ColumnIds
{
get { return columnIds; }
set
{
if (columnIds != value)
{
columnIds = value;
OnPropertyChanged("ColumnIds");
}
}
}
public string DateFormat
{
get { return dateFormat; }
set
{
if (dateFormat != value)
{
dateFormat = value;
OnPropertyChanged("DateFormat");
}
}
}
public bool ShowInMenu
{
get { return showInMenu; }
set
{
if (showInMenu != value)
{
showInMenu = value;
OnPropertyChanged("ShowInMenu");
}
}
}
#endregion // パブリック プロパティ
#region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
#endregion // INotifyPropertyChanged
}