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
- StreamInfo.cs
- FileSystemWatcher.cs
- SiteOfOriginPart.cs
- FormatSettings.cs
- SoapAttributeAttribute.cs
- altserialization.cs
- AttachedPropertyMethodSelector.cs
- StackSpiller.cs
- DataGridPageChangedEventArgs.cs
- ListSurrogate.cs
- Int32Storage.cs
- ContentOperations.cs
- DataGridCommandEventArgs.cs
- bidPrivateBase.cs
- ComNativeDescriptor.cs
- Viewport3DAutomationPeer.cs
- TextSelectionHelper.cs
- VirtualPathProvider.cs
- ZipIOFileItemStream.cs
- TdsValueSetter.cs
- UIElement.cs
- DictionaryEntry.cs
- EntityDataSourceContainerNameItem.cs
- SerializationAttributes.cs
- GridPattern.cs
- DataPager.cs
- UnicodeEncoding.cs
- ReflectionTypeLoadException.cs
- Filter.cs
- BrowserCapabilitiesFactory35.cs
- DefaultValueTypeConverter.cs
- KeyToListMap.cs
- CompareInfo.cs
- RoutedUICommand.cs
- AutomationElementIdentifiers.cs
- BaseCAMarshaler.cs
- hresults.cs
- AttributeUsageAttribute.cs
- BamlRecordReader.cs
- FeatureSupport.cs
- ActivityTypeCodeDomSerializer.cs
- SecurityDescriptor.cs
- TableItemPattern.cs
- FlowLayout.cs
- SQLGuidStorage.cs
- PagerSettings.cs
- DataBindingCollection.cs
- WindowsSysHeader.cs
- VariableQuery.cs
- BulletedList.cs
- BrushValueSerializer.cs
- ColorTransform.cs
- IdentifierCollection.cs
- HttpInputStream.cs
- VectorCollectionConverter.cs
- WS2007FederationHttpBindingCollectionElement.cs
- BufferedMessageData.cs
- SerializableReadOnlyDictionary.cs
- UnaryNode.cs
- DBBindings.cs
- SmtpDigestAuthenticationModule.cs
- XmlSchemaIdentityConstraint.cs
- SecurityTokenProvider.cs
- SuppressIldasmAttribute.cs
- MenuBindingsEditor.cs
- PageContentAsyncResult.cs
- ProcessDesigner.cs
- XslNumber.cs
- FieldNameLookup.cs
- ListViewItem.cs
- Int16.cs
- MailMessageEventArgs.cs
- TreeViewImageKeyConverter.cs
- Point4DConverter.cs
- Geometry3D.cs
- InputMethodStateTypeInfo.cs
- Stack.cs
- XmlImplementation.cs
- HttpListenerElement.cs
- ListViewTableCell.cs
- SmiEventSink.cs
- ChangesetResponse.cs
- QilName.cs
- ContentWrapperAttribute.cs
- HtmlWindow.cs
- Vector3D.cs
- _KerberosClient.cs
- ProxyWebPartConnectionCollection.cs
- SmtpTransport.cs
- VisualProxy.cs
- UriSection.cs
- ToolStripCustomTypeDescriptor.cs
- DrawingContextDrawingContextWalker.cs
- ExpressionEditorAttribute.cs
- ArgumentOutOfRangeException.cs
- TypeGeneratedEventArgs.cs
- CounterCreationDataCollection.cs
- ResourceFallbackManager.cs
- TreeViewAutomationPeer.cs
- EntityProviderServices.cs