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
- DataConnectionHelper.cs
- ReachFixedPageSerializerAsync.cs
- TableAutomationPeer.cs
- XmlObjectSerializerWriteContextComplex.cs
- ObfuscateAssemblyAttribute.cs
- SignatureToken.cs
- StaticResourceExtension.cs
- WebBrowserProgressChangedEventHandler.cs
- MouseDevice.cs
- MenuAutoFormat.cs
- IChannel.cs
- ServiceDesigner.xaml.cs
- HttpListenerException.cs
- HistoryEventArgs.cs
- BamlLocalizableResource.cs
- AddInSegmentDirectoryNotFoundException.cs
- StrokeNodeOperations.cs
- TextTreeUndo.cs
- AppDomainUnloadedException.cs
- DbProviderFactory.cs
- mediaeventshelper.cs
- InheritanceAttribute.cs
- WsdlInspector.cs
- WebConfigurationManager.cs
- StatusBarDesigner.cs
- ResXResourceWriter.cs
- IImplicitResourceProvider.cs
- ConnectivityStatus.cs
- HeaderCollection.cs
- Html32TextWriter.cs
- Thickness.cs
- LinqDataSourceDeleteEventArgs.cs
- StringUtil.cs
- LateBoundBitmapDecoder.cs
- arabicshape.cs
- RegionData.cs
- PolyQuadraticBezierSegment.cs
- ConnectionsZone.cs
- ChangeInterceptorAttribute.cs
- ZoneButton.cs
- WebHostUnsafeNativeMethods.cs
- WebEventCodes.cs
- DataContractSerializerOperationGenerator.cs
- TextWriter.cs
- ToolStripContentPanel.cs
- MethodRental.cs
- Literal.cs
- OdbcCommand.cs
- DataObjectAttribute.cs
- DbTransaction.cs
- HostingPreferredMapPath.cs
- CompleteWizardStep.cs
- ImageUrlEditor.cs
- PropertyTabAttribute.cs
- OperationResponse.cs
- Convert.cs
- RotateTransform.cs
- SequentialUshortCollection.cs
- EditorBrowsableAttribute.cs
- MimeMultiPart.cs
- CollectionViewProxy.cs
- MachinePropertyVariants.cs
- NativeMethodsCLR.cs
- listitem.cs
- WorkflowDesignerColors.cs
- MailDefinition.cs
- TdsEnums.cs
- ConfigXmlAttribute.cs
- PropertyEntry.cs
- DropDownButton.cs
- SmiSettersStream.cs
- AudioFormatConverter.cs
- BoolExpression.cs
- PlainXmlDeserializer.cs
- SerializerWriterEventHandlers.cs
- BookmarkOptionsHelper.cs
- PersonalizablePropertyEntry.cs
- DecimalStorage.cs
- EqualityComparer.cs
- UTF7Encoding.cs
- EventMappingSettings.cs
- ControlBuilder.cs
- IteratorDescriptor.cs
- RepeaterItemEventArgs.cs
- regiisutil.cs
- EDesignUtil.cs
- TypeProvider.cs
- DelegateTypeInfo.cs
- DbConnectionPoolGroupProviderInfo.cs
- XmlCustomFormatter.cs
- SByteConverter.cs
- MetadataCollection.cs
- DbMetaDataFactory.cs
- ToolStripContentPanel.cs
- ConstantProjectedSlot.cs
- WhitespaceRuleReader.cs
- XmlTextEncoder.cs
- EditBehavior.cs
- SelectionPattern.cs
- ThreadPool.cs