Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Serializer / ModifyActivitiesPropertyDescriptor.cs / 1305376 / ModifyActivitiesPropertyDescriptor.cs
namespace System.Workflow.ComponentModel.Serialization { using System; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Collections; using System.Resources; using System.Workflow.ComponentModel.Design; using System.Collections.Generic; using Microsoft.CSharp; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Compiler; using System.CodeDom.Compiler; using System.IO; using System.Reflection; using System.Diagnostics; #region ModifyActivitiesPropertyDescriptor internal class ModifyActivitiesPropertyDescriptor : PropertyDescriptor { private PropertyInfo propInfo = null; public ModifyActivitiesPropertyDescriptor(PropertyInfo propInfo) : base("CanModifyActivities", new Attribute[0]) { this.propInfo = propInfo; } public override bool CanResetValue(object component) { throw new NotImplementedException(); } public override Type ComponentType { get { return typeof(CompositeActivity); } } public override object GetValue(object component) { return this.propInfo.GetValue(component, null); } public override bool IsReadOnly { get { return false; } } public override Type PropertyType { get { return typeof(bool); } } public override void ResetValue(object component) { throw new NotImplementedException(); } public override void SetValue(object component, object value) { this.propInfo.SetValue(component, true, null); // Design time, allow changes if (component is CompositeActivity) (component as CompositeActivity).SetValue(CompositeActivity.CustomActivityProperty, false); } public override bool ShouldSerializeValue(object component) { return false; } } #endregion } // 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
- returneventsaver.cs
- ZipFileInfoCollection.cs
- WindowsServiceCredential.cs
- WasEndpointConfigContainer.cs
- ExtendedPropertyCollection.cs
- unsafenativemethodstextservices.cs
- EditableRegion.cs
- RuntimeComponentFilter.cs
- ChangeDirector.cs
- XPathSingletonIterator.cs
- TreeNodeCollection.cs
- WindowsRichEditRange.cs
- SmtpAuthenticationManager.cs
- SoapExtensionStream.cs
- LassoSelectionBehavior.cs
- ConfigurationSectionGroup.cs
- ProfileEventArgs.cs
- MachineSettingsSection.cs
- BlurEffect.cs
- StringConverter.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- Byte.cs
- isolationinterop.cs
- CheckBoxBaseAdapter.cs
- ImageIndexEditor.cs
- DaylightTime.cs
- DataServiceContext.cs
- Classification.cs
- SelectionProcessor.cs
- VoiceChangeEventArgs.cs
- DateBoldEvent.cs
- ObjectCloneHelper.cs
- TransformerInfoCollection.cs
- KeyboardEventArgs.cs
- IntSecurity.cs
- HtmlShimManager.cs
- ConsumerConnectionPointCollection.cs
- MessageFault.cs
- XmlSchemaImporter.cs
- ServiceObjectContainer.cs
- FileDetails.cs
- OleDbTransaction.cs
- NativeMethods.cs
- ExtractorMetadata.cs
- GroupQuery.cs
- WebDescriptionAttribute.cs
- WebPartTracker.cs
- DataServiceClientException.cs
- RuntimeConfig.cs
- BitmapPalette.cs
- FileClassifier.cs
- XmlParser.cs
- RemotingAttributes.cs
- DropShadowBitmapEffect.cs
- Array.cs
- PaintValueEventArgs.cs
- bidPrivateBase.cs
- SolidColorBrush.cs
- SchemaCollectionCompiler.cs
- SystemUdpStatistics.cs
- PackageRelationshipSelector.cs
- CultureInfoConverter.cs
- TablePattern.cs
- Animatable.cs
- QilInvoke.cs
- messageonlyhwndwrapper.cs
- XmlEntityReference.cs
- PowerStatus.cs
- ImageListImageEditor.cs
- Pkcs7Signer.cs
- DataColumn.cs
- SecureStringHasher.cs
- Thread.cs
- HtmlElementEventArgs.cs
- Monitor.cs
- FlowchartSizeFeature.cs
- TrackingDataItemValue.cs
- ArrangedElement.cs
- ScriptHandlerFactory.cs
- SplashScreen.cs
- ActivityDesignerAccessibleObject.cs
- GenerateScriptTypeAttribute.cs
- WS2007FederationHttpBindingCollectionElement.cs
- UITypeEditor.cs
- CustomActivityDesigner.cs
- TransformerConfigurationWizardBase.cs
- SecurityDescriptor.cs
- DropDownButton.cs
- DBNull.cs
- SchemaContext.cs
- InvokeBinder.cs
- SystemIPInterfaceStatistics.cs
- CodeTypeDeclaration.cs
- XComponentModel.cs
- ItemList.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- CommandManager.cs
- MemberAssignment.cs
- FontCacheUtil.cs
- ScrollBarRenderer.cs