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
- CompilerScopeManager.cs
- EnumConverter.cs
- TextRangeEditTables.cs
- SortAction.cs
- ServiceElementCollection.cs
- SerializationEventsCache.cs
- SettingsPropertyNotFoundException.cs
- SQLMoney.cs
- CreateUserWizardDesigner.cs
- _SafeNetHandles.cs
- SqlParameterCollection.cs
- DrawToolTipEventArgs.cs
- BooleanConverter.cs
- AdRotator.cs
- ValidationHelper.cs
- EntityDataSourceSelectedEventArgs.cs
- CngKey.cs
- WindowsTooltip.cs
- InvalidChannelBindingException.cs
- UpdateExpressionVisitor.cs
- XPathNavigatorKeyComparer.cs
- PageBuildProvider.cs
- MaskedTextBox.cs
- XmlNamedNodeMap.cs
- ToolTipService.cs
- DtdParser.cs
- AnimationLayer.cs
- HttpStreamFormatter.cs
- WebHttpBindingCollectionElement.cs
- HostedElements.cs
- SecurityUniqueId.cs
- EDesignUtil.cs
- uribuilder.cs
- MethodExpression.cs
- ObjectAssociationEndMapping.cs
- OdbcHandle.cs
- InvalidComObjectException.cs
- Matrix.cs
- SafeSecurityHandles.cs
- SoapElementAttribute.cs
- DataSourceXmlSerializer.cs
- ObjectConverter.cs
- XmlSerializationGeneratedCode.cs
- ActivityDesignerHighlighter.cs
- MaskDescriptors.cs
- Odbc32.cs
- SqlEnums.cs
- StateWorkerRequest.cs
- TagMapInfo.cs
- BaseValidator.cs
- WindowsAuthenticationModule.cs
- URLMembershipCondition.cs
- StorageEndPropertyMapping.cs
- TouchDevice.cs
- LocalizationParserHooks.cs
- PersonalizationStateInfoCollection.cs
- StylusEventArgs.cs
- SiteMapNodeItem.cs
- CustomAttributeFormatException.cs
- MappingSource.cs
- ResolveCriteriaApril2005.cs
- ClientRoleProvider.cs
- ValidatingPropertiesEventArgs.cs
- AppDomain.cs
- figurelengthconverter.cs
- Section.cs
- DocumentReference.cs
- MemberInitExpression.cs
- SqlCacheDependencyDatabase.cs
- EncoderFallback.cs
- QueryPageSettingsEventArgs.cs
- MDIWindowDialog.cs
- CountAggregationOperator.cs
- TypedServiceOperationListItem.cs
- PrincipalPermission.cs
- TabControlToolboxItem.cs
- ApplicationTrust.cs
- SerializationException.cs
- ListViewDeleteEventArgs.cs
- QueryStringParameter.cs
- MachineSettingsSection.cs
- SpotLight.cs
- CodePageUtils.cs
- PropertyPathWorker.cs
- DataBinding.cs
- HwndSourceKeyboardInputSite.cs
- RequestSecurityToken.cs
- ValueType.cs
- ClientBuildManager.cs
- ToolStripSplitButton.cs
- XamlFilter.cs
- DeferredTextReference.cs
- OciHandle.cs
- X509CertificateCollection.cs
- ResXDataNode.cs
- AuthenticodeSignatureInformation.cs
- ScrollProperties.cs
- WindowsGrip.cs
- FontStretchConverter.cs
- IsolatedStorageFileStream.cs