Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Annotations / Storage / StoreContentChangedEventArgs.cs / 1 / StoreContentChangedEventArgs.cs
//------------------------------------------------------------------------------ // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // The AnnotationStore.StoreContentChanged event is generated when any // changes are made to an annotation in an AnnotationStore. // // File contains the StoreContentChangedEventArgs class, the // AnnotationStoreEnum and the StoreContentChangedEventHandler delegate. // Spec: http://team/sites/ag/Specifications/CAF%20Storage%20Spec.doc // // History: // 07/10/2003: rruiz: Created (split from AnnotationStore.cs file). // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Xml; namespace System.Windows.Annotations.Storage { ////// Event handler delegate for AnnotationUpdated event. Listeners for /// this event must supply a delegate with this signature. /// /// AnnotationStore in which the change took place /// the event data public delegate void StoreContentChangedEventHandler(object sender, StoreContentChangedEventArgs e); ////// Possible actions performed on an IAnnotation in an AnnotationStore. /// public enum StoreContentAction { ////// Annotation was added to the store /// Added, ////// Annotation was deleted from the store /// Deleted } ////// The AnnotationUpdated event is generated when any changes are made /// to an annotation in an AnnotationStore. An instance of this class /// specifies the action that was taken and the IAnnotation that was /// acted upon. /// public class StoreContentChangedEventArgs : System.EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Creates an instance of AnnotationUpdatedEventArgs with the /// specified action and annotation. /// /// the action that was performed on an annotation /// the annotation that was updated public StoreContentChangedEventArgs(StoreContentAction action, Annotation annotation) { if (annotation == null) throw new ArgumentNullException("annotation"); _action = action; _annotation = annotation; } #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Operators // //------------------------------------------------------ //----------------------------------------------------- // // Public Properties // //------------------------------------------------------ #region Public Properties ////// Returns the IAnnotation that was updated. /// public Annotation Annotation { get { return _annotation; } } ////// Returns the action that was performed on the annotation. /// public StoreContentAction Action { get { return _action; } } #endregion Public Properties //----------------------------------------------------- // // Public Events // //----------------------------------------------------- //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private StoreContentAction _action; // action taken on the annotation private Annotation _annotation; // annotation that was updated #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // The AnnotationStore.StoreContentChanged event is generated when any // changes are made to an annotation in an AnnotationStore. // // File contains the StoreContentChangedEventArgs class, the // AnnotationStoreEnum and the StoreContentChangedEventHandler delegate. // Spec: http://team/sites/ag/Specifications/CAF%20Storage%20Spec.doc // // History: // 07/10/2003: rruiz: Created (split from AnnotationStore.cs file). // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Xml; namespace System.Windows.Annotations.Storage { ////// Event handler delegate for AnnotationUpdated event. Listeners for /// this event must supply a delegate with this signature. /// /// AnnotationStore in which the change took place /// the event data public delegate void StoreContentChangedEventHandler(object sender, StoreContentChangedEventArgs e); ////// Possible actions performed on an IAnnotation in an AnnotationStore. /// public enum StoreContentAction { ////// Annotation was added to the store /// Added, ////// Annotation was deleted from the store /// Deleted } ////// The AnnotationUpdated event is generated when any changes are made /// to an annotation in an AnnotationStore. An instance of this class /// specifies the action that was taken and the IAnnotation that was /// acted upon. /// public class StoreContentChangedEventArgs : System.EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Creates an instance of AnnotationUpdatedEventArgs with the /// specified action and annotation. /// /// the action that was performed on an annotation /// the annotation that was updated public StoreContentChangedEventArgs(StoreContentAction action, Annotation annotation) { if (annotation == null) throw new ArgumentNullException("annotation"); _action = action; _annotation = annotation; } #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Operators // //------------------------------------------------------ //----------------------------------------------------- // // Public Properties // //------------------------------------------------------ #region Public Properties ////// Returns the IAnnotation that was updated. /// public Annotation Annotation { get { return _annotation; } } ////// Returns the action that was performed on the annotation. /// public StoreContentAction Action { get { return _action; } } #endregion Public Properties //----------------------------------------------------- // // Public Events // //----------------------------------------------------- //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private StoreContentAction _action; // action taken on the annotation private Annotation _annotation; // annotation that was updated #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EdmPropertyAttribute.cs
- AddressHeaderCollection.cs
- DataObjectFieldAttribute.cs
- webproxy.cs
- Hex.cs
- SafeLibraryHandle.cs
- SettingsPropertyValueCollection.cs
- StylusPointPropertyId.cs
- DirectionalLight.cs
- WithParamAction.cs
- QueryStatement.cs
- AndCondition.cs
- TextDecorationLocationValidation.cs
- SoapIncludeAttribute.cs
- mda.cs
- TextElementEnumerator.cs
- LocationUpdates.cs
- WebPartActionVerb.cs
- ControlType.cs
- XmlCollation.cs
- SqlTriggerAttribute.cs
- NamespaceQuery.cs
- StreamWriter.cs
- DictionarySectionHandler.cs
- FieldMetadata.cs
- DataContract.cs
- ToolBar.cs
- TextParaLineResult.cs
- NumberAction.cs
- OperatorExpressions.cs
- ObjectTypeMapping.cs
- CommandDevice.cs
- AddInSegmentDirectoryNotFoundException.cs
- ResourceProviderFactory.cs
- PhysicalFontFamily.cs
- CodeBlockBuilder.cs
- DbDeleteCommandTree.cs
- StdValidatorsAndConverters.cs
- CompiledRegexRunner.cs
- AsyncOperation.cs
- Compress.cs
- GridViewAutomationPeer.cs
- SrgsElementList.cs
- XmlAttributes.cs
- XmlNullResolver.cs
- UnsettableComboBox.cs
- Animatable.cs
- AvtEvent.cs
- ArrayEditor.cs
- AttributeEmitter.cs
- XNodeValidator.cs
- MethodRental.cs
- ReadWriteSpinLock.cs
- DispatcherTimer.cs
- InternalException.cs
- DataSourceListEditor.cs
- ProfileParameter.cs
- IsolationInterop.cs
- BindingGroup.cs
- RowToFieldTransformer.cs
- MaterialGroup.cs
- ToolBarButtonClickEvent.cs
- SqlHelper.cs
- X509Certificate.cs
- RuleSetCollection.cs
- ObjectDataProvider.cs
- ConfigurationFileMap.cs
- TextEncodedRawTextWriter.cs
- Material.cs
- Decoder.cs
- SettingsPropertyValueCollection.cs
- EntityProviderFactory.cs
- TextEditorContextMenu.cs
- AvtEvent.cs
- FieldNameLookup.cs
- XmlSerializableServices.cs
- DataBindingList.cs
- SplineQuaternionKeyFrame.cs
- Menu.cs
- AxHost.cs
- CatalogPartCollection.cs
- ChangeNode.cs
- DeviceContext2.cs
- ObjectSet.cs
- serverconfig.cs
- BigInt.cs
- MarkupCompiler.cs
- SqlUDTStorage.cs
- AdornerPresentationContext.cs
- TextEndOfParagraph.cs
- CompilationUtil.cs
- FirstQueryOperator.cs
- CachedBitmap.cs
- HScrollBar.cs
- LoggedException.cs
- XomlDesignerLoader.cs
- CursorConverter.cs
- RectAnimationUsingKeyFrames.cs
- RMEnrollmentPage3.cs
- WindowsProgressbar.cs