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
- SiteIdentityPermission.cs
- Stacktrace.cs
- CannotUnloadAppDomainException.cs
- Query.cs
- RemotingSurrogateSelector.cs
- ConnectionStringsExpressionBuilder.cs
- WmiEventSink.cs
- CharEntityEncoderFallback.cs
- XmlEventCache.cs
- TemplateBindingExtension.cs
- ReferencedCollectionType.cs
- ApplicationServicesHostFactory.cs
- SafeFileMappingHandle.cs
- ObjectViewListener.cs
- InternalControlCollection.cs
- ProvideValueServiceProvider.cs
- ToolStripContainer.cs
- XmlElementAttributes.cs
- WebPartUserCapability.cs
- UnknownBitmapEncoder.cs
- OperatorExpressions.cs
- ByteRangeDownloader.cs
- PrintDialog.cs
- SecurityUtils.cs
- TextCompositionEventArgs.cs
- __Filters.cs
- propertyentry.cs
- Int16Storage.cs
- SwitchAttribute.cs
- AssemblyCollection.cs
- SkinBuilder.cs
- ColorComboBox.cs
- ManagementObjectCollection.cs
- Task.cs
- DocumentOrderComparer.cs
- PaperSource.cs
- SamlAuthorizationDecisionStatement.cs
- ParameterToken.cs
- ReachVisualSerializer.cs
- WindowInteropHelper.cs
- DataColumnMappingCollection.cs
- BaseWebProxyFinder.cs
- bidPrivateBase.cs
- Int32CollectionConverter.cs
- NamespaceInfo.cs
- AutomationPatternInfo.cs
- SuspendDesigner.cs
- ViewStateException.cs
- Visitor.cs
- SignatureConfirmationElement.cs
- TimeoutException.cs
- hresults.cs
- GridViewCommandEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- DataSourceView.cs
- SimpleLine.cs
- AttributedMetaModel.cs
- MethodBody.cs
- CalendarDesigner.cs
- FixedDocumentSequencePaginator.cs
- ToolboxItemAttribute.cs
- EventDrivenDesigner.cs
- SiteOfOriginContainer.cs
- RangeValueProviderWrapper.cs
- MemberMaps.cs
- GridEntry.cs
- PrefixHandle.cs
- StylusPointPropertyUnit.cs
- QilStrConcat.cs
- AttributeConverter.cs
- FixedTextBuilder.cs
- DataGridClipboardCellContent.cs
- FilterableAttribute.cs
- TypeFieldSchema.cs
- ProcessModelSection.cs
- ErrorCodes.cs
- BasicViewGenerator.cs
- ListViewInsertedEventArgs.cs
- MouseGestureValueSerializer.cs
- HtmlControlPersistable.cs
- WebControlsSection.cs
- SequenceDesigner.xaml.cs
- EnterpriseServicesHelper.cs
- WorkflowWebService.cs
- ContextMarshalException.cs
- ValueUnavailableException.cs
- ListBoxDesigner.cs
- PageTheme.cs
- SmtpNtlmAuthenticationModule.cs
- CodeTypeDeclaration.cs
- AssemblyNameProxy.cs
- TreeNodeBindingCollection.cs
- TreeNodeMouseHoverEvent.cs
- OdbcConnectionHandle.cs
- TextChangedEventArgs.cs
- GuidelineCollection.cs
- Evidence.cs
- DataGridViewCheckBoxCell.cs
- BooleanExpr.cs
- SqlCommandBuilder.cs