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
- COM2PropertyBuilderUITypeEditor.cs
- SchemaObjectWriter.cs
- JpegBitmapDecoder.cs
- FileVersionInfo.cs
- PageAsyncTask.cs
- ToolBarOverflowPanel.cs
- CodeEntryPointMethod.cs
- FontCacheLogic.cs
- XmlQuerySequence.cs
- TypeUtil.cs
- MobileControlsSection.cs
- Misc.cs
- RoleGroupCollection.cs
- DesigntimeLicenseContextSerializer.cs
- IgnoreDeviceFilterElement.cs
- ModifierKeysConverter.cs
- Maps.cs
- ChannelEndpointElement.cs
- RowBinding.cs
- CompoundFileDeflateTransform.cs
- WmlFormAdapter.cs
- InsufficientExecutionStackException.cs
- ZipIOCentralDirectoryFileHeader.cs
- RoleGroupCollection.cs
- Registry.cs
- GradientBrush.cs
- LocalValueEnumerator.cs
- SchemaEntity.cs
- CssTextWriter.cs
- BamlLocalizabilityResolver.cs
- CapabilitiesUse.cs
- XmlObjectSerializerReadContextComplex.cs
- Label.cs
- DesignerRegionMouseEventArgs.cs
- RC2.cs
- WebBrowserEvent.cs
- FixedDocument.cs
- HierarchicalDataSourceControl.cs
- CommandField.cs
- TextParagraph.cs
- HierarchicalDataSourceIDConverter.cs
- FontWeight.cs
- QueryRelOp.cs
- ValueChangedEventManager.cs
- Binding.cs
- TdsRecordBufferSetter.cs
- ReturnValue.cs
- SudsCommon.cs
- Rect.cs
- GAC.cs
- AssociationTypeEmitter.cs
- RadialGradientBrush.cs
- TypeSemantics.cs
- DurableInstanceProvider.cs
- GridViewColumnHeaderAutomationPeer.cs
- CombinedTcpChannel.cs
- Tuple.cs
- Viewport2DVisual3D.cs
- MatrixTransform3D.cs
- TableLayoutPanelCellPosition.cs
- EventArgs.cs
- RowType.cs
- XmlSchemaSimpleTypeList.cs
- ControlTemplate.cs
- TypedTableGenerator.cs
- DataServiceExpressionVisitor.cs
- ActivityBuilder.cs
- WebPartEditorApplyVerb.cs
- WebBaseEventKeyComparer.cs
- _AuthenticationState.cs
- FtpWebResponse.cs
- AssemblyNameProxy.cs
- SecurityImpersonationBehavior.cs
- Vector3DAnimationUsingKeyFrames.cs
- TagNameToTypeMapper.cs
- DynamicActivityTypeDescriptor.cs
- ResolveRequestResponseAsyncResult.cs
- SoapIgnoreAttribute.cs
- WebDescriptionAttribute.cs
- Globals.cs
- NoneExcludedImageIndexConverter.cs
- CellParaClient.cs
- MemberPath.cs
- NetCodeGroup.cs
- DiscoveryMessageSequenceGenerator.cs
- HiddenField.cs
- InnerItemCollectionView.cs
- NavigationPropertyEmitter.cs
- XpsFixedPageReaderWriter.cs
- FormatConvertedBitmap.cs
- WorkflowNamespace.cs
- PrefixHandle.cs
- UnauthorizedWebPart.cs
- ServiceDebugElement.cs
- BinHexDecoder.cs
- TransformConverter.cs
- Color.cs
- ScaleTransform.cs
- CodeTypeParameter.cs
- Function.cs