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
- Msec.cs
- ConstraintStruct.cs
- LinkClickEvent.cs
- ISAPIApplicationHost.cs
- WorkflowDefinitionDispenser.cs
- PickBranch.cs
- DataGridViewCellCancelEventArgs.cs
- CustomErrorsSectionWrapper.cs
- PropertyGridView.cs
- AttributeXamlType.cs
- InternalConfigConfigurationFactory.cs
- TreeNodeBindingCollection.cs
- CodeSubDirectory.cs
- DictionarySurrogate.cs
- EntityRecordInfo.cs
- TimeSpan.cs
- TreeNode.cs
- DataKey.cs
- UnsafeNativeMethods.cs
- HandlerWithFactory.cs
- RuntimeResourceSet.cs
- StorageComplexPropertyMapping.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- FusionWrap.cs
- PluggableProtocol.cs
- LowerCaseStringConverter.cs
- TextSimpleMarkerProperties.cs
- DirtyTextRange.cs
- Logging.cs
- HttpRuntime.cs
- XAMLParseException.cs
- SettingsSection.cs
- StateMachineWorkflowDesigner.cs
- EUCJPEncoding.cs
- CorrelationManager.cs
- MenuItem.cs
- OdbcEnvironmentHandle.cs
- TypefaceMap.cs
- PermissionSet.cs
- DataGridViewRowPrePaintEventArgs.cs
- ExpressionPrinter.cs
- DependencyProperty.cs
- WhitespaceRuleReader.cs
- Substitution.cs
- Thickness.cs
- IOThreadTimer.cs
- ValidatingReaderNodeData.cs
- FontStretchConverter.cs
- SrgsRuleRef.cs
- xmlglyphRunInfo.cs
- EtwTrackingBehavior.cs
- ValidationErrorInfo.cs
- MessageFormatterConverter.cs
- PTUtility.cs
- ImageDrawing.cs
- PartialCachingAttribute.cs
- Operand.cs
- Tag.cs
- ProtocolsConfigurationHandler.cs
- RtfNavigator.cs
- WebReferenceOptions.cs
- NullableConverter.cs
- FocusManager.cs
- PropertyExpression.cs
- Base64WriteStateInfo.cs
- LineBreakRecord.cs
- WebPartConnectVerb.cs
- DemultiplexingClientMessageFormatter.cs
- ZipIORawDataFileBlock.cs
- ModuleBuilder.cs
- ValidationErrorCollection.cs
- ContextMenuService.cs
- Translator.cs
- Base64Decoder.cs
- MarkupProperty.cs
- ControlBindingsCollection.cs
- InstanceContext.cs
- OSFeature.cs
- XamlReaderConstants.cs
- HorizontalAlignConverter.cs
- IgnorePropertiesAttribute.cs
- VariableQuery.cs
- TableLayoutPanelCodeDomSerializer.cs
- _UriSyntax.cs
- DataControlImageButton.cs
- DataColumn.cs
- ArcSegment.cs
- FixedSOMContainer.cs
- DigitShape.cs
- EventBindingService.cs
- Sorting.cs
- SmiMetaDataProperty.cs
- ReadOnlyHierarchicalDataSource.cs
- OleDbEnumerator.cs
- PingOptions.cs
- ObjectTag.cs
- _DynamicWinsockMethods.cs
- MatchingStyle.cs
- Error.cs
- KeyInstance.cs