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
- UInt16Converter.cs
- TransactedBatchingElement.cs
- StructuralType.cs
- ReadOnlyPropertyMetadata.cs
- ConversionContext.cs
- RectConverter.cs
- CallInfo.cs
- FormatConvertedBitmap.cs
- OdbcConnectionPoolProviderInfo.cs
- DetailsViewRowCollection.cs
- DataBindingHandlerAttribute.cs
- PointLightBase.cs
- figurelengthconverter.cs
- TextEditorCopyPaste.cs
- FixedSOMTextRun.cs
- SqlFileStream.cs
- UrlPropertyAttribute.cs
- CodeDirectiveCollection.cs
- Composition.cs
- GridViewCommandEventArgs.cs
- Preprocessor.cs
- SmiEventSink_DeferedProcessing.cs
- CriticalExceptions.cs
- RayMeshGeometry3DHitTestResult.cs
- Comparer.cs
- SendKeys.cs
- UnmanagedMemoryStreamWrapper.cs
- DefaultValueAttribute.cs
- WindowsGraphicsCacheManager.cs
- EntityChangedParams.cs
- httpapplicationstate.cs
- OrderedDictionary.cs
- SqlDataSourceCache.cs
- CacheModeConverter.cs
- ComponentEditorPage.cs
- TextEndOfLine.cs
- StylusButtonCollection.cs
- Contracts.cs
- MasterPageParser.cs
- Fonts.cs
- DataGridRelationshipRow.cs
- ScaleTransform3D.cs
- ProtocolsConfigurationEntry.cs
- ValidationErrorCollection.cs
- CompositeKey.cs
- ProtocolsConfigurationEntry.cs
- Membership.cs
- MultiView.cs
- InkSerializer.cs
- XmlDictionaryReaderQuotas.cs
- BitmapEffectInputData.cs
- MaxValueConverter.cs
- Policy.cs
- SystemIcmpV4Statistics.cs
- ScriptRegistrationManager.cs
- UIntPtr.cs
- SapiGrammar.cs
- ProfileGroupSettings.cs
- PrintPreviewControl.cs
- QueryPageSettingsEventArgs.cs
- OracleCommand.cs
- DataGridAutomationPeer.cs
- bindurihelper.cs
- Models.cs
- EdmValidator.cs
- X509CertificateCollection.cs
- AutomationPatternInfo.cs
- KnownTypesHelper.cs
- TextServicesDisplayAttribute.cs
- FontUnitConverter.cs
- ListViewItem.cs
- Missing.cs
- KeyedQueue.cs
- UrlMapping.cs
- DataKey.cs
- DecoderReplacementFallback.cs
- MissingMemberException.cs
- LayoutManager.cs
- SQLResource.cs
- XmlSecureResolver.cs
- TemplateControl.cs
- Crypto.cs
- UnsafeNativeMethods.cs
- FacetDescription.cs
- HMACMD5.cs
- Renderer.cs
- TcpWorkerProcess.cs
- Soap12ServerProtocol.cs
- MenuEventArgs.cs
- ContainerParagraph.cs
- XamlNamespaceHelper.cs
- LightweightCodeGenerator.cs
- CharacterBuffer.cs
- FixedSOMLineRanges.cs
- SafeFileMapViewHandle.cs
- IsolatedStorageFilePermission.cs
- BuilderInfo.cs
- DisplayClaim.cs
- SmiEventSink_Default.cs
- ColumnReorderedEventArgs.cs