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
- RepeaterItemEventArgs.cs
- AnimationClock.cs
- PageTheme.cs
- AbstractExpressions.cs
- ClientConvert.cs
- TableDetailsRow.cs
- TimeSpanFormat.cs
- WebControlsSection.cs
- Globals.cs
- ListItem.cs
- SafeCertificateStore.cs
- WebPartsSection.cs
- BitmapCodecInfo.cs
- AssemblyBuilder.cs
- PeerCollaborationPermission.cs
- CertificateManager.cs
- BaseHashHelper.cs
- Process.cs
- TableLayoutRowStyleCollection.cs
- ResourceDictionaryCollection.cs
- DesigntimeLicenseContextSerializer.cs
- StreamGeometry.cs
- RtfToXamlReader.cs
- ConstraintEnumerator.cs
- FrameworkEventSource.cs
- HtmlShimManager.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlKeywords.cs
- Int32.cs
- WmlSelectionListAdapter.cs
- FileCodeGroup.cs
- TreeNode.cs
- ViewRendering.cs
- IUnknownConstantAttribute.cs
- OpenFileDialog.cs
- ClientSideQueueItem.cs
- DiffuseMaterial.cs
- SearchForVirtualItemEventArgs.cs
- CompiledScopeCriteria.cs
- HebrewNumber.cs
- OdbcHandle.cs
- AnnotationResourceCollection.cs
- TransformCollection.cs
- MemberHolder.cs
- HtmlProps.cs
- DataGridViewCellConverter.cs
- CTreeGenerator.cs
- TableDetailsRow.cs
- XPathException.cs
- EdmPropertyAttribute.cs
- StatusBar.cs
- MappedMetaModel.cs
- ProfileModule.cs
- DelegatingTypeDescriptionProvider.cs
- SerializationHelper.cs
- ErrorHandler.cs
- DocumentSchemaValidator.cs
- MeshGeometry3D.cs
- CalendarDay.cs
- ParentUndoUnit.cs
- TreeNodeSelectionProcessor.cs
- MethodCallTranslator.cs
- XmlCharType.cs
- COM2TypeInfoProcessor.cs
- CheckBoxFlatAdapter.cs
- WebProxyScriptElement.cs
- ServiceContractViewControl.Designer.cs
- COAUTHIDENTITY.cs
- XmlCodeExporter.cs
- OciHandle.cs
- HtmlTitle.cs
- SafeRegistryKey.cs
- SpeechSeg.cs
- XmlReflectionImporter.cs
- XmlTextReader.cs
- LinqDataSourceEditData.cs
- WorkerRequest.cs
- RootAction.cs
- HiddenFieldPageStatePersister.cs
- DockPatternIdentifiers.cs
- Bold.cs
- EntityContainerEntitySetDefiningQuery.cs
- ClientApiGenerator.cs
- SmtpCommands.cs
- Version.cs
- SafeFileHandle.cs
- CompModSwitches.cs
- WorkflowInstanceProxy.cs
- ModelTreeEnumerator.cs
- PackageRelationship.cs
- ConfigurationProperty.cs
- RelatedView.cs
- DesignSurfaceManager.cs
- DocumentViewerAutomationPeer.cs
- ArrayItemReference.cs
- CachingHintValidation.cs
- IISUnsafeMethods.cs
- ColumnMapCopier.cs
- Int32Rect.cs
- StrokeSerializer.cs