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
- InvalidDataException.cs
- NameTable.cs
- EventLogSession.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- HyperLinkStyle.cs
- OdbcEnvironmentHandle.cs
- StorageSetMapping.cs
- CodeStatementCollection.cs
- FlowLayoutPanelDesigner.cs
- DBCommandBuilder.cs
- PrinterResolution.cs
- ToolStripCollectionEditor.cs
- SqlTriggerAttribute.cs
- ConditionCollection.cs
- SubstitutionResponseElement.cs
- DataTableReader.cs
- printdlgexmarshaler.cs
- DataBoundControlHelper.cs
- XhtmlMobileTextWriter.cs
- followingsibling.cs
- FunctionMappingTranslator.cs
- BuilderPropertyEntry.cs
- DataContractAttribute.cs
- HexParser.cs
- NumericPagerField.cs
- LocalizabilityAttribute.cs
- AppSettingsExpressionBuilder.cs
- ConnectorEditor.cs
- BitmapEffect.cs
- Rotation3DKeyFrameCollection.cs
- ToolStripOverflowButton.cs
- MulticastIPAddressInformationCollection.cs
- TdsParserStaticMethods.cs
- IndexedGlyphRun.cs
- ColumnCollection.cs
- KeyGesture.cs
- BrowserDefinition.cs
- Attribute.cs
- CultureInfoConverter.cs
- ColorAnimationBase.cs
- IncomingWebResponseContext.cs
- MetadataProperty.cs
- Message.cs
- RegisteredDisposeScript.cs
- Codec.cs
- FormClosedEvent.cs
- HierarchicalDataSourceControl.cs
- LinearQuaternionKeyFrame.cs
- CodeCommentStatementCollection.cs
- MultiBindingExpression.cs
- MetadataArtifactLoaderCompositeFile.cs
- SafeSystemMetrics.cs
- StylusPointCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- AnnotationElement.cs
- SchemaElementDecl.cs
- ButtonStandardAdapter.cs
- AppDomainAttributes.cs
- SourceChangedEventArgs.cs
- EventMap.cs
- ElementInit.cs
- Size3D.cs
- PrePostDescendentsWalker.cs
- BaseConfigurationRecord.cs
- ListBase.cs
- BufferedWebEventProvider.cs
- BoundColumn.cs
- SystemUnicastIPAddressInformation.cs
- DebugTracing.cs
- RSACryptoServiceProvider.cs
- PropertyTab.cs
- CodeCompiler.cs
- PlatformCulture.cs
- Triplet.cs
- CodeExporter.cs
- FormsAuthenticationEventArgs.cs
- TransactionProxy.cs
- ValidationPropertyAttribute.cs
- XsltArgumentList.cs
- CollectionViewSource.cs
- SetterBase.cs
- WebExceptionStatus.cs
- DbMetaDataFactory.cs
- Effect.cs
- CodeGenerator.cs
- SafeNativeMethodsOther.cs
- PackageRelationshipSelector.cs
- SafeRightsManagementSessionHandle.cs
- Button.cs
- SoapTransportImporter.cs
- ScaleTransform3D.cs
- XomlCompiler.cs
- PointLight.cs
- ContextMenu.cs
- AutoResetEvent.cs
- MenuRendererClassic.cs
- XsltSettings.cs
- _SSPIWrapper.cs
- GetLedgerEntryForRecipientRequest.cs
- XPathScanner.cs