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
- PropertyGeneratedEventArgs.cs
- BaseTemplateParser.cs
- TrustManagerMoreInformation.cs
- ThemeDictionaryExtension.cs
- DefaultValueConverter.cs
- QilStrConcat.cs
- Environment.cs
- InternalMappingException.cs
- Encoder.cs
- ItemsChangedEventArgs.cs
- StylusCaptureWithinProperty.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- KeyValuePair.cs
- TableLayoutPanelCellPosition.cs
- KeyTime.cs
- TokenFactoryCredential.cs
- FixedNode.cs
- ByteViewer.cs
- InputManager.cs
- Encoder.cs
- XNodeSchemaApplier.cs
- SqlParameterizer.cs
- Mapping.cs
- NewExpression.cs
- EdmTypeAttribute.cs
- LazyTextWriterCreator.cs
- InteropExecutor.cs
- TextEditorTyping.cs
- StaticDataManager.cs
- XpsFilter.cs
- OdbcParameterCollection.cs
- ClaimSet.cs
- BitArray.cs
- NameValueFileSectionHandler.cs
- XmlEncodedRawTextWriter.cs
- TextServicesCompartment.cs
- SimplePropertyEntry.cs
- MruCache.cs
- ObjRef.cs
- LoadedOrUnloadedOperation.cs
- DataControlFieldHeaderCell.cs
- WebDescriptionAttribute.cs
- ContextStaticAttribute.cs
- ServerValidateEventArgs.cs
- peersecuritysettings.cs
- BitmapVisualManager.cs
- ResourceContainerWrapper.cs
- HtmlEncodedRawTextWriter.cs
- ColorConvertedBitmap.cs
- DBSqlParser.cs
- DocComment.cs
- PtsHelper.cs
- XmlConvert.cs
- CompositeDispatchFormatter.cs
- CodeTypeOfExpression.cs
- DelegateBodyWriter.cs
- CacheMemory.cs
- FormatterServicesNoSerializableCheck.cs
- TabControl.cs
- MainMenu.cs
- SchemaTableOptionalColumn.cs
- Converter.cs
- PtsPage.cs
- IssuedTokensHeader.cs
- DataContext.cs
- AppDomainCompilerProxy.cs
- ConfigurationSettings.cs
- TimeSpanSecondsConverter.cs
- SectionRecord.cs
- IdentityModelDictionary.cs
- ScriptingProfileServiceSection.cs
- LineSegment.cs
- EventSourceCreationData.cs
- Transform.cs
- autovalidator.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DbException.cs
- NavigationPropertyEmitter.cs
- Scheduler.cs
- ConversionValidationRule.cs
- NameHandler.cs
- NavigationProperty.cs
- UserValidatedEventArgs.cs
- DependencySource.cs
- ArrayTypeMismatchException.cs
- SecureUICommand.cs
- DropTarget.cs
- JsonSerializer.cs
- InfocardChannelParameter.cs
- ParenExpr.cs
- EncryptedKey.cs
- AuthStoreRoleProvider.cs
- JoinCqlBlock.cs
- ZipIOBlockManager.cs
- WebBaseEventKeyComparer.cs
- CodeParameterDeclarationExpression.cs
- UserControl.cs
- Throw.cs
- EmptyStringExpandableObjectConverter.cs
- Size.cs