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
- AllMembershipCondition.cs
- ComponentCommands.cs
- Point3DAnimationUsingKeyFrames.cs
- ResourceWriter.cs
- InvalidateEvent.cs
- WindowInteractionStateTracker.cs
- InternalResources.cs
- GlobalEventManager.cs
- SqlConnectionString.cs
- SQLMoneyStorage.cs
- ExtendedProtectionPolicy.cs
- RuntimeEnvironment.cs
- ColorContextHelper.cs
- ExpandCollapsePattern.cs
- AccessDataSourceDesigner.cs
- SwitchAttribute.cs
- WorkflowShape.cs
- Set.cs
- TableLayoutCellPaintEventArgs.cs
- IssuedTokenServiceCredential.cs
- PDBReader.cs
- EdgeProfileValidation.cs
- SmiGettersStream.cs
- MaskInputRejectedEventArgs.cs
- ConversionValidationRule.cs
- ItemCheckEvent.cs
- GridItemProviderWrapper.cs
- InputLanguageManager.cs
- RawStylusInputReport.cs
- XmlDataImplementation.cs
- ButtonStandardAdapter.cs
- EntityDataSourceContainerNameConverter.cs
- Metafile.cs
- cookie.cs
- DataColumnMapping.cs
- FtpWebRequest.cs
- StoreContentChangedEventArgs.cs
- SendMailErrorEventArgs.cs
- ScriptMethodAttribute.cs
- DataGridViewColumnHeaderCell.cs
- ContextMenuStripActionList.cs
- SemaphoreSlim.cs
- CompressEmulationStream.cs
- GridViewCellAutomationPeer.cs
- ListBase.cs
- TraceContextEventArgs.cs
- TextBox.cs
- _NetworkingPerfCounters.cs
- WebPartManagerInternals.cs
- CompiledAction.cs
- DataGridViewCellCancelEventArgs.cs
- TemplateBuilder.cs
- RawStylusInputReport.cs
- ValidationHelper.cs
- FixedBufferAttribute.cs
- Message.cs
- ContextStack.cs
- WinInet.cs
- ExecutorLocksHeldException.cs
- TreeViewImageGenerator.cs
- MulticastIPAddressInformationCollection.cs
- ValueType.cs
- DataGridViewRowPrePaintEventArgs.cs
- RecognizerBase.cs
- ProcessThread.cs
- BasicHttpSecurityMode.cs
- regiisutil.cs
- ComEventsSink.cs
- SafeViewOfFileHandle.cs
- GeneralTransform3D.cs
- AuthenticationConfig.cs
- NameValueFileSectionHandler.cs
- XsltFunctions.cs
- TreeNodeStyleCollection.cs
- MissingManifestResourceException.cs
- OutKeywords.cs
- CriticalExceptions.cs
- ModelTypeConverter.cs
- LinearGradientBrush.cs
- Config.cs
- InvalidOperationException.cs
- BamlRecords.cs
- SetterBaseCollection.cs
- _KerberosClient.cs
- RoleManagerEventArgs.cs
- EventlogProvider.cs
- MapPathBasedVirtualPathProvider.cs
- FormViewInsertedEventArgs.cs
- RepeatBehaviorConverter.cs
- UnknownWrapper.cs
- InputBindingCollection.cs
- ComponentDispatcherThread.cs
- ThreadAbortException.cs
- HtmlElement.cs
- BaseParaClient.cs
- COM2TypeInfoProcessor.cs
- BaseCAMarshaler.cs
- Pen.cs
- __ComObject.cs
- CounterCreationDataConverter.cs