Code:
/ 4.0 / 4.0 / 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. 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
- SerTrace.cs
- OleServicesContext.cs
- ConnectionPointCookie.cs
- DoubleAnimationUsingKeyFrames.cs
- SortableBindingList.cs
- EntityWrapper.cs
- ContainerFilterService.cs
- SelectedDatesCollection.cs
- activationcontext.cs
- LoginView.cs
- TargetFrameworkUtil.cs
- SelectionRangeConverter.cs
- VisualTransition.cs
- MULTI_QI.cs
- NetSectionGroup.cs
- ObjectDataSourceStatusEventArgs.cs
- FlowDecisionDesigner.xaml.cs
- ErrorStyle.cs
- ToolboxItem.cs
- LocalizedNameDescriptionPair.cs
- XmlSerializerVersionAttribute.cs
- SslStream.cs
- NGCSerializationManager.cs
- WrapPanel.cs
- MobileListItemCollection.cs
- ColorAnimationUsingKeyFrames.cs
- Native.cs
- SolidBrush.cs
- DefaultValidator.cs
- SspiSecurityToken.cs
- GridViewUpdatedEventArgs.cs
- SoapProcessingBehavior.cs
- Event.cs
- InlineObject.cs
- ReturnType.cs
- GPPOINT.cs
- DataBoundLiteralControl.cs
- MarkedHighlightComponent.cs
- XpsFilter.cs
- PointConverter.cs
- CacheOutputQuery.cs
- ApplicationHost.cs
- ResourcePart.cs
- ProjectionNode.cs
- MediaEntryAttribute.cs
- EventSourceCreationData.cs
- ActivityCollectionMarkupSerializer.cs
- UserControl.cs
- XmlDataSource.cs
- ListBase.cs
- CryptoConfig.cs
- TokenBasedSet.cs
- StrokeNode.cs
- GridViewDeleteEventArgs.cs
- DeviceContext2.cs
- CodeDomConfigurationHandler.cs
- GiveFeedbackEventArgs.cs
- PackageFilter.cs
- TextDecorationCollectionConverter.cs
- TextEffect.cs
- TransformDescriptor.cs
- FixedHighlight.cs
- DataGridViewCellStyleEditor.cs
- Int32KeyFrameCollection.cs
- InstallerTypeAttribute.cs
- SettingsPropertyIsReadOnlyException.cs
- SafeFileMappingHandle.cs
- TextStore.cs
- NativeMethods.cs
- LogPolicy.cs
- ConsumerConnectionPoint.cs
- UTF7Encoding.cs
- RenderCapability.cs
- ImageProxy.cs
- DoubleIndependentAnimationStorage.cs
- HtmlTableCell.cs
- ElementNotEnabledException.cs
- UdpContractFilterBehavior.cs
- FileAuthorizationModule.cs
- BevelBitmapEffect.cs
- CoTaskMemHandle.cs
- LogAppendAsyncResult.cs
- DescriptionAttribute.cs
- ToolStripRendererSwitcher.cs
- BidPrivateBase.cs
- MemoryStream.cs
- XPathEmptyIterator.cs
- HttpHeaderCollection.cs
- Point3DAnimationBase.cs
- ExpandCollapsePattern.cs
- IndexedSelectQueryOperator.cs
- FastEncoder.cs
- IconHelper.cs
- LogLogRecordHeader.cs
- documentsequencetextpointer.cs
- MiniParameterInfo.cs
- localization.cs
- LZCodec.cs
- SmiEventStream.cs
- XPathScanner.cs