- Code: Select all
public bool Enabled
{
get { return this.enabled; }
set
{
this.enabled = true;
this.OnEnabledChanged();
this.OnPropertyChanged(PropertyName.Enabled);
}
}
I think this defines a behavior you dont want. because this.enabled will always be set to true. if you always want enabled to be true removing the setter would be the best option. and just return true in the getter and get rid of the enabled property. Or when you would keep the setter i suggest you replace the this.enabled = true by this.enabled = value.
