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
- ComAwareEventInfo.cs
- ObjectAnimationBase.cs
- SecurityAttributeGenerationHelper.cs
- FlowDocumentReaderAutomationPeer.cs
- SerializationFieldInfo.cs
- CheckBoxAutomationPeer.cs
- PlaceHolder.cs
- ALinqExpressionVisitor.cs
- MsdtcClusterUtils.cs
- Point4D.cs
- BinaryWriter.cs
- NamespaceInfo.cs
- BaseCAMarshaler.cs
- GlobalItem.cs
- ArgumentOutOfRangeException.cs
- CustomAssemblyResolver.cs
- ResolveCompletedEventArgs.cs
- TabControlAutomationPeer.cs
- NullToBooleanConverter.cs
- ObjectPropertyMapping.cs
- PartitionerStatic.cs
- ReceiveErrorHandling.cs
- CompiledAction.cs
- SymbolUsageManager.cs
- ThreadStateException.cs
- WindowsRichEdit.cs
- PriorityBinding.cs
- HostingEnvironmentWrapper.cs
- ComponentResourceManager.cs
- NativeCompoundFileAPIs.cs
- ConnectionInterfaceCollection.cs
- CellPartitioner.cs
- StrongNameIdentityPermission.cs
- CheckPair.cs
- DictionaryContent.cs
- FixedSOMTableCell.cs
- XmlSortKeyAccumulator.cs
- InvalidEnumArgumentException.cs
- ObjectItemCachedAssemblyLoader.cs
- LinqDataSourceSelectEventArgs.cs
- DashStyle.cs
- Point4DConverter.cs
- KoreanCalendar.cs
- UiaCoreTypesApi.cs
- X509Extension.cs
- StrokeNodeEnumerator.cs
- WindowsFont.cs
- Transform.cs
- TableLayoutColumnStyleCollection.cs
- TextServicesManager.cs
- HebrewNumber.cs
- DocumentPageTextView.cs
- BoundConstants.cs
- PackageRelationship.cs
- Utils.cs
- InsufficientMemoryException.cs
- HtmlInputImage.cs
- XPathParser.cs
- TabControlToolboxItem.cs
- TextBoxLine.cs
- PasswordRecovery.cs
- MailBnfHelper.cs
- CompensationParticipant.cs
- EdmToObjectNamespaceMap.cs
- TemplatedAdorner.cs
- EntityStoreSchemaFilterEntry.cs
- WindowsScroll.cs
- ApplyImportsAction.cs
- Privilege.cs
- ThicknessAnimation.cs
- FieldAccessException.cs
- DynamicDataResources.Designer.cs
- BrowsableAttribute.cs
- DelimitedListTraceListener.cs
- InstanceOwner.cs
- ConsoleKeyInfo.cs
- CommandHelpers.cs
- TemplateBamlTreeBuilder.cs
- Compiler.cs
- WindowClosedEventArgs.cs
- HttpWebRequestElement.cs
- XmlNodeReader.cs
- FtpWebRequest.cs
- StylusPointDescription.cs
- SqlDependencyListener.cs
- PageCatalogPart.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- XmlMessageFormatter.cs
- ProjectionPath.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- WindowsListViewGroupHelper.cs
- Odbc32.cs
- EntityConnectionStringBuilderItem.cs
- PresentationSource.cs
- EntityCommandExecutionException.cs
- ValidationResult.cs
- NamespaceImport.cs
- DesignTimeParseData.cs
- CapiSymmetricAlgorithm.cs
- PanelDesigner.cs