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
- MessageQueuePermissionEntryCollection.cs
- SqlOuterApplyReducer.cs
- TemplateInstanceAttribute.cs
- WindowProviderWrapper.cs
- CachedPathData.cs
- PresentationTraceSources.cs
- SqlDependencyListener.cs
- DecoratedNameAttribute.cs
- DelimitedListTraceListener.cs
- EntityConnectionStringBuilder.cs
- IsolatedStorageFileStream.cs
- xdrvalidator.cs
- InfoCardClaimCollection.cs
- BindableTemplateBuilder.cs
- Parser.cs
- OSEnvironmentHelper.cs
- SqlWebEventProvider.cs
- EncoderBestFitFallback.cs
- ThreadPool.cs
- ArgIterator.cs
- SqlError.cs
- SerialPinChanges.cs
- Memoizer.cs
- SoapInteropTypes.cs
- CqlLexer.cs
- XPathDocument.cs
- ControlEvent.cs
- ViewgenGatekeeper.cs
- ReceiveActivityDesignerTheme.cs
- FixedPageAutomationPeer.cs
- VisualTreeHelper.cs
- Stopwatch.cs
- Byte.cs
- SecurityUtils.cs
- ControlBuilderAttribute.cs
- tooltip.cs
- FontWeight.cs
- WindowsComboBox.cs
- UnsafeNativeMethods.cs
- OpenFileDialog.cs
- ToolBarOverflowPanel.cs
- HTMLTagNameToTypeMapper.cs
- ChangeInterceptorAttribute.cs
- StateMachineDesignerPaint.cs
- WebPart.cs
- Messages.cs
- WebPartChrome.cs
- PropertyMapper.cs
- ConnectionManagementElementCollection.cs
- DeviceSpecificDesigner.cs
- TrackBarRenderer.cs
- TextTreeUndoUnit.cs
- ProxyElement.cs
- TypePresenter.xaml.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- HashMembershipCondition.cs
- ProtectedProviderSettings.cs
- WebPartHeaderCloseVerb.cs
- NegotiateStream.cs
- UriParserTemplates.cs
- SizeAnimationClockResource.cs
- AttributeQuery.cs
- DesignerMetadata.cs
- PropertyItemInternal.cs
- Scene3D.cs
- CharStorage.cs
- CodeBlockBuilder.cs
- ServiceRoute.cs
- WebPartVerbCollection.cs
- SiteMapProvider.cs
- TemplateContent.cs
- HyperLinkColumn.cs
- TextParagraphView.cs
- FixedHyperLink.cs
- GC.cs
- DescriptionAttribute.cs
- LessThan.cs
- OdbcError.cs
- BitVector32.cs
- WebPageTraceListener.cs
- EdmTypeAttribute.cs
- EntityDataSourceValidationException.cs
- CmsInterop.cs
- ObjectStateManager.cs
- GridPattern.cs
- RecognizedWordUnit.cs
- BooleanToVisibilityConverter.cs
- VisualStateChangedEventArgs.cs
- XmlWhitespace.cs
- NetStream.cs
- SafeFindHandle.cs
- CursorInteropHelper.cs
- HorizontalAlignConverter.cs
- LinkDesigner.cs
- TabPanel.cs
- DesignColumnCollection.cs
- DataGridViewButtonColumn.cs
- ClientTarget.cs
- XmlDownloadManager.cs
- AmbientValueAttribute.cs