Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Clause.cs
- LockCookie.cs
- ConnectionPoolManager.cs
- SimpleTypeResolver.cs
- EntityClientCacheEntry.cs
- WebPartConnection.cs
- XmlRawWriterWrapper.cs
- CalendarData.cs
- XmlEventCache.cs
- EditorZoneBase.cs
- FigureHelper.cs
- SelectedCellsChangedEventArgs.cs
- Inline.cs
- QilInvokeLateBound.cs
- StatusBarDrawItemEvent.cs
- TreeNodeSelectionProcessor.cs
- KoreanLunisolarCalendar.cs
- XPathNodeHelper.cs
- WorkflowViewStateService.cs
- CanExecuteRoutedEventArgs.cs
- TabletDeviceInfo.cs
- GridViewUpdatedEventArgs.cs
- HttpInputStream.cs
- StateManager.cs
- RootBrowserWindowProxy.cs
- DynamicILGenerator.cs
- _NegotiateClient.cs
- XmlWrappingWriter.cs
- ProxyHelper.cs
- WindowsIdentity.cs
- XmlNotation.cs
- FocusTracker.cs
- XmlSchemaInferenceException.cs
- DataException.cs
- ListControl.cs
- HyperLinkStyle.cs
- _HelperAsyncResults.cs
- HyperLink.cs
- HtmlInputText.cs
- PropertyRef.cs
- RegexCompilationInfo.cs
- OletxVolatileEnlistment.cs
- PasswordTextContainer.cs
- SecurityDocument.cs
- NodeLabelEditEvent.cs
- DynamicActionMessageFilter.cs
- SerializableAttribute.cs
- SchemaHelper.cs
- SqlUtils.cs
- BinaryNode.cs
- RequestCacheManager.cs
- RecordBuilder.cs
- mongolianshape.cs
- CompositionTarget.cs
- ReaderContextStackData.cs
- MetadataWorkspace.cs
- DrawingImage.cs
- ProxyHwnd.cs
- BooleanAnimationUsingKeyFrames.cs
- FrameAutomationPeer.cs
- XmlFileEditor.cs
- InstanceData.cs
- MatrixTransform3D.cs
- FormCollection.cs
- DataGridTextBoxColumn.cs
- RequestCachePolicyConverter.cs
- SystemPens.cs
- MessageBox.cs
- GenericAuthenticationEventArgs.cs
- CodeIdentifier.cs
- StringWriter.cs
- StrokeCollectionConverter.cs
- CodeDelegateInvokeExpression.cs
- Formatter.cs
- mda.cs
- ApplicationCommands.cs
- WCFModelStrings.Designer.cs
- IPPacketInformation.cs
- GeneralTransform3DTo2DTo3D.cs
- DrawItemEvent.cs
- HashCodeCombiner.cs
- SecurityPolicySection.cs
- OleDbWrapper.cs
- FileDialog_Vista_Interop.cs
- COM2ComponentEditor.cs
- StrongName.cs
- ServiceModelConfigurationSectionCollection.cs
- DataGridParentRows.cs
- OracleRowUpdatedEventArgs.cs
- BitmapDownload.cs
- CustomSignedXml.cs
- LogArchiveSnapshot.cs
- ProfessionalColorTable.cs
- SplashScreenNativeMethods.cs
- XPathNode.cs
- SelectionUIService.cs
- Hash.cs
- StyleSelector.cs
- SplitContainer.cs
- BackgroundWorker.cs