Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Design / Glyphs / ConnectionPointGlyph.cs / 1305376 / ConnectionPointGlyph.cs
namespace System.Workflow.ComponentModel.Design { using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; #region Glyphs #region Class ConnectionPointGlyph internal sealed class ConnectionPointGlyph : DesignerGlyph { private ConnectionPoint connectionPoint; internal ConnectionPointGlyph(ConnectionPoint connectionPoint) { this.connectionPoint = connectionPoint; } protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) { if (designer.Activity != null && designer.Activity.Site != null && this.connectionPoint != null) { WorkflowView workflowView = designer.Activity.Site.GetService(typeof(WorkflowView)) as WorkflowView; Rectangle viewPort = (workflowView != null) ? workflowView.ViewPortRectangle : Rectangle.Empty; Rectangle clipRectangle = (designer.ParentDesigner != null) ? designer.ParentDesigner.Bounds : designer.Bounds; ConnectionManager connectionManager = designer.Activity.Site.GetService(typeof(ConnectionManager)) as ConnectionManager; ActivityDesignerPaintEventArgs e = new ActivityDesignerPaintEventArgs(graphics, clipRectangle, viewPort, designer.DesignerTheme); bool drawHilited = (connectionManager != null && this.connectionPoint.Equals(connectionManager.SnappedConnectionPoint)); this.connectionPoint.OnPaint(e, drawHilited); } } public override int Priority { get { return DesignerGlyph.ConnectionPointPriority; } } } #endregion #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
- DisplayNameAttribute.cs
- VSDExceptions.cs
- WebPartMovingEventArgs.cs
- GenericAuthenticationEventArgs.cs
- ModelPropertyDescriptor.cs
- EmissiveMaterial.cs
- TrackingExtract.cs
- TransformConverter.cs
- DataColumn.cs
- BitmapEffectOutputConnector.cs
- ResXResourceReader.cs
- ParallelLoopState.cs
- QueryableDataSourceView.cs
- PropertyDescriptor.cs
- OdbcCommandBuilder.cs
- DoubleAnimationClockResource.cs
- TextFormatterHost.cs
- FillBehavior.cs
- RequestQueue.cs
- SqlMethodCallConverter.cs
- Base64WriteStateInfo.cs
- DataStreamFromComStream.cs
- KnownBoxes.cs
- WebPartsSection.cs
- VisualTarget.cs
- ObjectConverter.cs
- ToolZone.cs
- WindowsListViewGroupHelper.cs
- Speller.cs
- xmlfixedPageInfo.cs
- VisualProxy.cs
- ConsumerConnectionPointCollection.cs
- Partitioner.cs
- ObjectManager.cs
- DataFormat.cs
- SequentialUshortCollection.cs
- ThemeInfoAttribute.cs
- MetadataArtifactLoaderCompositeResource.cs
- LicenseContext.cs
- XmlSchemaSimpleContentExtension.cs
- PrincipalPermission.cs
- BoundPropertyEntry.cs
- EncoderBestFitFallback.cs
- CompilationPass2TaskInternal.cs
- EditorZoneAutoFormat.cs
- TitleStyle.cs
- SQLDateTimeStorage.cs
- StringDictionary.cs
- ParseHttpDate.cs
- XamlTypeMapper.cs
- RichTextBox.cs
- GradientStopCollection.cs
- XmlIgnoreAttribute.cs
- WsatAdminException.cs
- InputScopeConverter.cs
- DataObjectMethodAttribute.cs
- TheQuery.cs
- DES.cs
- BufferModeSettings.cs
- TypeNameConverter.cs
- DesignerActionUI.cs
- FixedHighlight.cs
- VirtualPath.cs
- DictionaryChange.cs
- Model3DGroup.cs
- CorrelationTokenTypeConvertor.cs
- ServiceInstanceProvider.cs
- CommonXSendMessage.cs
- BezierSegment.cs
- SyndicationDeserializer.cs
- WebBrowserProgressChangedEventHandler.cs
- DialogWindow.cs
- DurationConverter.cs
- BinaryOperationBinder.cs
- ConnectionPoolManager.cs
- OraclePermissionAttribute.cs
- EndEvent.cs
- UnsafeNetInfoNativeMethods.cs
- NullRuntimeConfig.cs
- PresentationSource.cs
- Contracts.cs
- PTConverter.cs
- XNodeSchemaApplier.cs
- ModulesEntry.cs
- GradientStopCollection.cs
- FrameDimension.cs
- ReflectionPermission.cs
- LogAppendAsyncResult.cs
- SQLMembershipProvider.cs
- SafeFileMappingHandle.cs
- ObjectTypeMapping.cs
- XPathAxisIterator.cs
- InnerItemCollectionView.cs
- LocatorBase.cs
- Mutex.cs
- Int32Collection.cs
- BatchParser.cs
- ColorAnimationUsingKeyFrames.cs
- ValidateNames.cs
- CalendarButton.cs