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
- SplitterPanel.cs
- StandardBindingReliableSessionElement.cs
- DataGridViewRowPrePaintEventArgs.cs
- externdll.cs
- EndPoint.cs
- TimeoutHelper.cs
- RequestCacheValidator.cs
- ForeignConstraint.cs
- EventManager.cs
- Mapping.cs
- XmlCDATASection.cs
- DataGridViewComboBoxEditingControl.cs
- ResourceAttributes.cs
- OutputCacheSettingsSection.cs
- TickBar.cs
- IPAddressCollection.cs
- EdmPropertyAttribute.cs
- ListViewInsertionMark.cs
- WebPermission.cs
- SqlExpressionNullability.cs
- TypeUtil.cs
- NavigationProperty.cs
- ProfileModule.cs
- AnnotationMap.cs
- KeyGestureValueSerializer.cs
- localization.cs
- SatelliteContractVersionAttribute.cs
- ParseElementCollection.cs
- KeyGestureConverter.cs
- ToolBarOverflowPanel.cs
- UIElementIsland.cs
- DateTimeUtil.cs
- DataGridViewCellPaintingEventArgs.cs
- StorageTypeMapping.cs
- WebAdminConfigurationHelper.cs
- XmlLinkedNode.cs
- DefaultValueTypeConverter.cs
- ControlCollection.cs
- InvalidContentTypeException.cs
- ADMembershipUser.cs
- AlphabetConverter.cs
- DocumentGridContextMenu.cs
- TemplateBindingExpressionConverter.cs
- Hash.cs
- GeneratedCodeAttribute.cs
- TabletDevice.cs
- XmlSchemaComplexType.cs
- XmlQueryType.cs
- CodeExpressionStatement.cs
- ObjectRef.cs
- InkPresenterAutomationPeer.cs
- SafeReversePInvokeHandle.cs
- EntityDataSourceChangingEventArgs.cs
- ConfigDefinitionUpdates.cs
- CompilationUnit.cs
- FontResourceCache.cs
- MailDefinition.cs
- DurableInstanceProvider.cs
- WinFormsSpinner.cs
- DependencyPropertyDescriptor.cs
- DocumentOrderQuery.cs
- Rect3D.cs
- GridViewUpdatedEventArgs.cs
- ComponentCache.cs
- XPathException.cs
- Parser.cs
- SpecularMaterial.cs
- ConfigXmlSignificantWhitespace.cs
- MouseGestureConverter.cs
- DefaultDiscoveryServiceExtension.cs
- UnauthorizedAccessException.cs
- MembershipSection.cs
- HtmlFormParameterWriter.cs
- XmlSchemaAnnotated.cs
- XNodeValidator.cs
- LineVisual.cs
- TypeUtil.cs
- ItemCheckEvent.cs
- PathFigure.cs
- Helpers.cs
- __ComObject.cs
- RequestDescription.cs
- TextEditorContextMenu.cs
- SecurityPolicySection.cs
- PnrpPermission.cs
- AmbiguousMatchException.cs
- PreservationFileReader.cs
- Single.cs
- HtmlTextBoxAdapter.cs
- BamlMapTable.cs
- HyperLinkField.cs
- FieldAccessException.cs
- ExecutedRoutedEventArgs.cs
- DodSequenceMerge.cs
- StrongName.cs
- TdsParserHelperClasses.cs
- RuleSettingsCollection.cs
- QueryContext.cs
- UserPersonalizationStateInfo.cs
- ObjectNavigationPropertyMapping.cs