Пример #1
0
        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;
            }
        }
Пример #2
0
 public User()
 {
     addBehaviour    = new NoAdd();
     editBehaviour   = new NoEdit();
     removeBehaviour = new NoRemove();
 }
Пример #3
0
 protected User()
 {
     Adding   = new NoAdd();
     Editing  = new NoEdit();
     Removing = new NoRemove();
 }
Пример #4
0
 protected User()
 {
     Adding = new NoAdd();
     Editing = new NoEdit();
     Removing = new NoRemove();
 }