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
- FixedSOMContainer.cs
- HostedElements.cs
- CqlWriter.cs
- RepeaterCommandEventArgs.cs
- KeyFrames.cs
- ListManagerBindingsCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- KnownTypesHelper.cs
- CommandConverter.cs
- ClientSettings.cs
- WorkflowHostingEndpoint.cs
- followingsibling.cs
- HierarchicalDataSourceControl.cs
- FSWPathEditor.cs
- DelegateSerializationHolder.cs
- SingleResultAttribute.cs
- PropertyChangeTracker.cs
- PointKeyFrameCollection.cs
- MenuItemCollection.cs
- CultureData.cs
- Package.cs
- CodeDelegateCreateExpression.cs
- Size.cs
- isolationinterop.cs
- TemplateBindingExtension.cs
- ProtocolException.cs
- JapaneseCalendar.cs
- DropSourceBehavior.cs
- TypeInfo.cs
- ModelTreeManager.cs
- ProcessHostConfigUtils.cs
- XPathDocumentBuilder.cs
- XmlSchemaComplexType.cs
- ToolStripScrollButton.cs
- HashLookup.cs
- LabelEditEvent.cs
- AnnotationResourceCollection.cs
- TraceHandler.cs
- StringCollectionEditor.cs
- ExceptionUtil.cs
- GridViewEditEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- CounterCreationDataConverter.cs
- XamlFxTrace.cs
- RunWorkerCompletedEventArgs.cs
- ProfileManager.cs
- exports.cs
- XmlWrappingReader.cs
- SpeechSynthesizer.cs
- KeyTime.cs
- RawContentTypeMapper.cs
- EventLogWatcher.cs
- AmbiguousMatchException.cs
- BrushValueSerializer.cs
- InputBindingCollection.cs
- TreeViewCancelEvent.cs
- XhtmlBasicTextViewAdapter.cs
- CompositeCollection.cs
- XmlNullResolver.cs
- FontStyleConverter.cs
- FlowDecisionDesigner.xaml.cs
- BinaryUtilClasses.cs
- ApplicationTrust.cs
- WebPartManagerInternals.cs
- MenuEventArgs.cs
- SequentialOutput.cs
- DefaultClaimSet.cs
- DurableRuntimeValidator.cs
- IisTraceWebEventProvider.cs
- handlecollector.cs
- InputReferenceExpression.cs
- DispatcherExceptionEventArgs.cs
- EventProviderClassic.cs
- MediaCommands.cs
- XmlWellformedWriter.cs
- BitmapCodecInfoInternal.cs
- SchemaElementLookUpTableEnumerator.cs
- NaturalLanguageHyphenator.cs
- DocumentsTrace.cs
- HttpModulesSection.cs
- MatrixValueSerializer.cs
- SwitchLevelAttribute.cs
- HttpRequestCacheValidator.cs
- ExpressionConverter.cs
- HtmlInputReset.cs
- TypedRowHandler.cs
- EnumUnknown.cs
- FileEnumerator.cs
- DataSourceGroupCollection.cs
- WmlTextBoxAdapter.cs
- NetNamedPipeBindingCollectionElement.cs
- FontStretches.cs
- Property.cs
- ContextInformation.cs
- DocumentApplicationJournalEntry.cs
- EntityDataSourceWrapper.cs
- GenericAuthenticationEventArgs.cs
- SafeHandles.cs
- ThreadStateException.cs
- Utilities.cs