Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / WebServiceResponseDesigner.cs / 1305376 / WebServiceResponseDesigner.cs
using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Runtime.Serialization; using System.ComponentModel; using System.ComponentModel.Design; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Workflow.ComponentModel.Compiler; using System.Windows.Forms.Design; using System.Security.Permissions; using System.Drawing; using System.Drawing.Design; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace System.Workflow.Activities { [ActivityDesignerTheme(typeof(WebServiceResponseDesignerTheme))] internal sealed class WebServiceResponseDesigner : ActivityDesigner { #region Properties and Methods protected override void PreFilterProperties(IDictionary properties) { base.PreFilterProperties(properties); ITypeProvider typeProvider = (ITypeProvider)GetService(typeof(ITypeProvider)); if (typeProvider == null) throw new InvalidOperationException(SR.GetString(SR.General_MissingService, typeof(ITypeProvider).FullName)); WebServiceOutputActivity webServiceResponse = this.Activity as WebServiceOutputActivity; webServiceResponse.GetParameterPropertyDescriptors(properties); } protected override void OnActivityChanged(ActivityChangedEventArgs e) { base.OnActivityChanged(e); if (e.Member != null) { // If the receive activity id changed, clear out parameters. if (e.Member.Name == "InputActivityName") { (e.Activity as WebServiceOutputActivity).ParameterBindings.Clear(); TypeDescriptor.Refresh(e.Activity); } } } #endregion } #region WebServiceResponseDesignerTheme internal sealed class WebServiceResponseDesignerTheme : ActivityDesignerTheme { public WebServiceResponseDesignerTheme(WorkflowTheme theme) : base(theme) { this.ForeColor = Color.FromArgb(0xFF, 0x00, 0x00, 0x00); this.BorderColor = Color.FromArgb(0xFF, 0x94, 0xB6, 0xF7); this.BorderStyle = DashStyle.Solid; this.BackColorStart = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xDF); this.BackColorEnd = Color.FromArgb(0xFF, 0xA5, 0xC3, 0xF7); this.BackgroundStyle = LinearGradientMode.Horizontal; } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Runtime.Serialization; using System.ComponentModel; using System.ComponentModel.Design; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Workflow.ComponentModel.Compiler; using System.Windows.Forms.Design; using System.Security.Permissions; using System.Drawing; using System.Drawing.Design; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace System.Workflow.Activities { [ActivityDesignerTheme(typeof(WebServiceResponseDesignerTheme))] internal sealed class WebServiceResponseDesigner : ActivityDesigner { #region Properties and Methods protected override void PreFilterProperties(IDictionary properties) { base.PreFilterProperties(properties); ITypeProvider typeProvider = (ITypeProvider)GetService(typeof(ITypeProvider)); if (typeProvider == null) throw new InvalidOperationException(SR.GetString(SR.General_MissingService, typeof(ITypeProvider).FullName)); WebServiceOutputActivity webServiceResponse = this.Activity as WebServiceOutputActivity; webServiceResponse.GetParameterPropertyDescriptors(properties); } protected override void OnActivityChanged(ActivityChangedEventArgs e) { base.OnActivityChanged(e); if (e.Member != null) { // If the receive activity id changed, clear out parameters. if (e.Member.Name == "InputActivityName") { (e.Activity as WebServiceOutputActivity).ParameterBindings.Clear(); TypeDescriptor.Refresh(e.Activity); } } } #endregion } #region WebServiceResponseDesignerTheme internal sealed class WebServiceResponseDesignerTheme : ActivityDesignerTheme { public WebServiceResponseDesignerTheme(WorkflowTheme theme) : base(theme) { this.ForeColor = Color.FromArgb(0xFF, 0x00, 0x00, 0x00); this.BorderColor = Color.FromArgb(0xFF, 0x94, 0xB6, 0xF7); this.BorderStyle = DashStyle.Solid; this.BackColorStart = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xDF); this.BackColorEnd = Color.FromArgb(0xFF, 0xA5, 0xC3, 0xF7); this.BackgroundStyle = LinearGradientMode.Horizontal; } } #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
- Camera.cs
- _NtlmClient.cs
- DocumentManager.cs
- ConfigXmlElement.cs
- XmlNamespaceMappingCollection.cs
- SqlDataSourceCache.cs
- ChameleonKey.cs
- FileDialogCustomPlace.cs
- SqlFacetAttribute.cs
- ParserStreamGeometryContext.cs
- ThaiBuddhistCalendar.cs
- XmlUrlResolver.cs
- ImmutableObjectAttribute.cs
- UriTemplateEquivalenceComparer.cs
- XamlPoint3DCollectionSerializer.cs
- ContentElement.cs
- DataGridViewRowConverter.cs
- LicenseException.cs
- CustomValidator.cs
- SettingsPropertyIsReadOnlyException.cs
- SingleAnimationUsingKeyFrames.cs
- OleDbCommand.cs
- EncryptedKeyIdentifierClause.cs
- SurrogateSelector.cs
- RadioButtonPopupAdapter.cs
- ImageFormatConverter.cs
- CodeTypeConstructor.cs
- StateItem.cs
- UriSection.cs
- MobileControlPersister.cs
- CodeAttributeArgument.cs
- CustomAttributeSerializer.cs
- _HelperAsyncResults.cs
- SID.cs
- LingerOption.cs
- DirectoryInfo.cs
- StringUtil.cs
- DelegatingMessage.cs
- DocumentCollection.cs
- SR.cs
- EndEvent.cs
- HttpModuleCollection.cs
- ChangeConflicts.cs
- UTF7Encoding.cs
- XmlEncoding.cs
- SpellerStatusTable.cs
- OSFeature.cs
- ComponentCollection.cs
- PageAsyncTaskManager.cs
- Calendar.cs
- GenerateScriptTypeAttribute.cs
- SqlRewriteScalarSubqueries.cs
- StackBuilderSink.cs
- LocationSectionRecord.cs
- DispatcherHookEventArgs.cs
- PerfProviderCollection.cs
- InvalidEnumArgumentException.cs
- IsolatedStorageException.cs
- CssStyleCollection.cs
- ToolStripDropDownItemDesigner.cs
- IncrementalHitTester.cs
- ISAPIWorkerRequest.cs
- RectValueSerializer.cs
- TiffBitmapEncoder.cs
- DBCommandBuilder.cs
- ScriptIgnoreAttribute.cs
- URLIdentityPermission.cs
- TrustSection.cs
- ComponentCodeDomSerializer.cs
- PrtTicket_Editor.cs
- ObjectCloneHelper.cs
- BindingFormattingDialog.cs
- ButtonField.cs
- EntityContainerEmitter.cs
- NetSectionGroup.cs
- EventMappingSettingsCollection.cs
- SynchronizationContext.cs
- ExtentKey.cs
- WinFormsSecurity.cs
- TimeSpanStorage.cs
- URL.cs
- AccessorTable.cs
- Completion.cs
- DbProviderConfigurationHandler.cs
- AuthenticationException.cs
- CommandManager.cs
- SystemDiagnosticsSection.cs
- HostedTcpTransportManager.cs
- DataGridViewRowPrePaintEventArgs.cs
- JoinElimination.cs
- LinkUtilities.cs
- OutputCacheEntry.cs
- PropertyPath.cs
- HiddenFieldPageStatePersister.cs
- DetailsViewRowCollection.cs
- DependencyProperty.cs
- BufferModesCollection.cs
- ComponentDispatcher.cs
- HtmlImage.cs
- IApplicationTrustManager.cs