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
- ToolTipService.cs
- WaitHandleCannotBeOpenedException.cs
- SchemaElementDecl.cs
- HttpVersion.cs
- GlyphRunDrawing.cs
- DateTimeConverter2.cs
- GradientStopCollection.cs
- ProtocolsConfiguration.cs
- ScriptMethodAttribute.cs
- OrderByLifter.cs
- ErrorStyle.cs
- HttpHandlerActionCollection.cs
- SystemMulticastIPAddressInformation.cs
- Input.cs
- SemanticValue.cs
- SecurityResources.cs
- TextTreeText.cs
- DocumentGridContextMenu.cs
- SystemIPInterfaceStatistics.cs
- Image.cs
- CodeTryCatchFinallyStatement.cs
- BitmapEffect.cs
- FileReservationCollection.cs
- PresentationTraceSources.cs
- LZCodec.cs
- SqlDataAdapter.cs
- PermissionToken.cs
- MachineKeyConverter.cs
- LiteralControl.cs
- PermissionSet.cs
- TripleDES.cs
- XmlQueryType.cs
- TemplatedWizardStep.cs
- XmlUtil.cs
- MonitoringDescriptionAttribute.cs
- BamlLocalizationDictionary.cs
- listitem.cs
- AxisAngleRotation3D.cs
- SqlDataRecord.cs
- DateTime.cs
- SmiMetaDataProperty.cs
- Int64Animation.cs
- DataGridRelationshipRow.cs
- ColorAnimation.cs
- DbConnectionHelper.cs
- GCHandleCookieTable.cs
- PackageRelationship.cs
- GeneralTransform3DCollection.cs
- SystemBrushes.cs
- Win32PrintDialog.cs
- ReadOnlyCollectionBase.cs
- OneWayBindingElementImporter.cs
- OutputScopeManager.cs
- VisualCollection.cs
- SqlRecordBuffer.cs
- GrammarBuilderWildcard.cs
- HScrollBar.cs
- ManifestSignedXml.cs
- HttpServerVarsCollection.cs
- HierarchicalDataBoundControlAdapter.cs
- GridSplitter.cs
- Command.cs
- AuthenticateEventArgs.cs
- ColumnCollection.cs
- InheritanceAttribute.cs
- BamlResourceDeserializer.cs
- SqlWebEventProvider.cs
- counter.cs
- CompiledQueryCacheKey.cs
- CoTaskMemHandle.cs
- EventLogPermission.cs
- DecimalKeyFrameCollection.cs
- PageClientProxyGenerator.cs
- AsyncOperationManager.cs
- SrgsDocument.cs
- HtmlInputImage.cs
- Suspend.cs
- AssemblyNameProxy.cs
- ObfuscateAssemblyAttribute.cs
- EventNotify.cs
- SoapAttributeAttribute.cs
- FixedDocument.cs
- ServiceRoute.cs
- Button.cs
- UnlockCardRequest.cs
- JournalEntryListConverter.cs
- UrlPath.cs
- TimeZone.cs
- oledbmetadatacolumnnames.cs
- TemplatePartAttribute.cs
- CompilerParameters.cs
- MediaScriptCommandRoutedEventArgs.cs
- TransactionScopeDesigner.cs
- AdapterUtil.cs
- SmtpClient.cs
- ChildTable.cs
- GraphicsContainer.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ImmutableObjectAttribute.cs
- TcpProcessProtocolHandler.cs