Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Design / Glyphs / ConnectorDragDropGlyph.cs / 1305376 / ConnectorDragDropGlyph.cs
namespace System.Workflow.ComponentModel.Design { using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; #region Glyphs #region Class ConnectorDragDropGlyph internal sealed class ConnectorDragDropGlyph : DesignerGlyph { private int connectorIndex = 0; private Point glyphPoint = Point.Empty; public ConnectorDragDropGlyph(int connectorIndex, Point connectorCenter) { this.connectorIndex = connectorIndex; AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; this.glyphPoint = new Point(connectorCenter.X - ambientTheme.DropIndicatorSize.Width / 2, connectorCenter.Y - ambientTheme.DropIndicatorSize.Height / 2); } public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { return new Rectangle(this.glyphPoint, WorkflowTheme.CurrentTheme.AmbientTheme.DropIndicatorSize); } protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) { ActivityDesignerPaint.DrawImage(graphics, AmbientTheme.DropIndicatorImage, GetBounds(designer, activated), DesignerContentAlignment.Fill); } public override int Priority { get { return DesignerGlyph.ConnectorDragDropPriority; } } } #endregion #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.ComponentModel.Design { using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; #region Glyphs #region Class ConnectorDragDropGlyph internal sealed class ConnectorDragDropGlyph : DesignerGlyph { private int connectorIndex = 0; private Point glyphPoint = Point.Empty; public ConnectorDragDropGlyph(int connectorIndex, Point connectorCenter) { this.connectorIndex = connectorIndex; AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; this.glyphPoint = new Point(connectorCenter.X - ambientTheme.DropIndicatorSize.Width / 2, connectorCenter.Y - ambientTheme.DropIndicatorSize.Height / 2); } public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { return new Rectangle(this.glyphPoint, WorkflowTheme.CurrentTheme.AmbientTheme.DropIndicatorSize); } protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) { ActivityDesignerPaint.DrawImage(graphics, AmbientTheme.DropIndicatorImage, GetBounds(designer, activated), DesignerContentAlignment.Fill); } public override int Priority { get { return DesignerGlyph.ConnectorDragDropPriority; } } } #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
- CreateUserWizardStep.cs
- ReferencedAssembly.cs
- EntityAdapter.cs
- sqlser.cs
- DataObjectCopyingEventArgs.cs
- Facet.cs
- DataColumnChangeEvent.cs
- SortableBindingList.cs
- AttachedPropertyMethodSelector.cs
- XmlUtil.cs
- SmtpClient.cs
- WebHeaderCollection.cs
- XamlTypeMapper.cs
- CodePageUtils.cs
- CopyNamespacesAction.cs
- BamlRecordReader.cs
- ServiceReflector.cs
- BindValidationContext.cs
- SystemParameters.cs
- FacetValueContainer.cs
- errorpatternmatcher.cs
- DrawingVisualDrawingContext.cs
- GridErrorDlg.cs
- OLEDB_Util.cs
- IDQuery.cs
- CustomWebEventKey.cs
- sqlmetadatafactory.cs
- StorageBasedPackageProperties.cs
- PkcsUtils.cs
- IIS7WorkerRequest.cs
- XmlNamespaceMapping.cs
- XmlSecureResolver.cs
- BindingContext.cs
- BrowserCapabilitiesCodeGenerator.cs
- SolidColorBrush.cs
- SoapInteropTypes.cs
- SessionStateModule.cs
- Expander.cs
- DataPager.cs
- StrokeNodeEnumerator.cs
- StylusPlugInCollection.cs
- CompiledQueryCacheEntry.cs
- TableCellAutomationPeer.cs
- ReadOnlyCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- AnimationClock.cs
- XmlSchemaObjectTable.cs
- RectangleGeometry.cs
- OSEnvironmentHelper.cs
- Model3D.cs
- TraceUtility.cs
- QuaternionRotation3D.cs
- COM2Enum.cs
- AliasedExpr.cs
- ThrowHelper.cs
- Range.cs
- TypeConverterHelper.cs
- ServiceNotStartedException.cs
- ConfigurationSectionCollection.cs
- ShortcutKeysEditor.cs
- hresults.cs
- RC2.cs
- ExcCanonicalXml.cs
- GetMemberBinder.cs
- EditorPart.cs
- XamlFilter.cs
- RecognizedAudio.cs
- MetadataSerializer.cs
- System.Data_BID.cs
- MetafileHeader.cs
- wmiprovider.cs
- EventEntry.cs
- FileStream.cs
- SchemaImporter.cs
- SqlFactory.cs
- ColorBlend.cs
- FileClassifier.cs
- ipaddressinformationcollection.cs
- CurrencyManager.cs
- _AutoWebProxyScriptWrapper.cs
- SystemNetworkInterface.cs
- NodeFunctions.cs
- NavigationEventArgs.cs
- Int32CollectionConverter.cs
- SqlFormatter.cs
- SelectorItemAutomationPeer.cs
- TdsEnums.cs
- DbProviderFactoriesConfigurationHandler.cs
- RtfControlWordInfo.cs
- Documentation.cs
- CollectionChangeEventArgs.cs
- HandlerBase.cs
- CharUnicodeInfo.cs
- ComponentEditorPage.cs
- AttributedMetaModel.cs
- PackageStore.cs
- WindowsFormsHostPropertyMap.cs
- RangeValidator.cs
- TextLineBreak.cs
- IndependentlyAnimatedPropertyMetadata.cs