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
- ObjectSecurityT.cs
- DelayLoadType.cs
- ConnectionProviderAttribute.cs
- NavigateEvent.cs
- SqlServer2KCompatibilityAnnotation.cs
- ProcessInfo.cs
- CollectionEditVerbManager.cs
- FacetEnabledSchemaElement.cs
- ObjectToken.cs
- Padding.cs
- WindowsEditBoxRange.cs
- securitycriticaldataClass.cs
- MultipleViewProviderWrapper.cs
- JavascriptCallbackMessageInspector.cs
- BaseTemplateCodeDomTreeGenerator.cs
- EventsTab.cs
- GeneralTransform.cs
- BCLDebug.cs
- WebColorConverter.cs
- InputLanguageSource.cs
- GeneralTransform.cs
- LabelLiteral.cs
- AnimationStorage.cs
- CapiNative.cs
- PasswordBox.cs
- ToolStripSplitButton.cs
- HtmlAnchor.cs
- TreeNodeCollectionEditorDialog.cs
- PropertyCondition.cs
- ConditionCollection.cs
- FileEnumerator.cs
- TimelineGroup.cs
- OrderedParallelQuery.cs
- RenderingEventArgs.cs
- AsyncResult.cs
- List.cs
- KnownColorTable.cs
- WorkflowPageSetupDialog.cs
- SrgsRule.cs
- HtmlInputButton.cs
- Transform.cs
- InternalConfigEventArgs.cs
- MetadataItem.cs
- ViewStateAttachedPropertyFeature.cs
- DocumentApplicationState.cs
- AnnotationResourceChangedEventArgs.cs
- _LoggingObject.cs
- XhtmlConformanceSection.cs
- SchemeSettingElementCollection.cs
- SchemaElementLookUpTable.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- Bold.cs
- EncoderBestFitFallback.cs
- QueryCoreOp.cs
- Int32KeyFrameCollection.cs
- NavigationFailedEventArgs.cs
- IPAddressCollection.cs
- InkCanvasInnerCanvas.cs
- SubpageParagraph.cs
- DesignerFrame.cs
- TiffBitmapEncoder.cs
- StorageSetMapping.cs
- OleDbDataAdapter.cs
- FactoryRecord.cs
- QuestionEventArgs.cs
- TransactedReceiveData.cs
- BlockingCollection.cs
- XsdCachingReader.cs
- QueryableDataSource.cs
- WindowsStreamSecurityUpgradeProvider.cs
- Encoder.cs
- Version.cs
- FileUtil.cs
- DebugInfo.cs
- PagesChangedEventArgs.cs
- ContentWrapperAttribute.cs
- _NativeSSPI.cs
- XmlCountingReader.cs
- TimeSpanSecondsConverter.cs
- OletxResourceManager.cs
- ItemChangedEventArgs.cs
- RsaKeyIdentifierClause.cs
- FixedFindEngine.cs
- XmlName.cs
- AspCompat.cs
- XmlSchemaSubstitutionGroup.cs
- ConnectionStringSettings.cs
- PinnedBufferMemoryStream.cs
- DesignOnlyAttribute.cs
- CriticalHandle.cs
- Sequence.cs
- CertificateManager.cs
- DataControlPagerLinkButton.cs
- MeasurementDCInfo.cs
- DataTableReader.cs
- SharedStatics.cs
- HMACSHA512.cs
- Baml2006ReaderContext.cs
- XmlAttribute.cs
- DeviceSpecific.cs