Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / Workflow / Activities / Design / ServiceOperationViewControl.cs / 1305376 / ServiceOperationViewControl.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Workflow.Activities.Design { using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; internal partial class ServiceOperationViewControl : ListItemViewControl { private object item; public ServiceOperationViewControl() { InitializeComponent(); } public override object Item { get { return item; } set { item = value; ServiceOperationListItem listItem = (ServiceOperationListItem) value; this.operationNameLabel.Text = listItem.Name; if (listItem.ImplementingActivities.Count > 0) { this.isImplementedPictureBox.Visible = true; } else { this.isImplementedPictureBox.Visible = false; } } } public override void UpdateView() { bool focused = (this.DrawItemState & DrawItemState.Focus) == DrawItemState.Focus; bool selected = (this.DrawItemState & DrawItemState.Selected) == DrawItemState.Selected; this.Height = this.operationNameLabel.Height; if (focused && selected) { this.backgroundPanel.BaseColor = System.Drawing.SystemColors.Window; this.backgroundPanel.LightingColor = Color.FromArgb(213, 246, 255); this.backgroundPanel.Glossy = true; this.backgroundPanel.Radius = 1; this.backgroundPanel.BorderColor = Color.FromArgb(155, 230, 255); } else if (selected) { this.backgroundPanel.BaseColor = System.Drawing.SystemColors.Window; this.backgroundPanel.LightingColor = Color.Gainsboro; this.backgroundPanel.Glossy = true; this.backgroundPanel.Radius = 1; this.backgroundPanel.BorderColor = Color.Gainsboro; } else { this.backgroundPanel.BaseColor = Color.Transparent; this.backgroundPanel.LightingColor = Color.Transparent; this.backgroundPanel.Glossy = false; this.backgroundPanel.BorderColor = Color.Transparent; } base.UpdateView(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Graphics.cs
- StreamGeometryContext.cs
- Wizard.cs
- SiteMapNodeItem.cs
- ClientSideQueueItem.cs
- ProvidersHelper.cs
- XmlFormatMapping.cs
- RegularExpressionValidator.cs
- Constant.cs
- ItemMap.cs
- CompilerParameters.cs
- EdmRelationshipRoleAttribute.cs
- WebConfigurationFileMap.cs
- InvalidPipelineStoreException.cs
- ObjectTag.cs
- SolidBrush.cs
- EllipticalNodeOperations.cs
- DataList.cs
- Brushes.cs
- followingsibling.cs
- ContractAdapter.cs
- IndexedString.cs
- ObjectSecurity.cs
- WmpBitmapDecoder.cs
- ComponentGlyph.cs
- Int16Converter.cs
- UnhandledExceptionEventArgs.cs
- GlyphInfoList.cs
- DateTimePicker.cs
- EventItfInfo.cs
- ReadOnlyDictionary.cs
- SqlDataSourceEnumerator.cs
- PageThemeParser.cs
- ThreadSafeList.cs
- PhysicalFontFamily.cs
- TabPage.cs
- NavigationPropertyEmitter.cs
- SQLInt16Storage.cs
- InvokeAction.cs
- TemplateComponentConnector.cs
- OutOfProcStateClientManager.cs
- DocumentPageView.cs
- ConfigXmlComment.cs
- CodeTypeParameter.cs
- EntityClientCacheEntry.cs
- ZipIOLocalFileBlock.cs
- TdsParserSafeHandles.cs
- PcmConverter.cs
- CompoundFileDeflateTransform.cs
- TerminatorSinks.cs
- XmlSchemaInfo.cs
- TreeBuilder.cs
- DocumentPageHost.cs
- EventDrivenDesigner.cs
- PartManifestEntry.cs
- SolidBrush.cs
- DataGridViewRowCollection.cs
- ValidationHelper.cs
- AlternateViewCollection.cs
- NotifyIcon.cs
- JsonByteArrayDataContract.cs
- TextSelectionHighlightLayer.cs
- InputElement.cs
- OpCopier.cs
- Ref.cs
- Matrix3DConverter.cs
- AutomationEventArgs.cs
- MemoryResponseElement.cs
- TypeGenericEnumerableViewSchema.cs
- DateBoldEvent.cs
- ManagedFilter.cs
- WebBrowsableAttribute.cs
- Geometry.cs
- PrePrepareMethodAttribute.cs
- RegularExpressionValidator.cs
- BoolLiteral.cs
- _BaseOverlappedAsyncResult.cs
- Span.cs
- WasHttpHandlersInstallComponent.cs
- HttpContextWrapper.cs
- Rotation3D.cs
- PrintDocument.cs
- ImportStoreException.cs
- TraceFilter.cs
- IArgumentProvider.cs
- PageWrapper.cs
- TextDecoration.cs
- WebPermission.cs
- XmlJsonWriter.cs
- SendOperation.cs
- SiteOfOriginContainer.cs
- MetadataSource.cs
- FormsAuthenticationConfiguration.cs
- FocusChangedEventArgs.cs
- ObjectViewEntityCollectionData.cs
- PathFigureCollectionValueSerializer.cs
- BitmapDecoder.cs
- TableCell.cs
- WebPartConnectionCollection.cs
- SqlConnectionStringBuilder.cs