internal bool RaiseBeforeConfigurationObjectPersisted() { bool cancel = OnBeforeConfigurationObjectPersisted(); if (cancel) { return(cancel); } EventHandler <ChoPreviewConfigurationObjectEventArgs> beforeConfigurationObjectPersisted = BeforeConfigurationObjectPersisted; if (beforeConfigurationObjectPersisted != null) { ChoPreviewConfigurationObjectEventArgs previewConfigurationObjectEventArgs = new ChoPreviewConfigurationObjectEventArgs(); beforeConfigurationObjectPersisted(this, previewConfigurationObjectEventArgs); return(previewConfigurationObjectEventArgs.Cancel); } return(false); }
internal bool RaiseBeforeConfigurationObjectLoaded() { //Wire INotifyPropertyChanged members for any changes UnwireNotifyPropertyChangedMembersForChanges(GetType()); bool cancel = OnBeforeConfigurationObjectLoaded(); if (cancel) { return(cancel); } EventHandler <ChoPreviewConfigurationObjectEventArgs> beforeConfigurationObjectLoadedInternal = BeforeConfigurationObjectLoadedInternal; if (beforeConfigurationObjectLoadedInternal != null) { ChoPreviewConfigurationObjectEventArgs previewConfigurationObjectEventArgs = new ChoPreviewConfigurationObjectEventArgs(); beforeConfigurationObjectLoadedInternal(this, previewConfigurationObjectEventArgs); return(previewConfigurationObjectEventArgs.Cancel); } return(false); }