Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / StateFinalizationDesigner.cs / 1305376 / StateFinalizationDesigner.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 StateFinalizationDesigner [ActivityDesignerTheme(typeof(StateFinalizationDesignerTheme))] internal sealed class StateFinalizationDesigner : 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 StateFinalizationDesignerTheme internal sealed class StateFinalizationDesignerTheme : CompositeDesignerTheme { public StateFinalizationDesignerTheme(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. 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 StateFinalizationDesigner [ActivityDesignerTheme(typeof(StateFinalizationDesignerTheme))] internal sealed class StateFinalizationDesigner : 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, ReadOnlyCollection activitiesToInsert) { foreach (Activity activity in activitiesToInsert) { if (activity is IEventActivity) return false; } return base.CanInsertActivities(insertLocation, activitiesToInsert); } #endregion } #endregion #region StateFinalizationDesignerTheme internal sealed class StateFinalizationDesignerTheme : CompositeDesignerTheme { public StateFinalizationDesignerTheme(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
- WebPartZoneAutoFormat.cs
- MembershipSection.cs
- TextEditorThreadLocalStore.cs
- Timer.cs
- FixedElement.cs
- SafeBitVector32.cs
- SvcMapFileLoader.cs
- followingsibling.cs
- ChameleonKey.cs
- WebReference.cs
- XmlSchemaComplexContentRestriction.cs
- RawKeyboardInputReport.cs
- SendKeys.cs
- QueryableDataSource.cs
- SqlDataSourceCache.cs
- Latin1Encoding.cs
- ItemContainerGenerator.cs
- ColumnBinding.cs
- EdmSchemaError.cs
- FrameworkElementFactoryMarkupObject.cs
- X509Certificate.cs
- Processor.cs
- PropertyTab.cs
- WindowCollection.cs
- XamlStyleSerializer.cs
- RelativeSource.cs
- InputLanguageSource.cs
- LinearKeyFrames.cs
- ToggleButtonAutomationPeer.cs
- MessageDecoder.cs
- Helper.cs
- BindingCollection.cs
- KeySplineConverter.cs
- ServiceContractViewControl.Designer.cs
- BitmapDownload.cs
- reliableinputsessionchannel.cs
- FileDialog.cs
- FilterQuery.cs
- ReadWriteObjectLock.cs
- DataGridViewIntLinkedList.cs
- ResourceSet.cs
- FrameworkElementFactory.cs
- ButtonColumn.cs
- SerializationObjectManager.cs
- ToolboxBitmapAttribute.cs
- DataBoundControl.cs
- EmptyEnumerable.cs
- AvtEvent.cs
- DbTypeMap.cs
- RtfControls.cs
- BinHexEncoder.cs
- TypeUtil.cs
- MappedMetaModel.cs
- IdentityHolder.cs
- SendingRequestEventArgs.cs
- TransformationRules.cs
- CompositeFontInfo.cs
- DataReceivedEventArgs.cs
- PersonalizationDictionary.cs
- DataGridItemCollection.cs
- RelationshipConstraintValidator.cs
- DispatcherExceptionFilterEventArgs.cs
- SqlDataSourceCommandEventArgs.cs
- CodeTryCatchFinallyStatement.cs
- GregorianCalendar.cs
- MonitorWrapper.cs
- DoubleCollectionConverter.cs
- Error.cs
- TranslateTransform.cs
- SchemaSetCompiler.cs
- _UriTypeConverter.cs
- LocalizeDesigner.cs
- TableLayoutCellPaintEventArgs.cs
- StringCollection.cs
- ConstNode.cs
- ReadOnlyCollectionBase.cs
- XsltInput.cs
- AppliedDeviceFiltersEditor.cs
- ToolStripDropDown.cs
- EventHandlersDesigner.cs
- SecurityHelper.cs
- ExtensionMethods.cs
- InputBinding.cs
- SmiContext.cs
- TableAdapterManagerMethodGenerator.cs
- RealProxy.cs
- DataGridViewTextBoxColumn.cs
- DesignSurfaceEvent.cs
- ChangeConflicts.cs
- WindowShowOrOpenTracker.cs
- RowCache.cs
- Aggregates.cs
- _SSPIWrapper.cs
- ExternalFile.cs
- ToolBarTray.cs
- PackageRelationshipSelector.cs
- SpeechSeg.cs
- CryptoConfig.cs
- ImportCatalogPart.cs
- Int64Converter.cs