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
- ServicePoint.cs
- CqlErrorHelper.cs
- HtmlInputRadioButton.cs
- CloudCollection.cs
- WMICapabilities.cs
- ProcessHost.cs
- ValidatedControlConverter.cs
- EntityUtil.cs
- BoolExpressionVisitors.cs
- StylusPoint.cs
- Sql8ConformanceChecker.cs
- DispatcherExceptionEventArgs.cs
- RemoteWebConfigurationHost.cs
- HttpCookiesSection.cs
- PermissionSet.cs
- _ConnectionGroup.cs
- WebPartDisplayModeCancelEventArgs.cs
- TerminateDesigner.cs
- PrimarySelectionGlyph.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- PointConverter.cs
- Type.cs
- UpdatePanelTrigger.cs
- DebugHandleTracker.cs
- CommandExpr.cs
- SpellCheck.cs
- DeflateStream.cs
- Geometry3D.cs
- DataView.cs
- TypeSystem.cs
- EntityDataSourceView.cs
- SqlNamer.cs
- DecimalKeyFrameCollection.cs
- NetMsmqBindingCollectionElement.cs
- SiteMembershipCondition.cs
- ApplicationCommands.cs
- XmlNodeReader.cs
- DefaultMemberAttribute.cs
- GeometryHitTestParameters.cs
- DataColumnChangeEvent.cs
- sqlnorm.cs
- VerbConverter.cs
- ListControlConvertEventArgs.cs
- ProcessInfo.cs
- BooleanFacetDescriptionElement.cs
- Console.cs
- SimpleTypeResolver.cs
- ObjectCloneHelper.cs
- _PooledStream.cs
- ResourceReferenceExpression.cs
- TargetParameterCountException.cs
- TableItemStyle.cs
- ServiceManager.cs
- SmiEventSink.cs
- StateItem.cs
- TemplateBindingExtensionConverter.cs
- Underline.cs
- WebBrowserNavigatingEventHandler.cs
- PageRequestManager.cs
- OletxCommittableTransaction.cs
- Model3DGroup.cs
- TokenBasedSet.cs
- SpellCheck.cs
- DataKeyArray.cs
- MimeTypeAttribute.cs
- CompilerCollection.cs
- AppSettingsExpressionBuilder.cs
- COM2ICategorizePropertiesHandler.cs
- PresentationUIStyleResources.cs
- Timeline.cs
- ViewStateModeByIdAttribute.cs
- CodeDelegateInvokeExpression.cs
- OutputCache.cs
- MULTI_QI.cs
- __ConsoleStream.cs
- ListControlConvertEventArgs.cs
- ContentElement.cs
- SimpleWebHandlerParser.cs
- PeerDuplexChannelListener.cs
- OleDbWrapper.cs
- XmlCDATASection.cs
- SecurityTokenAttachmentMode.cs
- HttpStreams.cs
- TypedTableGenerator.cs
- ThrowHelper.cs
- LineSegment.cs
- SafeNativeMethods.cs
- ComponentChangedEvent.cs
- HtmlInputRadioButton.cs
- HtmlInputImage.cs
- AnnotationHelper.cs
- ListInitExpression.cs
- FixedSOMFixedBlock.cs
- ResizeBehavior.cs
- XmlAttributeOverrides.cs
- RowToFieldTransformer.cs
- ExpressionCopier.cs
- XmlSchemaExternal.cs
- ChangeTracker.cs
- Visitors.cs