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
- ParameterEditorUserControl.cs
- CellPartitioner.cs
- AspNetHostingPermission.cs
- SimpleTypeResolver.cs
- SocketElement.cs
- ChannelServices.cs
- EntitySqlQueryCacheEntry.cs
- ToolboxComponentsCreatingEventArgs.cs
- basevalidator.cs
- BitmapSizeOptions.cs
- ProviderSettings.cs
- BaseCodePageEncoding.cs
- TimeoutTimer.cs
- X509CertificateCollection.cs
- SystemNetworkInterface.cs
- ProcessHost.cs
- ReflectionUtil.cs
- DataColumn.cs
- LoginView.cs
- Win32PrintDialog.cs
- PolyLineSegmentFigureLogic.cs
- XmlResolver.cs
- HtmlInputReset.cs
- ApplicationCommands.cs
- XmlTextReaderImplHelpers.cs
- MessageSecurityException.cs
- Cast.cs
- ResXBuildProvider.cs
- ContentType.cs
- EnterpriseServicesHelper.cs
- VisualCollection.cs
- ResourcesGenerator.cs
- VarRemapper.cs
- Geometry3D.cs
- HtmlContainerControl.cs
- ComponentTray.cs
- SafeBitVector32.cs
- EntityClientCacheEntry.cs
- BookmarkManager.cs
- XslAst.cs
- PrivacyNoticeBindingElementImporter.cs
- SessionEndingEventArgs.cs
- ReferenceEqualityComparer.cs
- FixedTextSelectionProcessor.cs
- IPGlobalProperties.cs
- ToolboxDataAttribute.cs
- XmlSchemaGroup.cs
- DelegateArgumentValue.cs
- CheckBoxList.cs
- Attributes.cs
- DummyDataSource.cs
- SmiEventSink_Default.cs
- XpsSerializationManagerAsync.cs
- _Semaphore.cs
- StateRuntime.cs
- WebBrowserDocumentCompletedEventHandler.cs
- FileNotFoundException.cs
- ButtonBase.cs
- GridViewCommandEventArgs.cs
- DBCommand.cs
- XmlCustomFormatter.cs
- IdentityReference.cs
- _AutoWebProxyScriptWrapper.cs
- ProcessModelSection.cs
- SerialReceived.cs
- ViewgenGatekeeper.cs
- EventLogPermission.cs
- GeometryGroup.cs
- RelatedImageListAttribute.cs
- HwndSubclass.cs
- FormViewDeleteEventArgs.cs
- DataRecordInternal.cs
- login.cs
- XmlComplianceUtil.cs
- PenThread.cs
- DbConnectionPoolGroupProviderInfo.cs
- DataColumnChangeEvent.cs
- EntityExpressionVisitor.cs
- RuntimeEnvironment.cs
- DocumentXmlWriter.cs
- StreamInfo.cs
- mansign.cs
- DesignTimeTemplateParser.cs
- ShapingEngine.cs
- MD5.cs
- OracleCommand.cs
- PresentationAppDomainManager.cs
- ItemContainerGenerator.cs
- Helpers.cs
- SqlReorderer.cs
- PluralizationServiceUtil.cs
- Dump.cs
- XmlDocumentSurrogate.cs
- CompressedStack.cs
- DBParameter.cs
- ToolboxItem.cs
- HttpCachePolicy.cs
- MaterialGroup.cs
- GenericTypeParameterBuilder.cs
- GridViewEditEventArgs.cs