Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / TrayIconDesigner.cs / 1 / TrayIconDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="System.Windows.Forms.Design.NotifyIconDesigner..ctor()")] namespace System.Windows.Forms.Design { using Microsoft.Win32; using System; using System.Design; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Windows.Forms; ////// /// This is the designer for OpenFileDialog components. /// internal class NotifyIconDesigner : ComponentDesigner { private DesignerActionListCollection _actionLists; ////// public override void InitializeNewComponent(IDictionary defaultValues) { base.InitializeNewComponent(defaultValues); NotifyIcon icon = (NotifyIcon)Component; icon.Visible = true; } public override DesignerActionListCollection ActionLists { get { if (_actionLists == null) { _actionLists = new DesignerActionListCollection(); _actionLists.Add(new NotifyIconActionList(this)); } return _actionLists; } } } internal class NotifyIconActionList : DesignerActionList { private NotifyIconDesigner _designer; public NotifyIconActionList(NotifyIconDesigner designer) : base(designer.Component) { _designer = designer; } public void ChooseIcon() { EditorServiceContext.EditValue(_designer, Component, "Icon"); } public override DesignerActionItemCollection GetSortedActionItems() { DesignerActionItemCollection items = new DesignerActionItemCollection(); items.Add(new DesignerActionMethodItem(this, "ChooseIcon", SR.GetString(SR.ChooseIconDisplayName), true)); return items; } } } // 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
- HandleCollector.cs
- ScrollContentPresenter.cs
- NativeBuffer.cs
- CursorConverter.cs
- AccessDataSourceView.cs
- SimpleWebHandlerParser.cs
- RequestDescription.cs
- LiteralLink.cs
- DisplayNameAttribute.cs
- pingexception.cs
- ContentHostHelper.cs
- FragmentQueryProcessor.cs
- ParameterModifier.cs
- DesignerActionMethodItem.cs
- LayoutEvent.cs
- _HeaderInfo.cs
- LazyTextWriterCreator.cs
- ContextBase.cs
- TypeUtil.cs
- CodeBlockBuilder.cs
- BindableAttribute.cs
- XmlCharCheckingWriter.cs
- SerialErrors.cs
- GetWinFXPath.cs
- CompositeDataBoundControl.cs
- DoubleCollectionConverter.cs
- OleDbTransaction.cs
- Literal.cs
- BinaryUtilClasses.cs
- CommonDialog.cs
- SrgsItemList.cs
- ContextMarshalException.cs
- exports.cs
- ServiceRouteHandler.cs
- CookielessHelper.cs
- EventLogInformation.cs
- BitmapImage.cs
- RotationValidation.cs
- RNGCryptoServiceProvider.cs
- Error.cs
- TableAdapterManagerHelper.cs
- SweepDirectionValidation.cs
- AutomationProperties.cs
- DataServiceExpressionVisitor.cs
- EncoderFallback.cs
- ContextInformation.cs
- DataIdProcessor.cs
- assemblycache.cs
- MatchingStyle.cs
- DesignOnlyAttribute.cs
- ProcessStartInfo.cs
- MarginCollapsingState.cs
- Variable.cs
- MenuRenderer.cs
- ConditionalExpression.cs
- BmpBitmapDecoder.cs
- NameValueConfigurationElement.cs
- COM2AboutBoxPropertyDescriptor.cs
- TreeViewImageKeyConverter.cs
- EntityTypeBase.cs
- SafeReversePInvokeHandle.cs
- SerializationObjectManager.cs
- TemplateControlParser.cs
- CompModSwitches.cs
- InstanceCompleteException.cs
- CodeGenerator.cs
- RangeValueProviderWrapper.cs
- Range.cs
- InkCanvasSelection.cs
- ObjectDataSourceFilteringEventArgs.cs
- BaseCollection.cs
- DataBindingCollectionEditor.cs
- MimeFormImporter.cs
- UInt64Storage.cs
- EditorOptionAttribute.cs
- SafeFileHandle.cs
- ObjectView.cs
- XmlSchemaSimpleContent.cs
- HttpConfigurationContext.cs
- InfoCardSymmetricCrypto.cs
- CreateUserWizard.cs
- ValidationResult.cs
- TextTreeNode.cs
- Transform3DGroup.cs
- ThreadAttributes.cs
- SqlTypesSchemaImporter.cs
- Debugger.cs
- _DisconnectOverlappedAsyncResult.cs
- SerialErrors.cs
- DataTableReaderListener.cs
- NavigateEvent.cs
- UpdateCommandGenerator.cs
- GACIdentityPermission.cs
- BCLDebug.cs
- WindowsFormsSectionHandler.cs
- ParameterRetriever.cs
- SecurityDescriptor.cs
- DirectoryObjectSecurity.cs
- AsymmetricKeyExchangeDeformatter.cs
- MessageDesigner.cs