Code:
/ DotNET / DotNET / 8.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
- TransactionContextManager.cs
- DesignerActionItemCollection.cs
- Point3DConverter.cs
- XmlnsPrefixAttribute.cs
- BoundingRectTracker.cs
- SmtpTransport.cs
- MouseBinding.cs
- FileLogRecord.cs
- WebContentFormatHelper.cs
- EntityProviderFactory.cs
- AutomationPatternInfo.cs
- DrawTreeNodeEventArgs.cs
- FileVersion.cs
- GridViewDeletedEventArgs.cs
- CodeEntryPointMethod.cs
- BuildProvider.cs
- ContentValidator.cs
- UndirectedGraph.cs
- RouteValueDictionary.cs
- ExceptionUtil.cs
- sitestring.cs
- LocatorPartList.cs
- ZipPackagePart.cs
- xml.cs
- ScrollBarRenderer.cs
- Query.cs
- PropertyInfo.cs
- DNS.cs
- SafeArrayTypeMismatchException.cs
- InteropDesigner.xaml.cs
- Dynamic.cs
- CompareInfo.cs
- XMLDiffLoader.cs
- Paragraph.cs
- IgnorePropertiesAttribute.cs
- Panel.cs
- DiscoveryMessageSequence.cs
- streamingZipPartStream.cs
- XmlMembersMapping.cs
- ErrorHandler.cs
- TransactionBridge.cs
- AssociatedControlConverter.cs
- Scene3D.cs
- DbProviderFactoriesConfigurationHandler.cs
- BehaviorService.cs
- RegexStringValidatorAttribute.cs
- WebPartDisplayMode.cs
- DetailsViewPagerRow.cs
- XmlDataImplementation.cs
- XmlDataSource.cs
- Exceptions.cs
- WebRequestModuleElementCollection.cs
- Transaction.cs
- ImageKeyConverter.cs
- CompressedStack.cs
- SharedUtils.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- AuthorizationSection.cs
- OracleConnection.cs
- ConfigXmlText.cs
- baseaxisquery.cs
- RowType.cs
- TextTreeText.cs
- SqlDataSourceDesigner.cs
- ClosableStream.cs
- SiteMapDataSourceView.cs
- DataRowComparer.cs
- Point3DAnimationUsingKeyFrames.cs
- RuleSettingsCollection.cs
- HttpHandlerActionCollection.cs
- HtmlWindowCollection.cs
- Hash.cs
- ContentElementAutomationPeer.cs
- mediaeventargs.cs
- ProfessionalColorTable.cs
- DeriveBytes.cs
- DeleteStoreRequest.cs
- NavigationWindowAutomationPeer.cs
- FormViewInsertEventArgs.cs
- XmlAutoDetectWriter.cs
- GPPOINTF.cs
- CorePropertiesFilter.cs
- XslException.cs
- SqlUtils.cs
- HealthMonitoringSectionHelper.cs
- WebBrowserNavigatingEventHandler.cs
- ProtocolsConfigurationHandler.cs
- Rect3D.cs
- Visitors.cs
- RectConverter.cs
- SelectManyQueryOperator.cs
- PointCollectionConverter.cs
- CodePrimitiveExpression.cs
- ByteAnimationBase.cs
- LocalBuilder.cs
- PageStatePersister.cs
- SqlDelegatedTransaction.cs
- ProgressBar.cs
- DataGridViewLayoutData.cs
- DispatcherHooks.cs