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
- ThousandthOfEmRealDoubles.cs
- Size3DConverter.cs
- OleDbEnumerator.cs
- RsaSecurityKey.cs
- ScriptingProfileServiceSection.cs
- WasAdminWrapper.cs
- HandoffBehavior.cs
- SQLSingle.cs
- QueryOperationResponseOfT.cs
- SqlDuplicator.cs
- GridPatternIdentifiers.cs
- HtmlInputButton.cs
- NamedObjectList.cs
- Buffer.cs
- Compiler.cs
- PerformanceCounterNameAttribute.cs
- HealthMonitoringSection.cs
- DataSvcMapFile.cs
- DesignerCommandSet.cs
- IsolatedStorageException.cs
- TextServicesCompartmentContext.cs
- ToolBarButton.cs
- ToolStripDropDownButton.cs
- ManagementDateTime.cs
- TickBar.cs
- HScrollBar.cs
- SingleQueryOperator.cs
- Control.cs
- DateTimeStorage.cs
- RegexStringValidatorAttribute.cs
- dbdatarecord.cs
- XmlSchemaRedefine.cs
- StrokeCollectionDefaultValueFactory.cs
- BitmapSource.cs
- CompilerState.cs
- ProcessModelSection.cs
- _SafeNetHandles.cs
- TextComposition.cs
- RayMeshGeometry3DHitTestResult.cs
- ClosableStream.cs
- EntityModelSchemaGenerator.cs
- SafeNativeMethods.cs
- ApplicationHost.cs
- WinCategoryAttribute.cs
- AccessViolationException.cs
- VisualStateChangedEventArgs.cs
- ElementAction.cs
- TwoPhaseCommitProxy.cs
- WindowsComboBox.cs
- ValidatingPropertiesEventArgs.cs
- FileNotFoundException.cs
- FileRegion.cs
- ThemeInfoAttribute.cs
- ObjectQueryState.cs
- CompletedAsyncResult.cs
- StyleModeStack.cs
- TablePattern.cs
- PositiveTimeSpanValidatorAttribute.cs
- HttpModuleCollection.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- AssemblyCollection.cs
- OverflowException.cs
- FieldNameLookup.cs
- NativeMethods.cs
- Collection.cs
- COM2Properties.cs
- StateItem.cs
- SecurityUtils.cs
- UnsafeNativeMethods.cs
- RenderingEventArgs.cs
- ReplacementText.cs
- WebPartMenu.cs
- HotSpotCollection.cs
- ComboBox.cs
- ImageAutomationPeer.cs
- ExecutionPropertyManager.cs
- CookielessHelper.cs
- Compiler.cs
- HttpConfigurationSystem.cs
- ProtocolViolationException.cs
- UrlMappingCollection.cs
- Schedule.cs
- TypeHelpers.cs
- TextTreeUndoUnit.cs
- SmtpNtlmAuthenticationModule.cs
- DefaultAsyncDataDispatcher.cs
- VisualBasicHelper.cs
- ScrollProperties.cs
- ArglessEventHandlerProxy.cs
- FieldToken.cs
- columnmapkeybuilder.cs
- BaseUriWithWildcard.cs
- BulletChrome.cs
- ServiceEndpointAssociationProvider.cs
- TagMapCollection.cs
- CollectionsUtil.cs
- GPPOINTF.cs
- PathGeometry.cs
- WebConfigurationHost.cs
- SqlAggregateChecker.cs