Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / StateDesigner.LayoutSelectionGlyph.cs / 1305376 / StateDesigner.LayoutSelectionGlyph.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 { ////// Draws the selection retangle around the selected designer /// private class LayoutSelectionGlyph : SelectionGlyph { private Layout _layout; public LayoutSelectionGlyph(Layout layout) { if (layout == null) throw new ArgumentNullException("layout"); _layout = layout; } public override int Priority { get { return DesignerGlyph.HighestPriority; } } public override bool IsPrimarySelection { get { return true; } } public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { if (designer == null) throw new ArgumentNullException("designer"); return _layout.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 { ////// Draws the selection retangle around the selected designer /// private class LayoutSelectionGlyph : SelectionGlyph { private Layout _layout; public LayoutSelectionGlyph(Layout layout) { if (layout == null) throw new ArgumentNullException("layout"); _layout = layout; } public override int Priority { get { return DesignerGlyph.HighestPriority; } } public override bool IsPrimarySelection { get { return true; } } public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { if (designer == null) throw new ArgumentNullException("designer"); return _layout.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
- Rect3DConverter.cs
- SqlAliasesReferenced.cs
- Scripts.cs
- StandardToolWindows.cs
- ObjectDataSourceStatusEventArgs.cs
- ImpersonationContext.cs
- ConnectionStringsSection.cs
- Margins.cs
- SaveLedgerEntryRequest.cs
- XmlILAnnotation.cs
- PageVisual.cs
- ECDiffieHellmanPublicKey.cs
- CircleHotSpot.cs
- Monitor.cs
- GPRECT.cs
- CachedTypeface.cs
- GridViewEditEventArgs.cs
- SerializerDescriptor.cs
- ColorDialog.cs
- BamlVersionHeader.cs
- HttpHandlersSection.cs
- RedistVersionInfo.cs
- ToolStripItemCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- M3DUtil.cs
- PropertyChangedEventArgs.cs
- DefaultPrintController.cs
- Triplet.cs
- IPHostEntry.cs
- ExpressionVisitor.cs
- DefaultTextStoreTextComposition.cs
- LazyTextWriterCreator.cs
- EditingMode.cs
- IImplicitResourceProvider.cs
- StringSource.cs
- GridViewSortEventArgs.cs
- SqlEnums.cs
- ChangeConflicts.cs
- MarkedHighlightComponent.cs
- CapabilitiesSection.cs
- SqlClientWrapperSmiStream.cs
- XPathParser.cs
- ModelPropertyImpl.cs
- MessageDesigner.cs
- VariableAction.cs
- WebPartEditorOkVerb.cs
- StreamWriter.cs
- Matrix3DValueSerializer.cs
- DrawListViewItemEventArgs.cs
- BinaryFormatterWriter.cs
- URLIdentityPermission.cs
- MaskedTextBox.cs
- EditorPartCollection.cs
- WebPartTracker.cs
- TextDecoration.cs
- NegotiateStream.cs
- StickyNoteAnnotations.cs
- WrapPanel.cs
- TextViewBase.cs
- Tool.cs
- Process.cs
- xmlsaver.cs
- UIElement3D.cs
- ChildTable.cs
- VisualBasicDesignerHelper.cs
- Popup.cs
- PaintValueEventArgs.cs
- __ConsoleStream.cs
- BindingsCollection.cs
- WhitespaceRuleReader.cs
- RemotingSurrogateSelector.cs
- EntityDataSourceWizardForm.cs
- ConfigurationValues.cs
- HtmlInputImage.cs
- BaseCodeDomTreeGenerator.cs
- EntityType.cs
- QueryContinueDragEventArgs.cs
- CompilerGlobalScopeAttribute.cs
- IdleTimeoutMonitor.cs
- XmlExceptionHelper.cs
- WeakReadOnlyCollection.cs
- tibetanshape.cs
- DataBoundControl.cs
- TextBox.cs
- HMACMD5.cs
- ToolStripGrip.cs
- IPEndPointCollection.cs
- CapabilitiesUse.cs
- MatrixTransform3D.cs
- DataRowComparer.cs
- XmlWhitespace.cs
- Rotation3D.cs
- HttpWrapper.cs
- GridViewUpdatedEventArgs.cs
- KeyGestureConverter.cs
- WebPartConnectionsConfigureVerb.cs
- HttpHandlersSection.cs
- ValidationSummaryDesigner.cs
- ValueTypeIndexerReference.cs
- NativeRightsManagementAPIsStructures.cs