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
- CodeIdentifiers.cs
- GenericTextProperties.cs
- AppSettingsExpressionBuilder.cs
- activationcontext.cs
- DragAssistanceManager.cs
- SourceItem.cs
- PackageDigitalSignatureManager.cs
- VisualCollection.cs
- ChtmlTextWriter.cs
- BoundConstants.cs
- CanonicalFontFamilyReference.cs
- StaticSiteMapProvider.cs
- ProcessModelSection.cs
- ListItemCollection.cs
- HwndProxyElementProvider.cs
- ContainerAction.cs
- ContextMenuService.cs
- IisTraceListener.cs
- TransactionManager.cs
- TimeSpanStorage.cs
- Expression.DebuggerProxy.cs
- WizardStepCollectionEditor.cs
- XmlWhitespace.cs
- SimpleFileLog.cs
- VisualBasicHelper.cs
- SmtpReplyReaderFactory.cs
- Run.cs
- MTConfigUtil.cs
- RankException.cs
- WriteableBitmap.cs
- BamlCollectionHolder.cs
- xdrvalidator.cs
- RequestCachingSection.cs
- XLinq.cs
- NodeFunctions.cs
- DrawingImage.cs
- HitTestDrawingContextWalker.cs
- PersonalizationAdministration.cs
- AssemblyEvidenceFactory.cs
- BasicExpandProvider.cs
- PointLight.cs
- Aggregates.cs
- InlineObject.cs
- ListCollectionView.cs
- TypeCacheManager.cs
- ToolStripLocationCancelEventArgs.cs
- UnauthorizedWebPart.cs
- TextChange.cs
- MediaPlayer.cs
- StorageEntityContainerMapping.cs
- TextBox.cs
- ButtonField.cs
- FieldToken.cs
- BinaryFormatter.cs
- CodeTypeReferenceCollection.cs
- XmlSchemaAttribute.cs
- DirectionalLight.cs
- EpmTargetTree.cs
- DispatchChannelSink.cs
- GroupBoxRenderer.cs
- TreeViewImageIndexConverter.cs
- TextServicesHost.cs
- Viewport3DVisual.cs
- FileSystemEventArgs.cs
- Encoder.cs
- StringDictionaryCodeDomSerializer.cs
- DynamicRouteExpression.cs
- FrameworkRichTextComposition.cs
- ObjectMemberMapping.cs
- TimerExtension.cs
- MediaPlayer.cs
- DataGridViewCellValidatingEventArgs.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ElementNotAvailableException.cs
- SafeCloseHandleCritical.cs
- regiisutil.cs
- PropertyMappingExceptionEventArgs.cs
- ConstraintStruct.cs
- MsmqIntegrationSecurity.cs
- PositiveTimeSpanValidator.cs
- InputBindingCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- Pts.cs
- RenderingEventArgs.cs
- DescendantBaseQuery.cs
- LogLogRecord.cs
- UriSectionReader.cs
- CodeCommentStatement.cs
- CLRBindingWorker.cs
- LineMetrics.cs
- WebException.cs
- nulltextcontainer.cs
- BinHexDecoder.cs
- CriticalHandle.cs
- ProcessModule.cs
- HandlerBase.cs
- XmlIterators.cs
- DockPanel.cs
- TextOnlyOutput.cs
- SamlSecurityToken.cs