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
- WindowsListViewGroupSubsetLink.cs
- XsdValidatingReader.cs
- Delay.cs
- LoadGrammarCompletedEventArgs.cs
- SqlError.cs
- ObjectList.cs
- EntityDataSourceConfigureObjectContext.cs
- StringToken.cs
- MethodAccessException.cs
- HMACRIPEMD160.cs
- FreezableOperations.cs
- CommandID.cs
- SqlRemoveConstantOrderBy.cs
- ExtensibleClassFactory.cs
- CursorConverter.cs
- PersonalizationEntry.cs
- FontFaceLayoutInfo.cs
- FileDialogCustomPlacesCollection.cs
- NegationPusher.cs
- StatusBar.cs
- DesignerObjectListAdapter.cs
- documentsequencetextpointer.cs
- TextRunCache.cs
- ContextStaticAttribute.cs
- XmlSchemaSimpleType.cs
- DnsPermission.cs
- SqlInternalConnectionTds.cs
- BeginStoryboard.cs
- SyndicationDeserializer.cs
- DecoderReplacementFallback.cs
- SqlFactory.cs
- WebServiceErrorEvent.cs
- TextSchema.cs
- ProviderSettings.cs
- StylusPointPropertyUnit.cs
- BindingMemberInfo.cs
- UInt16.cs
- PrinterSettings.cs
- HwndStylusInputProvider.cs
- ApplicationServicesHostFactory.cs
- WebPartsPersonalizationAuthorization.cs
- GridItemCollection.cs
- DbCommandDefinition.cs
- Size3D.cs
- TableLayoutStyle.cs
- XmlEncoding.cs
- NavigatorInvalidBodyAccessException.cs
- PixelFormatConverter.cs
- RecordsAffectedEventArgs.cs
- ReadonlyMessageFilter.cs
- XsdValidatingReader.cs
- Model3DCollection.cs
- ThreadNeutralSemaphore.cs
- CreateCardRequest.cs
- PropertyMapper.cs
- DbParameterHelper.cs
- CryptoApi.cs
- ProtocolViolationException.cs
- InkCanvasAutomationPeer.cs
- Membership.cs
- WebPartCollection.cs
- OutputScopeManager.cs
- WmlValidationSummaryAdapter.cs
- ContainerActivationHelper.cs
- Int32CollectionValueSerializer.cs
- DynamicILGenerator.cs
- SqlNotificationEventArgs.cs
- SspiNegotiationTokenAuthenticator.cs
- TextMarkerSource.cs
- KeyNotFoundException.cs
- UpdateTranslator.cs
- ResourcePermissionBase.cs
- XmlSecureResolver.cs
- FlowDocumentView.cs
- CustomError.cs
- KeyPressEvent.cs
- MarshalByRefObject.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- XmlTextEncoder.cs
- WebPartDisplayMode.cs
- DynamicPropertyHolder.cs
- AbsoluteQuery.cs
- OdbcDataAdapter.cs
- WorkBatch.cs
- SmtpNegotiateAuthenticationModule.cs
- SoapSchemaExporter.cs
- MimeTypeAttribute.cs
- ContextMenuService.cs
- BatchParser.cs
- StreamBodyWriter.cs
- ContentElement.cs
- ListChangedEventArgs.cs
- ResourceSetExpression.cs
- _Rfc2616CacheValidators.cs
- FixedTextSelectionProcessor.cs
- XmlChildNodes.cs
- ListBoxChrome.cs
- ValidationPropertyAttribute.cs
- HyperLinkField.cs
- SqlHelper.cs