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
- ComNativeDescriptor.cs
- CommonProperties.cs
- DbException.cs
- Int64Converter.cs
- FixedTextPointer.cs
- GuidelineSet.cs
- EventLogPermissionHolder.cs
- ResourceReferenceKeyNotFoundException.cs
- InstancePersistence.cs
- ObjectListCommand.cs
- SpotLight.cs
- StandardBindingElementCollection.cs
- Pkcs7Signer.cs
- DragSelectionMessageFilter.cs
- ActiveXHost.cs
- TableRowCollection.cs
- OpenTypeLayout.cs
- StringValidatorAttribute.cs
- CompilerError.cs
- ColorMap.cs
- HtmlTableCellCollection.cs
- DataBindingList.cs
- PermissionToken.cs
- Triangle.cs
- WorkflowApplicationTerminatedException.cs
- ViewCellSlot.cs
- WindowsNonControl.cs
- ClipboardData.cs
- EntityDataSourceMemberPath.cs
- DropShadowEffect.cs
- FlagsAttribute.cs
- NetworkCredential.cs
- InkCanvas.cs
- BaseInfoTable.cs
- DataControlPagerLinkButton.cs
- HttpApplicationFactory.cs
- QueryOperator.cs
- MenuItem.cs
- PriorityChain.cs
- MembershipPasswordException.cs
- EntityContainerEmitter.cs
- ConnectionConsumerAttribute.cs
- mediaeventshelper.cs
- _LocalDataStoreMgr.cs
- _BufferOffsetSize.cs
- IdentityReference.cs
- VisualTreeHelper.cs
- MethodRental.cs
- EmptyStringExpandableObjectConverter.cs
- SelectionPattern.cs
- CacheMemory.cs
- RtType.cs
- PropertyValueUIItem.cs
- XmlSchemaChoice.cs
- MetadataItemSerializer.cs
- UiaCoreProviderApi.cs
- SQLConvert.cs
- SoapSchemaImporter.cs
- JapaneseLunisolarCalendar.cs
- Globals.cs
- FixedTextView.cs
- MarkupCompilePass1.cs
- XMLDiffLoader.cs
- SchemaComplexType.cs
- DictionaryEntry.cs
- Pair.cs
- StrokeSerializer.cs
- XmlObjectSerializerWriteContext.cs
- DataGridViewBindingCompleteEventArgs.cs
- HttpRawResponse.cs
- CorePropertiesFilter.cs
- X509CertificateEndpointIdentity.cs
- EraserBehavior.cs
- ReferencedType.cs
- ArrayTypeMismatchException.cs
- Page.cs
- IndentedWriter.cs
- ImportCatalogPart.cs
- AuditLevel.cs
- VirtualDirectoryMapping.cs
- RadioButton.cs
- TreeNode.cs
- StrokeCollection.cs
- VectorKeyFrameCollection.cs
- InlineCollection.cs
- LinearGradientBrush.cs
- UseLicense.cs
- StylusOverProperty.cs
- TranslateTransform.cs
- AssemblyBuilder.cs
- BasePropertyDescriptor.cs
- ProjectedWrapper.cs
- ReliabilityContractAttribute.cs
- ConfigXmlComment.cs
- OleDbParameter.cs
- EmbossBitmapEffect.cs
- SqlExpander.cs
- KeysConverter.cs
- DataGridViewLayoutData.cs
- CustomCredentialPolicy.cs