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
- MimeWriter.cs
- StorageMappingFragment.cs
- TreePrinter.cs
- Color.cs
- SystemDropShadowChrome.cs
- IDictionary.cs
- TreeViewItemAutomationPeer.cs
- EnumBuilder.cs
- PasswordRecoveryAutoFormat.cs
- ScopelessEnumAttribute.cs
- ToolStripItem.cs
- SerializationObjectManager.cs
- _ProxyChain.cs
- CompressEmulationStream.cs
- PropertyValueChangedEvent.cs
- Constants.cs
- COM2ICategorizePropertiesHandler.cs
- OrderPreservingPipeliningMergeHelper.cs
- DataSetMappper.cs
- Brush.cs
- TimeSpanConverter.cs
- StringConcat.cs
- NegotiationTokenAuthenticatorStateCache.cs
- Int32Collection.cs
- RuntimeArgumentHandle.cs
- Imaging.cs
- SendAgentStatusRequest.cs
- ReadingWritingEntityEventArgs.cs
- TreeNode.cs
- LinkClickEvent.cs
- SmtpTransport.cs
- UnsafeNativeMethods.cs
- HttpAsyncResult.cs
- CommandManager.cs
- TypeInitializationException.cs
- SinglePhaseEnlistment.cs
- XmlSchemaAnyAttribute.cs
- Ipv6Element.cs
- PolicyLevel.cs
- BuildProviderCollection.cs
- InstanceData.cs
- ImmutableObjectAttribute.cs
- ChooseAction.cs
- OleDbTransaction.cs
- HtmlContainerControl.cs
- ToolboxItemSnapLineBehavior.cs
- HwndTarget.cs
- SystemWebSectionGroup.cs
- ObjectKeyFrameCollection.cs
- ContentWrapperAttribute.cs
- LinqDataSourceDeleteEventArgs.cs
- RelationshipConverter.cs
- StorageAssociationTypeMapping.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- HtmlMeta.cs
- Timer.cs
- SignedInfo.cs
- GridViewDeleteEventArgs.cs
- WebPartConnectionsConnectVerb.cs
- Cursors.cs
- WorkflowWebService.cs
- SplitterEvent.cs
- ListSourceHelper.cs
- NavigatorInput.cs
- Substitution.cs
- FtpCachePolicyElement.cs
- MessageVersionConverter.cs
- HelloOperationAsyncResult.cs
- OlePropertyStructs.cs
- AffineTransform3D.cs
- xmlfixedPageInfo.cs
- ConnectAlgorithms.cs
- ReachPageContentSerializer.cs
- DeflateStream.cs
- SchemaEntity.cs
- WpfSharedXamlSchemaContext.cs
- DataTablePropertyDescriptor.cs
- XPathScanner.cs
- SchemaImporterExtensionElement.cs
- DataGridViewCellCollection.cs
- ComplexLine.cs
- BrowserCapabilitiesFactory.cs
- UrlMappingsModule.cs
- TreeChangeInfo.cs
- ReadOnlyDataSourceView.cs
- ViewGenerator.cs
- RecognizerStateChangedEventArgs.cs
- SaveFileDialog.cs
- MD5CryptoServiceProvider.cs
- HMACSHA1.cs
- WebBrowsableAttribute.cs
- ResourceAssociationSetEnd.cs
- GridSplitterAutomationPeer.cs
- HttpContext.cs
- EncoderReplacementFallback.cs
- HideDisabledControlAdapter.cs
- DbReferenceCollection.cs
- SingleObjectCollection.cs
- RoutedEvent.cs
- ServerTooBusyException.cs