Code:
/ 4.0 / 4.0 / 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. 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
- SessionStateContainer.cs
- Guid.cs
- SqlNotificationEventArgs.cs
- RelativeSource.cs
- SmiXetterAccessMap.cs
- DispatcherTimer.cs
- SlipBehavior.cs
- DashStyles.cs
- EntityCommandCompilationException.cs
- LoadedOrUnloadedOperation.cs
- NodeFunctions.cs
- FullTextBreakpoint.cs
- WindowShowOrOpenTracker.cs
- ZeroOpNode.cs
- RuntimeCompatibilityAttribute.cs
- EntityDataReader.cs
- ChildrenQuery.cs
- MexHttpsBindingElement.cs
- OdbcEnvironment.cs
- ManipulationInertiaStartingEventArgs.cs
- Int16Animation.cs
- DbConnectionPoolOptions.cs
- DataSourceDescriptorCollection.cs
- SyndicationContent.cs
- ComPlusInstanceContextInitializer.cs
- StrongNameIdentityPermission.cs
- CustomValidator.cs
- Timer.cs
- Point4D.cs
- ThreadExceptionEvent.cs
- EventToken.cs
- TextUtf8RawTextWriter.cs
- GlobalizationSection.cs
- ImageSource.cs
- PersistNameAttribute.cs
- HttpHostedTransportConfiguration.cs
- SpellerHighlightLayer.cs
- DataSourceControl.cs
- SqlConnectionString.cs
- FloaterParagraph.cs
- BoundsDrawingContextWalker.cs
- CollectionContainer.cs
- BitmapMetadataEnumerator.cs
- ModelItemDictionary.cs
- LocalServiceSecuritySettingsElement.cs
- WebPartEditorApplyVerb.cs
- ContentDefinition.cs
- ReflectionHelper.cs
- ToolStripPanelCell.cs
- PositiveTimeSpanValidatorAttribute.cs
- EmptyControlCollection.cs
- NameValueSectionHandler.cs
- CodeDirectoryCompiler.cs
- HwndAppCommandInputProvider.cs
- ProfileGroupSettingsCollection.cs
- DrawingGroup.cs
- ThreadPoolTaskScheduler.cs
- OleDbStruct.cs
- Brush.cs
- ScriptControl.cs
- Win32KeyboardDevice.cs
- QueryOperationResponseOfT.cs
- DataKeyCollection.cs
- DodSequenceMerge.cs
- TdsParser.cs
- Mouse.cs
- CopyNamespacesAction.cs
- SelectionWordBreaker.cs
- RichTextBox.cs
- PeerCustomResolverBindingElement.cs
- SmiEventSink.cs
- MimeMapping.cs
- MarshalDirectiveException.cs
- X509SecurityTokenProvider.cs
- CrossSiteScriptingValidation.cs
- WpfWebRequestHelper.cs
- TextSpan.cs
- LiteralControl.cs
- XsltInput.cs
- ChildDocumentBlock.cs
- WebPartRestoreVerb.cs
- NativeMethods.cs
- ByteStorage.cs
- SqlCommand.cs
- PagerSettings.cs
- XPathSelectionIterator.cs
- BaseTemplateBuildProvider.cs
- DeploymentSectionCache.cs
- EnumType.cs
- EdmEntityTypeAttribute.cs
- XmlEnumAttribute.cs
- MonitoringDescriptionAttribute.cs
- EventLogPermissionHolder.cs
- TemplateColumn.cs
- SqlCrossApplyToCrossJoin.cs
- TreeNodeBinding.cs
- Setter.cs
- X509CertificateValidator.cs
- CodeBinaryOperatorExpression.cs
- SerializationFieldInfo.cs