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
- ArrayWithOffset.cs
- Int16Animation.cs
- BlurBitmapEffect.cs
- RecognizedAudio.cs
- FederatedMessageSecurityOverHttpElement.cs
- BinaryNode.cs
- TraceHandlerErrorFormatter.cs
- DXD.cs
- UITypeEditor.cs
- TemplatePropertyEntry.cs
- DocumentationServerProtocol.cs
- UserPreferenceChangedEventArgs.cs
- DesignerHost.cs
- EventLog.cs
- TabPanel.cs
- SingleConverter.cs
- RangeValidator.cs
- LoadedEvent.cs
- EmbeddedMailObjectCollectionEditor.cs
- AutomationPropertyInfo.cs
- RayMeshGeometry3DHitTestResult.cs
- MessageHeaders.cs
- FilterEventArgs.cs
- KeyedCollection.cs
- NoneExcludedImageIndexConverter.cs
- Vector3DValueSerializer.cs
- MonitoringDescriptionAttribute.cs
- Animatable.cs
- JobStaple.cs
- RadioButtonFlatAdapter.cs
- PageCodeDomTreeGenerator.cs
- ScriptReferenceEventArgs.cs
- LiteralLink.cs
- DataKeyCollection.cs
- DataTablePropertyDescriptor.cs
- ListBox.cs
- DataGridTable.cs
- KnowledgeBase.cs
- FileIOPermission.cs
- AccessDataSource.cs
- DefaultDiscoveryService.cs
- OdbcConnectionOpen.cs
- SByte.cs
- IndexedGlyphRun.cs
- GetParentChain.cs
- XmlWriterSettings.cs
- DialogWindow.cs
- FieldInfo.cs
- XmlDeclaration.cs
- PartManifestEntry.cs
- StorageMappingItemLoader.cs
- UITypeEditor.cs
- MemberDomainMap.cs
- LookupBindingPropertiesAttribute.cs
- LayoutDump.cs
- WpfPayload.cs
- SharedPersonalizationStateInfo.cs
- DataServiceRequest.cs
- TypedDatasetGenerator.cs
- Ray3DHitTestResult.cs
- ConnectionProviderAttribute.cs
- Ops.cs
- FontWeight.cs
- ValidationEventArgs.cs
- NavigatorInvalidBodyAccessException.cs
- Utilities.cs
- DoubleKeyFrameCollection.cs
- XmlDocumentFieldSchema.cs
- TypedTableBase.cs
- TreeSet.cs
- QilInvokeEarlyBound.cs
- ConnectionPointCookie.cs
- HebrewNumber.cs
- StrongTypingException.cs
- SecurityManager.cs
- FlowLayoutPanel.cs
- HttpException.cs
- FormsAuthenticationEventArgs.cs
- StoragePropertyMapping.cs
- ImageMetadata.cs
- InlinedAggregationOperator.cs
- JournalEntry.cs
- Decorator.cs
- DataControlLinkButton.cs
- sqlnorm.cs
- ServiceControllerDesigner.cs
- ChtmlTextWriter.cs
- WebPartChrome.cs
- ParentQuery.cs
- NamedPipeWorkerProcess.cs
- QualifiedCellIdBoolean.cs
- CustomTrackingRecord.cs
- ScrollEvent.cs
- SslSecurityTokenParameters.cs
- MenuItem.cs
- InstanceCreationEditor.cs
- HebrewNumber.cs
- filewebrequest.cs
- FontUnitConverter.cs
- XslNumber.cs