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
- XpsSerializationManager.cs
- SerializationAttributes.cs
- XamlStream.cs
- Label.cs
- ResponseBodyWriter.cs
- HandleCollector.cs
- XPathNodePointer.cs
- ContactManager.cs
- XmlSchemaAnnotation.cs
- PoisonMessageException.cs
- EqualityComparer.cs
- XPathAncestorIterator.cs
- ProfileElement.cs
- BevelBitmapEffect.cs
- RecognizerBase.cs
- CacheChildrenQuery.cs
- PersonalizationEntry.cs
- ActivityInstanceMap.cs
- NamespaceListProperty.cs
- CommandValueSerializer.cs
- ListViewItem.cs
- SafeRegistryHandle.cs
- CompareValidator.cs
- SessionParameter.cs
- Schedule.cs
- WebPartUserCapability.cs
- CompilerErrorCollection.cs
- CalendarDateRangeChangingEventArgs.cs
- ProcessModule.cs
- ToolStripDropDownButton.cs
- XmlHierarchicalDataSourceView.cs
- TargetFrameworkAttribute.cs
- DatasetMethodGenerator.cs
- TargetFrameworkAttribute.cs
- Events.cs
- ActivityDesignerHelper.cs
- DataBindingHandlerAttribute.cs
- SubtreeProcessor.cs
- DataViewManagerListItemTypeDescriptor.cs
- DefaultTypeArgumentAttribute.cs
- XmlIgnoreAttribute.cs
- RulePatternOps.cs
- XmlArrayItemAttribute.cs
- DataControlField.cs
- ExecutionEngineException.cs
- SrgsText.cs
- HandoffBehavior.cs
- safex509handles.cs
- InternalControlCollection.cs
- TextModifierScope.cs
- ThrowHelper.cs
- AdornedElementPlaceholder.cs
- tabpagecollectioneditor.cs
- DataGridItemCollection.cs
- ControlCollection.cs
- ProcessHostMapPath.cs
- X509Certificate2Collection.cs
- SecurityTokenAuthenticator.cs
- ContactManager.cs
- DataGridViewCellValidatingEventArgs.cs
- WizardStepBase.cs
- FileRegion.cs
- InlineUIContainer.cs
- ComplexLine.cs
- WebScriptEnablingBehavior.cs
- AssemblyCollection.cs
- Brush.cs
- AttributeCollection.cs
- XhtmlBasicPanelAdapter.cs
- MaterialCollection.cs
- RecipientInfo.cs
- ZipIOCentralDirectoryFileHeader.cs
- ZoneButton.cs
- WebHttpBehavior.cs
- RtfToken.cs
- EntitySetDataBindingList.cs
- StrongName.cs
- FormsIdentity.cs
- StatusBar.cs
- ItemCollection.cs
- NavigationWindowAutomationPeer.cs
- DocumentCollection.cs
- DictionaryChange.cs
- MenuBase.cs
- PtsContext.cs
- TableStyle.cs
- LinkButton.cs
- RoutedEvent.cs
- SecurityPermission.cs
- DesignerLabelAdapter.cs
- QueryResponse.cs
- ParseHttpDate.cs
- AlphabeticalEnumConverter.cs
- DataProviderNameConverter.cs
- RecordConverter.cs
- ResourceManager.cs
- XmlUtf8RawTextWriter.cs
- XmlHierarchyData.cs
- SqlDataSourceQueryEditor.cs
- ItemType.cs