Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / ConditionedDesigner.cs / 1305376 / ConditionedDesigner.cs
namespace System.Workflow.Activities { using System; using System.Text; using System.Reflection; using System.Collections; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Drawing.Drawing2D; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; #region Class ConditionedDesigner [ActivityDesignerTheme(typeof(ConditionedDesignerTheme))] internal sealed class IfElseBranchDesigner: SequentialActivityDesigner { #region Properties and Methods public override bool CanBeParentedTo(CompositeActivityDesigner parentActivityDesigner) { if (parentActivityDesigner == null) throw new ArgumentNullException("parentActivity"); if (!(parentActivityDesigner.Activity is IfElseActivity)) return false; return base.CanBeParentedTo(parentActivityDesigner); } #endregion } #endregion #region ConditionedDesignerTheme internal sealed class ConditionedDesignerTheme : CompositeDesignerTheme { public ConditionedDesignerTheme(WorkflowTheme theme) : base(theme) { this.ShowDropShadow = false; this.ConnectorStartCap = LineAnchor.None; this.ConnectorEndCap = LineAnchor.ArrowAnchor; this.ForeColor = Color.FromArgb(0xFF, 0x00, 0x64, 0x00); this.BorderColor = Color.FromArgb(0xFF, 0xE0, 0xE0, 0xE0); this.BorderStyle = DashStyle.Dash; this.BackColorStart = Color.FromArgb(0x00, 0x00, 0x00, 0x00); this.BackColorEnd = Color.FromArgb(0x00, 0x00, 0x00, 0x00); } } #endregion } // 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
- WebPartsPersonalization.cs
- HelpProvider.cs
- ConnectionStringsSection.cs
- SoapReflector.cs
- SystemKeyConverter.cs
- AlignmentYValidation.cs
- GeneralTransform3DTo2DTo3D.cs
- AuthenticationModulesSection.cs
- IdleTimeoutMonitor.cs
- AttributeInfo.cs
- DataServiceQuery.cs
- TreeWalkHelper.cs
- HostProtectionPermission.cs
- Stylesheet.cs
- ClientTargetCollection.cs
- ProviderSettings.cs
- ResourceDescriptionAttribute.cs
- FloaterParagraph.cs
- DataColumnPropertyDescriptor.cs
- ManipulationPivot.cs
- StylusOverProperty.cs
- SQLBinary.cs
- CapabilitiesPattern.cs
- StateManagedCollection.cs
- DefaultWorkflowSchedulerService.cs
- MailHeaderInfo.cs
- GroupQuery.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- FileFormatException.cs
- FillBehavior.cs
- BooleanConverter.cs
- InvokeMethodActivity.cs
- DataException.cs
- Image.cs
- TextRunProperties.cs
- _NegoState.cs
- XmlSchemaElement.cs
- InvokeBinder.cs
- MetafileHeader.cs
- XmlSchemaAttributeGroupRef.cs
- SizeF.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- EpmTargetPathSegment.cs
- SqlBooleanMismatchVisitor.cs
- SchemaElementLookUpTableEnumerator.cs
- InputBuffer.cs
- SectionInformation.cs
- Metafile.cs
- XmlObjectSerializerReadContextComplex.cs
- ConfigurationValidatorAttribute.cs
- MessageBox.cs
- HTMLTagNameToTypeMapper.cs
- _NTAuthentication.cs
- IfElseDesigner.xaml.cs
- IChannel.cs
- ToolStripSettings.cs
- GridViewColumnCollectionChangedEventArgs.cs
- RtfToXamlLexer.cs
- BigInt.cs
- diagnosticsswitches.cs
- Button.cs
- SamlAuthenticationStatement.cs
- CodeGeneratorOptions.cs
- EmptyStringExpandableObjectConverter.cs
- ClientSession.cs
- ArgumentOutOfRangeException.cs
- DataGridAutoFormatDialog.cs
- CodeValidator.cs
- QueryHandler.cs
- SecurityElementBase.cs
- LinkClickEvent.cs
- RSAPKCS1SignatureFormatter.cs
- Attributes.cs
- SqlClientFactory.cs
- HybridObjectCache.cs
- MetafileHeaderWmf.cs
- BindToObject.cs
- ViewCellRelation.cs
- XPathBinder.cs
- DataRow.cs
- ToggleProviderWrapper.cs
- OleAutBinder.cs
- X509CertificateCollection.cs
- EncodingInfo.cs
- UITypeEditor.cs
- PrivateFontCollection.cs
- CannotUnloadAppDomainException.cs
- ArrayExtension.cs
- Function.cs
- DataServiceHostWrapper.cs
- xdrvalidator.cs
- Registry.cs
- AppDomainInstanceProvider.cs
- ObjectParameterCollection.cs
- SystemBrushes.cs
- FolderBrowserDialog.cs
- Typography.cs
- ExpandSegment.cs
- Wildcard.cs
- EditorPartChrome.cs