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
- TraceSwitch.cs
- Odbc32.cs
- RegularExpressionValidator.cs
- PageCatalogPart.cs
- __Error.cs
- FieldBuilder.cs
- DateTimeUtil.cs
- Debugger.cs
- TableLayoutSettingsTypeConverter.cs
- ReferenceService.cs
- RectValueSerializer.cs
- KeyGesture.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DataGridViewRowCollection.cs
- ParamArrayAttribute.cs
- SHA512CryptoServiceProvider.cs
- PopupRootAutomationPeer.cs
- RoleManagerSection.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- ConfigXmlComment.cs
- NetworkAddressChange.cs
- RectangleF.cs
- WebAdminConfigurationHelper.cs
- HttpStreamMessageEncoderFactory.cs
- SchemaTypeEmitter.cs
- IndexingContentUnit.cs
- SecurityToken.cs
- ClientTargetSection.cs
- DragAssistanceManager.cs
- BitmapMetadata.cs
- Int64Storage.cs
- RadialGradientBrush.cs
- SignatureHelper.cs
- Token.cs
- SiteMapHierarchicalDataSourceView.cs
- AdjustableArrowCap.cs
- FunctionDetailsReader.cs
- HostingEnvironment.cs
- RectangleHotSpot.cs
- CharacterHit.cs
- SocketPermission.cs
- EntityAdapter.cs
- SatelliteContractVersionAttribute.cs
- RtfControlWordInfo.cs
- TableLayoutCellPaintEventArgs.cs
- ISFClipboardData.cs
- SignatureToken.cs
- SQLInt64Storage.cs
- x509store.cs
- CodeMemberEvent.cs
- BitHelper.cs
- TypedElement.cs
- DecimalMinMaxAggregationOperator.cs
- ProgressBarRenderer.cs
- MethodAccessException.cs
- XmlSchemaInferenceException.cs
- RuleProcessor.cs
- MonthChangedEventArgs.cs
- WebControlsSection.cs
- FileFormatException.cs
- Int32Rect.cs
- OutputCacheSettingsSection.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- XmlSchemaExternal.cs
- FactoryGenerator.cs
- TextBoxBase.cs
- OleDbMetaDataFactory.cs
- CachingParameterInspector.cs
- PolicyException.cs
- DocumentAutomationPeer.cs
- bindurihelper.cs
- XmlObjectSerializerReadContext.cs
- DependencyPropertyHelper.cs
- SqlConnectionString.cs
- _HTTPDateParse.cs
- PersonalizableAttribute.cs
- HealthMonitoringSectionHelper.cs
- __ConsoleStream.cs
- DynamicPropertyHolder.cs
- Accessible.cs
- SkewTransform.cs
- DataError.cs
- TargetException.cs
- NetworkInterface.cs
- TextEditorLists.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- PropertyFilterAttribute.cs
- Cell.cs
- Options.cs
- HttpResponseInternalBase.cs
- BitmapEffectGeneralTransform.cs
- ToolstripProfessionalRenderer.cs
- OverrideMode.cs
- UpDownBase.cs
- PeerIPHelper.cs
- BrowserCapabilitiesFactory.cs
- ResXResourceSet.cs
- ScriptRef.cs
- ErasingStroke.cs
- WorkItem.cs