Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / TaskDesigner.cs / 1305376 / TaskDesigner.cs
namespace System.Workflow.Activities { using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.CodeDom; using System.Collections.ObjectModel; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Diagnostics; using System.Runtime.Serialization; using System.Drawing.Design; using System.Drawing.Drawing2D; using System.Windows.Forms; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Windows.Forms.Design; #region Class ReplicatorDesigner internal sealed class ReplicatorDesigner : System.Workflow.Activities.SequenceDesigner { public override bool CanInsertActivities(HitTestInfo insertLocation, ReadOnlyCollectionactivitiesToInsert) { CompositeActivity compositeActivity = Activity as CompositeActivity; if (compositeActivity != null && compositeActivity.EnabledActivities.Count > 0) return false; if (activitiesToInsert.Count > 1) return false; return base.CanInsertActivities(insertLocation, activitiesToInsert); } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.Activities { using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.CodeDom; using System.Collections.ObjectModel; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Diagnostics; using System.Runtime.Serialization; using System.Drawing.Design; using System.Drawing.Drawing2D; using System.Windows.Forms; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Windows.Forms.Design; #region Class ReplicatorDesigner internal sealed class ReplicatorDesigner : System.Workflow.Activities.SequenceDesigner { public override bool CanInsertActivities(HitTestInfo insertLocation, ReadOnlyCollection activitiesToInsert) { CompositeActivity compositeActivity = Activity as CompositeActivity; if (compositeActivity != null && compositeActivity.EnabledActivities.Count > 0) return false; if (activitiesToInsert.Count > 1) return false; return base.CanInsertActivities(insertLocation, activitiesToInsert); } } #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
- HostingEnvironmentException.cs
- CellRelation.cs
- CompilationSection.cs
- SourceFilter.cs
- CachedBitmap.cs
- SystemException.cs
- PermissionAttributes.cs
- TraceHandlerErrorFormatter.cs
- DeviceContexts.cs
- Bitmap.cs
- SystemIPGlobalProperties.cs
- EventDrivenDesigner.cs
- XPathAncestorIterator.cs
- BasicKeyConstraint.cs
- EntityDataSourceState.cs
- IdentityValidationException.cs
- InsufficientExecutionStackException.cs
- ShaderRenderModeValidation.cs
- X509CertificateValidator.cs
- SignatureDescription.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- WebPartConnectVerb.cs
- HtmlInputFile.cs
- Floater.cs
- ProfileSection.cs
- IndentedWriter.cs
- unsafeIndexingFilterStream.cs
- PrintingPermissionAttribute.cs
- ImageInfo.cs
- EntitySqlException.cs
- EventLogger.cs
- DataListItem.cs
- X509Certificate.cs
- CompilerParameters.cs
- BinaryCommonClasses.cs
- DataRowView.cs
- BaseEntityWrapper.cs
- BindableAttribute.cs
- SerializationException.cs
- Closure.cs
- UIPropertyMetadata.cs
- SharedConnectionListener.cs
- ComponentTray.cs
- ComponentDesigner.cs
- SqlUDTStorage.cs
- DecimalStorage.cs
- TypeDependencyAttribute.cs
- Helpers.cs
- Utils.cs
- RC2CryptoServiceProvider.cs
- ReferenceConverter.cs
- TTSEvent.cs
- HtmlAnchor.cs
- XmlNodeReader.cs
- InstallHelper.cs
- Mappings.cs
- RequestResponse.cs
- DataControlButton.cs
- _OSSOCK.cs
- Component.cs
- ListenerAdapterBase.cs
- DataSourceXmlElementAttribute.cs
- BamlRecordHelper.cs
- EventHandlers.cs
- DuplexChannelFactory.cs
- EdmFunctionAttribute.cs
- ExpandSegment.cs
- ProxyWebPart.cs
- SecurityElement.cs
- NetMsmqSecurityElement.cs
- SplitterPanel.cs
- MouseGestureConverter.cs
- BoolExpression.cs
- DataBinder.cs
- BindingValueChangedEventArgs.cs
- ObjectListComponentEditor.cs
- FilterEventArgs.cs
- FixedPageStructure.cs
- MobileTemplatedControlDesigner.cs
- MsdtcClusterUtils.cs
- SqlConnectionManager.cs
- OutputCacheProfile.cs
- DtdParser.cs
- AutomationElementCollection.cs
- StringSource.cs
- MenuStrip.cs
- QueryAccessibilityHelpEvent.cs
- DBPropSet.cs
- LassoHelper.cs
- SamlAuthorityBinding.cs
- SqlDataSourceParameterParser.cs
- CompositionTarget.cs
- XmlTextReaderImpl.cs
- ListCommandEventArgs.cs
- BasicBrowserDialog.cs
- CodeCommentStatementCollection.cs
- CheckBox.cs
- ViewBase.cs
- FusionWrap.cs
- ISAPIWorkerRequest.cs