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
- Convert.cs
- SafeProcessHandle.cs
- ToolStripDropTargetManager.cs
- Drawing.cs
- DecodeHelper.cs
- ProxyWebPartManager.cs
- Baml2006KnownTypes.cs
- IPipelineRuntime.cs
- XmlDictionary.cs
- ClaimTypes.cs
- XmlJsonWriter.cs
- ObjectAnimationBase.cs
- FileChangeNotifier.cs
- SettingsAttributes.cs
- DocumentPageView.cs
- SqlBuffer.cs
- DbReferenceCollection.cs
- DtrList.cs
- VisualBrush.cs
- Pen.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- DynamicILGenerator.cs
- _IPv6Address.cs
- ReferentialConstraintRoleElement.cs
- ConnectionConsumerAttribute.cs
- CompilationLock.cs
- MonthChangedEventArgs.cs
- TreeNodeBinding.cs
- OneWayBindingElement.cs
- ByteStreamMessageEncoderFactory.cs
- CaseCqlBlock.cs
- TrackingRecord.cs
- FileReader.cs
- HttpVersion.cs
- SvcFileManager.cs
- Odbc32.cs
- UnmanagedBitmapWrapper.cs
- BindingCompleteEventArgs.cs
- ViewStateModeByIdAttribute.cs
- IntellisenseTextBox.cs
- EllipseGeometry.cs
- QueuePathDialog.cs
- WebPartConnectionsCancelVerb.cs
- DecoratedNameAttribute.cs
- PriorityQueue.cs
- ServiceReference.cs
- InfocardExtendedInformationEntry.cs
- Vector3DCollectionConverter.cs
- SaveFileDialogDesigner.cs
- TagPrefixInfo.cs
- RegisteredExpandoAttribute.cs
- RowToFieldTransformer.cs
- ReturnValue.cs
- SerialPinChanges.cs
- DataGridViewComboBoxEditingControl.cs
- RangeContentEnumerator.cs
- SelectManyQueryOperator.cs
- TypeKeyValue.cs
- TemplateEditingFrame.cs
- FileLevelControlBuilderAttribute.cs
- VBIdentifierDesigner.xaml.cs
- VirtualizingPanel.cs
- XmlSerializerAssemblyAttribute.cs
- MessageHeaders.cs
- OdbcConnectionOpen.cs
- GPStream.cs
- IdentityReference.cs
- Tablet.cs
- ProxyFragment.cs
- SimpleFieldTemplateUserControl.cs
- CompositeDesignerAccessibleObject.cs
- XmlResolver.cs
- MethodExecutor.cs
- SelectedGridItemChangedEvent.cs
- XmlUrlResolver.cs
- ListViewContainer.cs
- BinaryFormatter.cs
- InteropBitmapSource.cs
- SqlDataAdapter.cs
- CryptoApi.cs
- WebBrowserUriTypeConverter.cs
- oledbmetadatacolumnnames.cs
- DesignerTransaction.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- ClientSettingsProvider.cs
- EntitySetBaseCollection.cs
- AuthenticationManager.cs
- CharEntityEncoderFallback.cs
- DocumentGrid.cs
- ResourceDictionaryCollection.cs
- IImplicitResourceProvider.cs
- RequiredAttributeAttribute.cs
- CompoundFileReference.cs
- _NetworkingPerfCounters.cs
- HostedNamedPipeTransportManager.cs
- PropertyGridView.cs
- ReadOnlyDictionary.cs
- PreservationFileReader.cs
- AnimationClock.cs
- WebPartsPersonalizationAuthorization.cs