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
- DesignerOptionService.cs
- NameHandler.cs
- TableItemStyle.cs
- ObjectReferenceStack.cs
- SqlOuterApplyReducer.cs
- BindingWorker.cs
- Point.cs
- HttpListenerContext.cs
- cookiecontainer.cs
- WindowsTab.cs
- ShadowGlyph.cs
- InkCanvasInnerCanvas.cs
- ResumeStoryboard.cs
- DataServiceKeyAttribute.cs
- XmlMembersMapping.cs
- JsonServiceDocumentSerializer.cs
- ProgramPublisher.cs
- DragDropManager.cs
- X509CertificateValidationMode.cs
- SafeSystemMetrics.cs
- DrawToolTipEventArgs.cs
- CommonXSendMessage.cs
- MonthChangedEventArgs.cs
- DbConnectionPool.cs
- XmlSortKey.cs
- CopyEncoder.cs
- ResourcePermissionBaseEntry.cs
- ToolStripItem.cs
- CreateUserWizardStep.cs
- xmlsaver.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- Comparer.cs
- LineGeometry.cs
- WindowsScrollBarBits.cs
- BaseDataList.cs
- NetStream.cs
- UTF7Encoding.cs
- WebPartCatalogAddVerb.cs
- HorizontalAlignConverter.cs
- Pkcs7Signer.cs
- LockCookie.cs
- XmlValidatingReaderImpl.cs
- CSharpCodeProvider.cs
- UmAlQuraCalendar.cs
- FontStyleConverter.cs
- SqlStatistics.cs
- ImportOptions.cs
- PageParser.cs
- ObjectPersistData.cs
- Bold.cs
- TiffBitmapEncoder.cs
- MasterPageParser.cs
- ObjectDataSourceSelectingEventArgs.cs
- DiscreteKeyFrames.cs
- panel.cs
- UTF7Encoding.cs
- ContentDisposition.cs
- ProbeDuplex11AsyncResult.cs
- ArcSegment.cs
- StringExpressionSet.cs
- KeySpline.cs
- BuildResultCache.cs
- MessageDecoder.cs
- EntityCommand.cs
- ToolstripProfessionalRenderer.cs
- MapPathBasedVirtualPathProvider.cs
- CompilerCollection.cs
- PKCS1MaskGenerationMethod.cs
- StatusBarPanel.cs
- SQLDoubleStorage.cs
- CompiledXpathExpr.cs
- DbMetaDataCollectionNames.cs
- DiscoveryEndpoint.cs
- NameService.cs
- ThreadExceptionEvent.cs
- Action.cs
- WebDisplayNameAttribute.cs
- CurrentTimeZone.cs
- TypeUsage.cs
- MinMaxParagraphWidth.cs
- DateTimeValueSerializerContext.cs
- HWStack.cs
- XmlQueryType.cs
- ControlUtil.cs
- ImageSource.cs
- ContextQuery.cs
- UnsafeNativeMethods.cs
- wgx_exports.cs
- EncodingNLS.cs
- EntityTemplateUserControl.cs
- CompositionAdorner.cs
- BitmapCache.cs
- PopupRootAutomationPeer.cs
- XmlSerializerNamespaces.cs
- Socket.cs
- DelegateInArgument.cs
- XamlTemplateSerializer.cs
- XmlWrappingReader.cs
- XmlEntityReference.cs
- OdbcConnection.cs