init
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using DTS.Common.Interface.ExportData;
|
||||
using System.ComponentModel;
|
||||
|
||||
|
||||
namespace DataPROWin7.DataModel.Classes.Export
|
||||
{
|
||||
public class ExportHeader : IExportHeader
|
||||
{
|
||||
public ExportHeader()
|
||||
{
|
||||
}
|
||||
public ExportHeader(string headerName)
|
||||
{
|
||||
HeaderName = headerName;
|
||||
}
|
||||
public ExportHeader(string headerName, bool isSelected) : this(headerName)
|
||||
{
|
||||
IsSelected = isSelected;
|
||||
}
|
||||
private string _headerName;
|
||||
public string HeaderName
|
||||
{
|
||||
get { return _headerName; }
|
||||
set
|
||||
{
|
||||
_headerName = value;
|
||||
OnPropertyChanged("HeaderName");
|
||||
}
|
||||
}
|
||||
|
||||
private bool _isSelected = false;
|
||||
public bool IsSelected
|
||||
{
|
||||
get { return _isSelected; }
|
||||
set
|
||||
{
|
||||
_isSelected = value;
|
||||
OnPropertyChanged("IsSelected");
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
protected void OnPropertyChanged(string propertyName = null)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user