Ejemplo n.º 1
0
        private bool CanSave()
        {
            // can only save (insert or update) if all NonNull constraints satisfied
            // Note: CurrentItem is null when selected item is a header only item
            if (CurrentItem != null)
            {
                return(CurrentItem.IsChanged && CurrentItem.AreNonNullConstraintsSatisfied());
            }

            // if no current item, then nothing to persist
            return(false);
        }