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
- TypedDataSourceCodeGenerator.cs
- DesignerLabelAdapter.cs
- DeploymentSection.cs
- NodeInfo.cs
- UriTemplateTrieNode.cs
- processwaithandle.cs
- AsynchronousChannelMergeEnumerator.cs
- CategoryGridEntry.cs
- TabRenderer.cs
- _ListenerAsyncResult.cs
- IntellisenseTextBox.designer.cs
- WebExceptionStatus.cs
- AttributeQuery.cs
- AutoScrollExpandMessageFilter.cs
- EventLogPermissionHolder.cs
- ObjectIDGenerator.cs
- SystemWebSectionGroup.cs
- Exceptions.cs
- ApplicationSecurityInfo.cs
- InputBindingCollection.cs
- MessageEncodingBindingElementImporter.cs
- XmlText.cs
- TableStyle.cs
- EdmToObjectNamespaceMap.cs
- ParameterBinding.cs
- CodeSubDirectoriesCollection.cs
- Type.cs
- SecurityKeyIdentifierClause.cs
- SerialPinChanges.cs
- LinearGradientBrush.cs
- WebServiceMethodData.cs
- AggregateNode.cs
- ParenthesizePropertyNameAttribute.cs
- ProgressBarRenderer.cs
- QueryExpr.cs
- ExpandoClass.cs
- DocumentViewerConstants.cs
- DataFieldEditor.cs
- Color.cs
- PrintPreviewControl.cs
- FormViewRow.cs
- ElementAtQueryOperator.cs
- EventLogPermissionEntryCollection.cs
- NetTcpSecurityElement.cs
- GenerateDerivedKeyRequest.cs
- SystemFonts.cs
- EmptyQuery.cs
- MessageTraceRecord.cs
- OutOfProcStateClientManager.cs
- XmlSchemaSimpleContent.cs
- Parameter.cs
- BinaryMethodMessage.cs
- SecurityListenerSettingsLifetimeManager.cs
- ObjectItemCollection.cs
- HttpListenerRequest.cs
- WorkflowTimerService.cs
- UnsafeNativeMethodsTablet.cs
- TraceListeners.cs
- InvokeSchedule.cs
- FixedSchema.cs
- BamlRecordReader.cs
- LongValidator.cs
- AdRotator.cs
- NativeMethodsOther.cs
- AspProxy.cs
- GenerateTemporaryTargetAssembly.cs
- TranslateTransform3D.cs
- Helper.cs
- FontEmbeddingManager.cs
- WebScriptServiceHost.cs
- TextDecorationCollectionConverter.cs
- AdornerPresentationContext.cs
- VirtualPath.cs
- HtmlShim.cs
- ServerIdentity.cs
- UnauthorizedWebPart.cs
- ListenerUnsafeNativeMethods.cs
- ToolStripPanel.cs
- MetadataWorkspace.cs
- Query.cs
- FunctionDescription.cs
- TextServicesPropertyRanges.cs
- ConfigPathUtility.cs
- IncrementalHitTester.cs
- Guid.cs
- ConfigurationSchemaErrors.cs
- GradientSpreadMethodValidation.cs
- DataControlPagerLinkButton.cs
- MenuStrip.cs
- View.cs
- _AuthenticationState.cs
- DbCommandDefinition.cs
- ConditionCollection.cs
- ThicknessAnimation.cs
- MSAAWinEventWrap.cs
- AnnotationComponentManager.cs
- ConfigurationManagerHelper.cs
- InstanceOwner.cs
- DataSourceCacheDurationConverter.cs
- EmptyEnumerable.cs