Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / StateDesigner.CommentLayoutGlyph.cs / 1305376 / StateDesigner.CommentLayoutGlyph.cs
namespace System.Workflow.Activities { using System; using System.Text; using System.Reflection; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing.Design; using System.Drawing; using System.Drawing.Drawing2D; using System.Diagnostics; using System.IO; using System.Windows.Forms; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Runtime.Serialization; internal partial class StateDesigner : FreeformActivityDesigner { private class CommentLayoutGlyph : DesignerGlyph { private Layout _layout; public CommentLayoutGlyph(Layout layout) { if (layout == null) throw new ArgumentNullException("layout"); _layout = layout; } public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { if (designer == null) throw new ArgumentNullException("designer"); Rectangle bounds = _layout.Bounds; return bounds; } public override int Priority { get { return DesignerGlyph.NormalPriority; } } protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) { if (designer == null) throw new ArgumentNullException("designer"); if (graphics == null) throw new ArgumentNullException("graphics"); Rectangle bounds = GetBounds(designer, false); graphics.FillRectangle(StateMachineDesignerPaint.FadeBrush, bounds); graphics.FillRectangle(ambientTheme.CommentIndicatorBrush, bounds); graphics.DrawRectangle(ambientTheme.CommentIndicatorPen, bounds); } } } } // 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
- RedirectionProxy.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CursorConverter.cs
- WebPartRestoreVerb.cs
- MethodCallExpression.cs
- EmptyControlCollection.cs
- SoapEnumAttribute.cs
- FileDialogPermission.cs
- ResourceBinder.cs
- QuotedStringWriteStateInfo.cs
- ISFClipboardData.cs
- ClientTargetSection.cs
- TraceContext.cs
- DataServiceHostFactory.cs
- DetailsViewUpdateEventArgs.cs
- XmlAttributeProperties.cs
- UnsafeNativeMethods.cs
- ProvidePropertyAttribute.cs
- ByteFacetDescriptionElement.cs
- IMembershipProvider.cs
- Selector.cs
- UnsafeNativeMethods.cs
- PrimitiveXmlSerializers.cs
- AlignmentXValidation.cs
- PanelContainerDesigner.cs
- UInt32Converter.cs
- cache.cs
- SpotLight.cs
- SmiEventStream.cs
- StrongName.cs
- Vector3DKeyFrameCollection.cs
- EmptyCollection.cs
- MailBnfHelper.cs
- DefaultPropertyAttribute.cs
- GridViewColumnHeaderAutomationPeer.cs
- DBDataPermissionAttribute.cs
- sqlpipe.cs
- XPathNode.cs
- FullTextLine.cs
- ImageMetadata.cs
- TextRangeEditTables.cs
- ModelFunctionTypeElement.cs
- Comparer.cs
- ComboBoxAutomationPeer.cs
- CurrentTimeZone.cs
- Publisher.cs
- shaper.cs
- BehaviorEditorPart.cs
- DataGridDetailsPresenter.cs
- VScrollProperties.cs
- SmiEventStream.cs
- Delegate.cs
- MemberBinding.cs
- SmtpException.cs
- LZCodec.cs
- ValueProviderWrapper.cs
- Form.cs
- FrameworkElementFactory.cs
- OLEDB_Enum.cs
- QuestionEventArgs.cs
- SqlDataAdapter.cs
- ListViewSortEventArgs.cs
- TaskHelper.cs
- MatrixAnimationBase.cs
- objectresult_tresulttype.cs
- TableLayoutSettings.cs
- SslStream.cs
- NativeObjectSecurity.cs
- TypeResolver.cs
- ExpandableObjectConverter.cs
- LinearGradientBrush.cs
- SecureEnvironment.cs
- BamlMapTable.cs
- ModelFunctionTypeElement.cs
- XmlNode.cs
- SymbolUsageManager.cs
- WebPartConnectionsDisconnectVerb.cs
- AttributeTable.cs
- RealProxy.cs
- ContextProperty.cs
- GatewayDefinition.cs
- ServiceTimeoutsElement.cs
- webclient.cs
- AnimationLayer.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- MouseEventArgs.cs
- SystemResourceHost.cs
- PackagePart.cs
- NativeMethods.cs
- WebHttpSecurityElement.cs
- WebPartEditorApplyVerb.cs
- SolidBrush.cs
- TextEditorThreadLocalStore.cs
- FontDifferentiator.cs
- PointConverter.cs
- GeneralTransformCollection.cs
- localization.cs
- Base64Encoder.cs
- ProjectionPathBuilder.cs
- OracleColumn.cs