Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / ColorBuilder.cs / 1 / ColorBuilder.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System; using System.ComponentModel; using System.Diagnostics; ////// /// Helper class used by designers to 'build' color properties by /// launching a color picker. /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public sealed class ColorBuilder { private ColorBuilder() { } ////// /// Launches the Color Picker to build a color. /// public static string BuildColor(IComponent component, System.Windows.Forms.Control owner, string initialColor) { string result = null; ISite componentSite = component.Site; Debug.Assert(componentSite != null, "Component does not have a valid site."); if (componentSite == null) { Debug.Fail("Component does not have a valid site."); return null; } if (componentSite != null) { IWebFormsBuilderUIService builderService = (IWebFormsBuilderUIService)componentSite.GetService(typeof(IWebFormsBuilderUIService)); if (builderService != null) { result = builderService.BuildColor(owner, initialColor); } } return result; } } } // 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
- SmtpReplyReaderFactory.cs
- AsyncPostBackTrigger.cs
- BuildProviderCollection.cs
- Shared.cs
- Update.cs
- MoveSizeWinEventHandler.cs
- WsdlExporter.cs
- DelegateBodyWriter.cs
- IdleTimeoutMonitor.cs
- DelegatingConfigHost.cs
- ModuleElement.cs
- IndexedDataBuffer.cs
- UnhandledExceptionEventArgs.cs
- SqlRecordBuffer.cs
- xml.cs
- updatecommandorderer.cs
- DataList.cs
- TimelineClockCollection.cs
- SQLInt32Storage.cs
- MaskedTextBox.cs
- WebPartActionVerb.cs
- EncryptedKeyIdentifierClause.cs
- QueryStringConverter.cs
- BrushMappingModeValidation.cs
- TrustLevel.cs
- DefaultExpressionVisitor.cs
- EdmRelationshipRoleAttribute.cs
- EdmError.cs
- BufferedResponseStream.cs
- mda.cs
- ThreadStateException.cs
- GroupStyle.cs
- WebEvents.cs
- ECDiffieHellmanCng.cs
- CultureSpecificCharacterBufferRange.cs
- InkSerializer.cs
- FileChangeNotifier.cs
- AppDomainFactory.cs
- SspiNegotiationTokenAuthenticator.cs
- NameNode.cs
- WebHttpEndpoint.cs
- HighlightComponent.cs
- DateBoldEvent.cs
- RegexTree.cs
- GenericUriParser.cs
- BitmapCacheBrush.cs
- DoubleCollection.cs
- BuildManager.cs
- InputBinding.cs
- ETagAttribute.cs
- MimeXmlReflector.cs
- ScrollChrome.cs
- PropertyBuilder.cs
- IListConverters.cs
- ArrayTypeMismatchException.cs
- DataSetMappper.cs
- JournalNavigationScope.cs
- Root.cs
- CodeStatement.cs
- MouseWheelEventArgs.cs
- MasterPageBuildProvider.cs
- ConsoleCancelEventArgs.cs
- WebDisplayNameAttribute.cs
- ControlBindingsCollection.cs
- UnsafeNativeMethods.cs
- FileRecordSequence.cs
- XmlAnyElementAttributes.cs
- AttributeAction.cs
- SizeChangedEventArgs.cs
- IndependentlyAnimatedPropertyMetadata.cs
- BrowserDefinition.cs
- EventTask.cs
- EntityClientCacheKey.cs
- XPathAncestorQuery.cs
- SqlMultiplexer.cs
- AggregateNode.cs
- WorkflowServiceHostFactory.cs
- FileInfo.cs
- TableDetailsCollection.cs
- ProcessInputEventArgs.cs
- SimpleWorkerRequest.cs
- DrawingAttributes.cs
- IListConverters.cs
- CatalogPartDesigner.cs
- UpDownEvent.cs
- Int16AnimationUsingKeyFrames.cs
- TextBlock.cs
- WebPartCloseVerb.cs
- FullTrustAssembliesSection.cs
- LinqDataSourceDisposeEventArgs.cs
- TemplateLookupAction.cs
- HttpApplicationFactory.cs
- ItemsChangedEventArgs.cs
- XPathSingletonIterator.cs
- TimeSpanSecondsConverter.cs
- HttpResponse.cs
- SystemFonts.cs
- TriggerAction.cs
- PerfCounters.cs
- AddInContractAttribute.cs