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
- MimeParameter.cs
- _ServiceNameStore.cs
- WorkflowApplicationTerminatedException.cs
- DataSourceComponent.cs
- ColorTranslator.cs
- ExtractedStateEntry.cs
- OleDbConnectionInternal.cs
- XsltContext.cs
- AppDomainManager.cs
- CatalogZoneBase.cs
- GridViewColumnCollectionChangedEventArgs.cs
- WebPartMovingEventArgs.cs
- ColorContext.cs
- DrawingBrush.cs
- CodeGroup.cs
- TrackingDataItem.cs
- MulticastIPAddressInformationCollection.cs
- SpeechDetectedEventArgs.cs
- Faults.cs
- FtpCachePolicyElement.cs
- StreamWithDictionary.cs
- CompModSwitches.cs
- XmlIncludeAttribute.cs
- NCryptSafeHandles.cs
- EditorZone.cs
- TimeSpanMinutesConverter.cs
- SolidColorBrush.cs
- LicenseContext.cs
- LinqDataSourceValidationException.cs
- ViewBase.cs
- ArcSegment.cs
- ImageListUtils.cs
- TransactionScope.cs
- SchemaMerger.cs
- CodeSnippetStatement.cs
- CompilationUtil.cs
- PrinterResolution.cs
- ADMembershipProvider.cs
- ForwardPositionQuery.cs
- AttributeConverter.cs
- ReflectPropertyDescriptor.cs
- HttpModuleAction.cs
- MouseDevice.cs
- DesignerSerializationManager.cs
- ImmutableObjectAttribute.cs
- WebDescriptionAttribute.cs
- RemotingConfigParser.cs
- TableRow.cs
- PhysicalOps.cs
- TransactionFlowOption.cs
- RoleService.cs
- NumberSubstitution.cs
- Inline.cs
- Stackframe.cs
- PeerEndPoint.cs
- WebScriptServiceHostFactory.cs
- BrowserDefinitionCollection.cs
- TextUtf8RawTextWriter.cs
- UrlPath.cs
- IdentityHolder.cs
- DrawTreeNodeEventArgs.cs
- ThrowOnMultipleAssignment.cs
- TableSectionStyle.cs
- Currency.cs
- DataTemplateKey.cs
- ServiceReference.cs
- ScriptResourceHandler.cs
- HelloOperationCD1AsyncResult.cs
- SQLByte.cs
- SymLanguageVendor.cs
- StrokeNode.cs
- X509Utils.cs
- WpfPayload.cs
- HttpApplication.cs
- UnsafeNativeMethods.cs
- RuleElement.cs
- UInt16.cs
- SequentialOutput.cs
- MDIWindowDialog.cs
- SplineQuaternionKeyFrame.cs
- SparseMemoryStream.cs
- PlacementWorkspace.cs
- XPathNavigatorKeyComparer.cs
- SocketException.cs
- XmlNodeReader.cs
- ExpressionConverter.cs
- StoragePropertyMapping.cs
- DrawingContextDrawingContextWalker.cs
- WSDualHttpSecurityElement.cs
- CodeExpressionCollection.cs
- AspCompat.cs
- SqlProviderServices.cs
- Task.cs
- BrowserDefinition.cs
- ToolboxSnapDragDropEventArgs.cs
- PrintingPermission.cs
- NavigateEvent.cs
- WeakHashtable.cs
- FlowPosition.cs
- ListViewDeletedEventArgs.cs