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
- hresults.cs
- SafeViewOfFileHandle.cs
- HtmlProps.cs
- QilExpression.cs
- DocumentPageHost.cs
- Visitor.cs
- DefaultHttpHandler.cs
- CqlParser.cs
- MsmqIntegrationBindingElement.cs
- MailSettingsSection.cs
- TableLayoutSettings.cs
- EnumCodeDomSerializer.cs
- ExtendedPropertyDescriptor.cs
- NamespaceTable.cs
- ReaderOutput.cs
- URLAttribute.cs
- WebReferenceOptions.cs
- Invariant.cs
- SqlGenerator.cs
- ContentFilePart.cs
- OuterGlowBitmapEffect.cs
- CompoundFileIOPermission.cs
- AppearanceEditorPart.cs
- Expressions.cs
- CodeSnippetCompileUnit.cs
- MessageSecurityVersionConverter.cs
- AddInServer.cs
- HttpRawResponse.cs
- Freezable.cs
- Assembly.cs
- BuildResult.cs
- TextSelectionHelper.cs
- ObjectItemCollection.cs
- Pair.cs
- AttachedPropertyDescriptor.cs
- UriGenerator.cs
- DeviceContexts.cs
- DataControlFieldHeaderCell.cs
- XmlHierarchicalEnumerable.cs
- RichTextBox.cs
- SchemaMerger.cs
- DataSourceCache.cs
- Attributes.cs
- StatusBar.cs
- DeclarativeCatalogPart.cs
- MarshalByRefObject.cs
- BaseAppDomainProtocolHandler.cs
- TableColumn.cs
- RotateTransform3D.cs
- BaseCAMarshaler.cs
- CreateParams.cs
- XmlAutoDetectWriter.cs
- DataServiceExpressionVisitor.cs
- HtmlTable.cs
- EllipseGeometry.cs
- TypeSource.cs
- ClassImporter.cs
- PathTooLongException.cs
- LazyTextWriterCreator.cs
- GenerateTemporaryTargetAssembly.cs
- XmlIgnoreAttribute.cs
- DataTableCollection.cs
- FontSourceCollection.cs
- DbInsertCommandTree.cs
- SystemPens.cs
- CultureInfo.cs
- DoubleAnimationBase.cs
- EndpointDesigner.cs
- FontFamilyConverter.cs
- COM2ICategorizePropertiesHandler.cs
- ConfigurationStrings.cs
- MultiTargetingUtil.cs
- CompModSwitches.cs
- HttpStreamMessageEncoderFactory.cs
- ColumnMapVisitor.cs
- WindowsRegion.cs
- SettingsSavedEventArgs.cs
- ExtenderProvidedPropertyAttribute.cs
- Catch.cs
- SymbolMethod.cs
- HttpWebResponse.cs
- InvalidFilterCriteriaException.cs
- TreeWalker.cs
- QilInvoke.cs
- RegexWriter.cs
- FileAccessException.cs
- Cell.cs
- ReliableSessionBindingElementImporter.cs
- SoapHelper.cs
- ValuePattern.cs
- RadioButtonBaseAdapter.cs
- EntityConnectionStringBuilder.cs
- DefaultExpressionVisitor.cs
- ToolStripControlHost.cs
- WebPageTraceListener.cs
- ListViewGroup.cs
- EntityEntry.cs
- SrgsToken.cs
- _CacheStreams.cs
- HtmlTableRowCollection.cs