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
- NGCSerializationManagerAsync.cs
- XmlAtomicValue.cs
- GeometryDrawing.cs
- DetailsViewPageEventArgs.cs
- TextEditor.cs
- ReferencedCollectionType.cs
- DataGridViewLinkCell.cs
- PriorityRange.cs
- MsmqIntegrationOutputChannel.cs
- CommandLibraryHelper.cs
- SqlException.cs
- EntityContainerRelationshipSet.cs
- Storyboard.cs
- CodeArrayIndexerExpression.cs
- OperationCanceledException.cs
- CaseInsensitiveOrdinalStringComparer.cs
- TypeToken.cs
- FormsIdentity.cs
- SystemIPv4InterfaceProperties.cs
- ImageFormatConverter.cs
- NavigationService.cs
- SqlInfoMessageEvent.cs
- KeyedHashAlgorithm.cs
- XmlExpressionDumper.cs
- MsmqIntegrationBindingElement.cs
- TextAnchor.cs
- TypeElement.cs
- PrePrepareMethodAttribute.cs
- MissingMemberException.cs
- FileStream.cs
- ListSortDescriptionCollection.cs
- _ListenerResponseStream.cs
- xmlsaver.cs
- Point3DCollection.cs
- RectangleConverter.cs
- HiddenField.cs
- Profiler.cs
- AsyncResult.cs
- ResourceManagerWrapper.cs
- ListViewItemEventArgs.cs
- WebServiceData.cs
- SiteMapNodeItem.cs
- IncrementalHitTester.cs
- RenderData.cs
- SystemFonts.cs
- FilteredReadOnlyMetadataCollection.cs
- EmptyEnumerator.cs
- ComplexPropertyEntry.cs
- WmlListAdapter.cs
- DbConnectionOptions.cs
- DesignerView.cs
- OdbcInfoMessageEvent.cs
- SerializableTypeCodeDomSerializer.cs
- Int32AnimationBase.cs
- Rotation3DKeyFrameCollection.cs
- Timer.cs
- Line.cs
- StatusStrip.cs
- XmlILConstructAnalyzer.cs
- ToolStripManager.cs
- PlanCompiler.cs
- EventEntry.cs
- CatalogZone.cs
- Metadata.cs
- PasswordBox.cs
- FormViewDeletedEventArgs.cs
- DispatcherTimer.cs
- FormViewDeleteEventArgs.cs
- Size3DValueSerializer.cs
- CalendarModeChangedEventArgs.cs
- streamingZipPartStream.cs
- XamlToRtfWriter.cs
- XmlEncodedRawTextWriter.cs
- SplitContainer.cs
- ConfigXmlElement.cs
- DataControlFieldCell.cs
- ResXResourceReader.cs
- IndentTextWriter.cs
- TextServicesDisplayAttribute.cs
- TextPointerBase.cs
- LockedActivityGlyph.cs
- DbResourceAllocator.cs
- AsyncContentLoadedEventArgs.cs
- PropertyStore.cs
- UserPersonalizationStateInfo.cs
- RuntimeEnvironment.cs
- IconHelper.cs
- BamlStream.cs
- versioninfo.cs
- ActivityExecutorDelegateInfo.cs
- RegexStringValidatorAttribute.cs
- Rectangle.cs
- SignedPkcs7.cs
- SynchronizationContext.cs
- XhtmlCssHandler.cs
- XhtmlTextWriter.cs
- SafeNativeMethodsMilCoreApi.cs
- WindowsGraphics2.cs
- SystemWebSectionGroup.cs
- Triplet.cs