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
- DataGridSortCommandEventArgs.cs
- SessionStateSection.cs
- SystemIcmpV4Statistics.cs
- FunctionNode.cs
- CollectionViewProxy.cs
- XmlFormatExtensionPrefixAttribute.cs
- PageCache.cs
- SchemaManager.cs
- SerializerDescriptor.cs
- SignatureDescription.cs
- MimeMultiPart.cs
- WindowPatternIdentifiers.cs
- Brush.cs
- XmlNamedNodeMap.cs
- OdbcStatementHandle.cs
- BuildProviderCollection.cs
- ListBoxDesigner.cs
- ErrorFormatterPage.cs
- PowerModeChangedEventArgs.cs
- ToolStripContainer.cs
- Crc32.cs
- RawKeyboardInputReport.cs
- DataSourceControlBuilder.cs
- EmbeddedMailObject.cs
- DataControlFieldTypeEditor.cs
- ProfileBuildProvider.cs
- DesignerProperties.cs
- GAC.cs
- XmlILModule.cs
- ProfilePropertySettings.cs
- XmlSchemas.cs
- Serializer.cs
- AssemblyName.cs
- ModifiableIteratorCollection.cs
- AuthenticationManager.cs
- DependencyPropertyAttribute.cs
- SpeakProgressEventArgs.cs
- MessageDecoder.cs
- PropertyNames.cs
- ActivityTypeCodeDomSerializer.cs
- Rotation3DAnimation.cs
- DesignOnlyAttribute.cs
- XmlRootAttribute.cs
- ComEventsHelper.cs
- CompressionTracing.cs
- TextParaClient.cs
- wgx_commands.cs
- GotoExpression.cs
- Mappings.cs
- IndicFontClient.cs
- DependencyPropertyValueSerializer.cs
- RichTextBox.cs
- SafeNativeMethods.cs
- ImportCatalogPart.cs
- WebContext.cs
- RequestCache.cs
- PageBorderless.cs
- DefaultBinder.cs
- clipboard.cs
- ProfileSettingsCollection.cs
- ColorConverter.cs
- LazyTextWriterCreator.cs
- TextDecorations.cs
- InvokeMethodActivityDesigner.cs
- WinInetCache.cs
- StorageMappingItemCollection.cs
- FactoryGenerator.cs
- SoapProtocolImporter.cs
- FileLoadException.cs
- UTF8Encoding.cs
- CopyAction.cs
- ProfileManager.cs
- HtmlInputReset.cs
- PeerTransportListenAddressValidatorAttribute.cs
- SQLSingleStorage.cs
- QueryAsyncResult.cs
- TextContainerChangeEventArgs.cs
- ExtractedStateEntry.cs
- TextWriterEngine.cs
- XmlHierarchicalEnumerable.cs
- InheritanceRules.cs
- PseudoWebRequest.cs
- SEHException.cs
- BinaryNode.cs
- DataServiceQueryOfT.cs
- ComponentResourceManager.cs
- WindowsHyperlink.cs
- WinFormsSecurity.cs
- SqlTypeConverter.cs
- MessagePropertyVariants.cs
- ApplicationTrust.cs
- PreviewControlDesigner.cs
- XPathDocumentIterator.cs
- ImageMetadata.cs
- Typeface.cs
- ComponentSerializationService.cs
- HttpWebResponse.cs
- Convert.cs
- Span.cs
- CustomErrorsSection.cs