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
- WebPartConnectionsConnectVerb.cs
- SafeNativeMethodsCLR.cs
- XsltContext.cs
- WebPartDisplayModeEventArgs.cs
- ContainerFilterService.cs
- SHA256Cng.cs
- VersionedStreamOwner.cs
- DesignerActionUI.cs
- DiagnosticsConfiguration.cs
- ProfileSettingsCollection.cs
- DynamicObject.cs
- XmlAnyElementAttributes.cs
- WizardStepCollectionEditor.cs
- SerializerWriterEventHandlers.cs
- CodeBinaryOperatorExpression.cs
- SmtpNetworkElement.cs
- RuleRefElement.cs
- SessionEndedEventArgs.cs
- SafeHandle.cs
- TextDecoration.cs
- HiddenFieldPageStatePersister.cs
- ProtocolElementCollection.cs
- NumberFormatInfo.cs
- iisPickupDirectory.cs
- CachedFontFace.cs
- ItemsPresenter.cs
- XmlSubtreeReader.cs
- ByteStack.cs
- SubclassTypeValidatorAttribute.cs
- WebBrowserSiteBase.cs
- DataTableMappingCollection.cs
- EndOfStreamException.cs
- ThicknessAnimationBase.cs
- WebServiceResponse.cs
- ImageDrawing.cs
- AssemblyNameProxy.cs
- MulticastOption.cs
- ConfigurationSettings.cs
- EntityDataSourceDesignerHelper.cs
- DataColumnChangeEvent.cs
- XComponentModel.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ParameterSubsegment.cs
- DataControlFieldCollection.cs
- XPathNodeList.cs
- IResourceProvider.cs
- GridEntry.cs
- IpcPort.cs
- Emitter.cs
- DefaultTextStoreTextComposition.cs
- TypeToken.cs
- COM2FontConverter.cs
- EnumBuilder.cs
- safePerfProviderHandle.cs
- DataTableReaderListener.cs
- StorageSetMapping.cs
- RectangleHotSpot.cs
- ProfileEventArgs.cs
- WebServiceHandler.cs
- IDispatchConstantAttribute.cs
- CallbackValidator.cs
- CodeDirectoryCompiler.cs
- OracleMonthSpan.cs
- UIElement.cs
- Animatable.cs
- DesignTimeHTMLTextWriter.cs
- ToolStripScrollButton.cs
- MasterPageCodeDomTreeGenerator.cs
- UIElementAutomationPeer.cs
- PeerNameRegistration.cs
- _BaseOverlappedAsyncResult.cs
- ArrayConverter.cs
- HttpHandlerAction.cs
- _CommandStream.cs
- WebRequestModuleElementCollection.cs
- BoundColumn.cs
- SettingsPropertyNotFoundException.cs
- JsonGlobals.cs
- Missing.cs
- OleServicesContext.cs
- SizeConverter.cs
- MetadataItemCollectionFactory.cs
- _ConnectStream.cs
- RenderCapability.cs
- CorrelationHandle.cs
- ExpressionContext.cs
- WebPartTransformerAttribute.cs
- DataGridColumnCollectionEditor.cs
- SourceInterpreter.cs
- SerialReceived.cs
- PerformanceCounterNameAttribute.cs
- Visual.cs
- SafeNativeMethods.cs
- CategoryGridEntry.cs
- XmlSchemaSet.cs
- FontInfo.cs
- xmlsaver.cs
- GroupBox.cs
- SocketException.cs
- XmlIncludeAttribute.cs