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
- DataGridTextBox.cs
- EntitySetDataBindingList.cs
- AddInDeploymentState.cs
- ScrollBar.cs
- _ScatterGatherBuffers.cs
- TemplatePagerField.cs
- DynamicRendererThreadManager.cs
- DataTransferEventArgs.cs
- QilSortKey.cs
- MouseButtonEventArgs.cs
- HtmlElementEventArgs.cs
- WindowClosedEventArgs.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- UriTemplateTrieNode.cs
- UnauthorizedAccessException.cs
- ObjectContextServiceProvider.cs
- DataListItem.cs
- UserPreferenceChangingEventArgs.cs
- While.cs
- DocumentGrid.cs
- StringUtil.cs
- SystemEvents.cs
- RangeExpression.cs
- HealthMonitoringSection.cs
- XmlAtomicValue.cs
- PassportAuthenticationEventArgs.cs
- Grid.cs
- StreamingContext.cs
- SafeCloseHandleCritical.cs
- EventLogPermissionEntry.cs
- EmptyReadOnlyDictionaryInternal.cs
- ListParagraph.cs
- ThreadStateException.cs
- WindowVisualStateTracker.cs
- BaseInfoTable.cs
- MatrixStack.cs
- TemplateControlCodeDomTreeGenerator.cs
- XmlNodeList.cs
- CodeArgumentReferenceExpression.cs
- NameScope.cs
- MailWriter.cs
- UnsafeNetInfoNativeMethods.cs
- DispatcherEventArgs.cs
- SessionStateContainer.cs
- SubtreeProcessor.cs
- PreviewPageInfo.cs
- HostExecutionContextManager.cs
- HelpEvent.cs
- LinqDataSourceHelper.cs
- SpeakCompletedEventArgs.cs
- InputProviderSite.cs
- BitSet.cs
- ComponentManagerBroker.cs
- LoginView.cs
- ExtensibleClassFactory.cs
- InkCollectionBehavior.cs
- PartialCachingAttribute.cs
- ParentControlDesigner.cs
- HttpException.cs
- Point.cs
- DispatcherOperation.cs
- MailBnfHelper.cs
- EntityTransaction.cs
- WSFederationHttpSecurityElement.cs
- BaseDataListDesigner.cs
- StretchValidation.cs
- SafeNativeMethods.cs
- EntityContainerEmitter.cs
- WebBaseEventKeyComparer.cs
- WebSysDisplayNameAttribute.cs
- DelayedRegex.cs
- MetadataHelper.cs
- ColumnResizeAdorner.cs
- XmlNavigatorStack.cs
- HeaderElement.cs
- IgnoreDeviceFilterElement.cs
- IPHostEntry.cs
- Evidence.cs
- XhtmlBasicPageAdapter.cs
- PolyLineSegment.cs
- HashRepartitionStream.cs
- SqlDataSourceFilteringEventArgs.cs
- ParameterCollection.cs
- RepeaterDesigner.cs
- CodeConditionStatement.cs
- ChangeBlockUndoRecord.cs
- _IPv4Address.cs
- OdbcFactory.cs
- EditingCoordinator.cs
- ColorTransform.cs
- ContentDisposition.cs
- DataRowChangeEvent.cs
- FullTextBreakpoint.cs
- SchemeSettingElementCollection.cs
- WebEvents.cs
- ByteArrayHelperWithString.cs
- TextRangeAdaptor.cs
- DbProviderServices.cs
- Vector3DConverter.cs
- ApplicationBuildProvider.cs