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
- SQLDateTimeStorage.cs
- UnlockInstanceAsyncResult.cs
- GridViewSelectEventArgs.cs
- DrawingAttributesDefaultValueFactory.cs
- DocumentGridPage.cs
- HebrewCalendar.cs
- XmlSchemaAttributeGroupRef.cs
- Model3D.cs
- InvalidWMPVersionException.cs
- AbandonedMutexException.cs
- SyndicationContent.cs
- Span.cs
- TcpConnectionPoolSettingsElement.cs
- _BufferOffsetSize.cs
- RadioButtonStandardAdapter.cs
- ExpressionHelper.cs
- DataSourceCache.cs
- SoapTypeAttribute.cs
- SafeCancelMibChangeNotify.cs
- UrlAuthorizationModule.cs
- XhtmlBasicPhoneCallAdapter.cs
- RightsManagementInformation.cs
- ComNativeDescriptor.cs
- ListViewEditEventArgs.cs
- OwnerDrawPropertyBag.cs
- Ref.cs
- TextOnlyOutput.cs
- SettingsPropertyIsReadOnlyException.cs
- FillBehavior.cs
- TemplateControlParser.cs
- ToolStrip.cs
- OleDbDataAdapter.cs
- QilExpression.cs
- Drawing.cs
- _HelperAsyncResults.cs
- AttachmentService.cs
- PtsHelper.cs
- TreeViewAutomationPeer.cs
- SecureEnvironment.cs
- SqlEnums.cs
- DataBoundControlParameterTarget.cs
- PowerStatus.cs
- CurrentChangingEventManager.cs
- CTreeGenerator.cs
- WorkflowViewElement.cs
- UserValidatedEventArgs.cs
- SourceFileBuildProvider.cs
- ErrorStyle.cs
- WrappingXamlSchemaContext.cs
- ICollection.cs
- CheckoutException.cs
- ReceiveActivityValidator.cs
- X509SecurityTokenParameters.cs
- OciHandle.cs
- ObservableCollection.cs
- TypedReference.cs
- DbSourceCommand.cs
- GlyphRun.cs
- WorkflowIdleElement.cs
- TraceXPathNavigator.cs
- PropertyDescriptor.cs
- SkipQueryOptionExpression.cs
- CacheHelper.cs
- FloaterBaseParagraph.cs
- RepeaterItemEventArgs.cs
- ByteStream.cs
- ErrorFormatter.cs
- DockPanel.cs
- MarkupProperty.cs
- ProxyGenerator.cs
- CatalogPart.cs
- AsynchronousChannelMergeEnumerator.cs
- Perspective.cs
- DebuggerAttributes.cs
- Preprocessor.cs
- MethodAccessException.cs
- ConfigXmlAttribute.cs
- DragStartedEventArgs.cs
- X509Extension.cs
- HttpRuntime.cs
- NetworkCredential.cs
- ADMembershipUser.cs
- SafeNativeMethodsCLR.cs
- BitmapImage.cs
- AuthenticationException.cs
- PackageRelationship.cs
- OperatingSystem.cs
- MetadataReference.cs
- ExpandSegment.cs
- CompoundFileIOPermission.cs
- TypeConverterHelper.cs
- PropertyStore.cs
- XmlRawWriter.cs
- SoapExtensionStream.cs
- XsltLibrary.cs
- ToolboxItemAttribute.cs
- PackageDigitalSignature.cs
- BamlCollectionHolder.cs
- XmlStreamStore.cs
- RadioButtonStandardAdapter.cs