private void OnPropertyChanged(object sender, PropertyChangedEventArgs e) { IEditing obj = (IEditing)sender; if (obj.IsEnablePropertyChanged && e.PropertyName != "IsEditing" && e.PropertyName != "IsNew" && e.PropertyName != "IsEnablePropertyChanged") { obj.IsEditing = true; } }
public User() { addBehaviour = new NoAdd(); editBehaviour = new NoEdit(); removeBehaviour = new NoRemove(); }
protected User() { Adding = new NoAdd(); Editing = new NoEdit(); Removing = new NoRemove(); }