Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / StateInitializationDesigner.cs / 1305376 / StateInitializationDesigner.cs
namespace System.Workflow.Activities { using System; using System.Text; using System.Reflection; using System.Collections; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Drawing.Drawing2D; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Collections.ObjectModel; #region StateInitializationDesigner [ActivityDesignerTheme(typeof(StateInitializationDesignerTheme))] internal sealed class StateInitializationDesigner : System.Workflow.Activities.SequenceDesigner { #region Properties and Methods public override bool CanBeParentedTo(CompositeActivityDesigner parentActivityDesigner) { if (parentActivityDesigner == null) throw new ArgumentNullException("parentActivityDesigner"); if (!(parentActivityDesigner.Activity is StateActivity)) return false; return base.CanBeParentedTo(parentActivityDesigner); } protected override void DoDefaultAction() { base.DoDefaultAction(); EnsureVisible(); } public override bool CanExpandCollapse { get { return false; } } public override bool CanInsertActivities(HitTestInfo insertLocation, ReadOnlyCollectionactivitiesToInsert) { foreach (Activity activity in activitiesToInsert) { if (activity is IEventActivity) return false; } return base.CanInsertActivities(insertLocation, activitiesToInsert); } #endregion } #endregion #region StateInitializationDesignerTheme internal sealed class StateInitializationDesignerTheme : CompositeDesignerTheme { public StateInitializationDesignerTheme(WorkflowTheme theme) : base(theme) { this.ShowDropShadow = false; this.ConnectorStartCap = LineAnchor.None; this.ConnectorEndCap = LineAnchor.ArrowAnchor; this.ForeColor = Color.FromArgb(0xFF, 0x80, 0x00, 0x00); this.BorderColor = Color.FromArgb(0xFF, 0xE0, 0xE0, 0xE0); this.BorderStyle = DashStyle.Dash; this.BackColorStart = Color.FromArgb(0x00, 0x00, 0x00, 0x00); this.BackColorEnd = Color.FromArgb(0x00, 0x00, 0x00, 0x00); } } #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
- WeakEventManager.cs
- DbConnectionStringBuilder.cs
- ImageSourceConverter.cs
- isolationinterop.cs
- UnsafeNativeMethods.cs
- HtmlImage.cs
- Timer.cs
- XmlNodeList.cs
- FixUpCollection.cs
- VisualProxy.cs
- PasswordPropertyTextAttribute.cs
- PreDigestedSignedInfo.cs
- Empty.cs
- DataGridRowAutomationPeer.cs
- HitTestWithGeometryDrawingContextWalker.cs
- CollectionViewGroupRoot.cs
- NamespaceMapping.cs
- HashCodeCombiner.cs
- SelectionListDesigner.cs
- remotingproxy.cs
- XmlWriter.cs
- Formatter.cs
- RestHandler.cs
- CodeAttributeDeclaration.cs
- OpCopier.cs
- PropertyEmitterBase.cs
- Compress.cs
- DecryptedHeader.cs
- ConfigurationException.cs
- PlaceHolder.cs
- WorkflowApplicationException.cs
- ContentFileHelper.cs
- TextBox.cs
- CellConstant.cs
- ProcessModelSection.cs
- ServicesUtilities.cs
- CallContext.cs
- OleDbMetaDataFactory.cs
- TreeViewItemAutomationPeer.cs
- PostBackOptions.cs
- CacheChildrenQuery.cs
- DuplicateWaitObjectException.cs
- bidPrivateBase.cs
- DefaultProxySection.cs
- FileNameEditor.cs
- PtsHost.cs
- AddInAttribute.cs
- GiveFeedbackEventArgs.cs
- Exceptions.cs
- TableLayoutRowStyleCollection.cs
- XmlComplianceUtil.cs
- UnknownWrapper.cs
- AnnotationDocumentPaginator.cs
- RoutedEventValueSerializer.cs
- StylusEventArgs.cs
- TypeConverterAttribute.cs
- UTF32Encoding.cs
- FrameworkReadOnlyPropertyMetadata.cs
- LinkedResource.cs
- WorkerRequest.cs
- DataServiceProviderMethods.cs
- UIElementParaClient.cs
- Utils.cs
- TimelineGroup.cs
- SqlClientMetaDataCollectionNames.cs
- versioninfo.cs
- SelectedDatesCollection.cs
- DtdParser.cs
- RoutedPropertyChangedEventArgs.cs
- SmiContextFactory.cs
- MessageDesigner.cs
- Collection.cs
- EventLogPermissionEntryCollection.cs
- Color.cs
- MeasurementDCInfo.cs
- IgnorePropertiesAttribute.cs
- HtmlPanelAdapter.cs
- LocatorPart.cs
- ContentPropertyAttribute.cs
- ProcessHostMapPath.cs
- LogEntryHeaderv1Deserializer.cs
- Transform.cs
- MetaChildrenColumn.cs
- Util.cs
- CodeArgumentReferenceExpression.cs
- HtmlImage.cs
- StylusShape.cs
- ByteStream.cs
- ValidationErrorInfo.cs
- SqlMethodAttribute.cs
- InstallerTypeAttribute.cs
- DataKeyArray.cs
- PhotoPrintingIntent.cs
- TextAutomationPeer.cs
- Substitution.cs
- AutomationPropertyInfo.cs
- DBSqlParserColumn.cs
- _Rfc2616CacheValidators.cs
- TraceSection.cs
- ModelTypeConverter.cs