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
- MessageQueuePermission.cs
- StorageComplexTypeMapping.cs
- MethodSet.cs
- BevelBitmapEffect.cs
- DataSourceSelectArguments.cs
- NonSerializedAttribute.cs
- SynchronizedDispatch.cs
- EditingCoordinator.cs
- _ProxyRegBlob.cs
- LicenseException.cs
- SuppressedPackageProperties.cs
- KnownIds.cs
- UInt64.cs
- DSACryptoServiceProvider.cs
- Message.cs
- BamlLocalizableResourceKey.cs
- AutomationElementIdentifiers.cs
- InternalUserCancelledException.cs
- AlgoModule.cs
- SystemThemeKey.cs
- SafeHandle.cs
- Operand.cs
- WebServiceErrorEvent.cs
- PersonalizationStateInfoCollection.cs
- StateItem.cs
- BigIntegerStorage.cs
- WorkerRequest.cs
- HyperLink.cs
- RotateTransform.cs
- SystemResources.cs
- CryptoApi.cs
- ProviderException.cs
- Icon.cs
- ClassData.cs
- InfiniteTimeSpanConverter.cs
- SoapAttributeAttribute.cs
- TagNameToTypeMapper.cs
- CompoundFileReference.cs
- DbProviderServices.cs
- ElementHostPropertyMap.cs
- LexicalChunk.cs
- ProgressBar.cs
- AttachedPropertyBrowsableAttribute.cs
- _BaseOverlappedAsyncResult.cs
- ItemsControlAutomationPeer.cs
- VScrollBar.cs
- CqlLexer.cs
- TextCharacters.cs
- SoapClientProtocol.cs
- QueryReaderSettings.cs
- ColumnPropertiesGroup.cs
- HebrewCalendar.cs
- SQLString.cs
- FontNameEditor.cs
- SqlReorderer.cs
- DeferredSelectedIndexReference.cs
- UserControl.cs
- GridViewColumnHeader.cs
- SweepDirectionValidation.cs
- ImageBrush.cs
- DesignerWidgets.cs
- DES.cs
- SimpleWorkerRequest.cs
- TdsEnums.cs
- AmbientLight.cs
- _NestedMultipleAsyncResult.cs
- FlowDocumentScrollViewer.cs
- MaskedTextBox.cs
- UniqueEventHelper.cs
- XmlMemberMapping.cs
- TagPrefixCollection.cs
- DuplicateDetector.cs
- LocalizableResourceBuilder.cs
- DesignerActionUI.cs
- HMACSHA512.cs
- RowBinding.cs
- ElementFactory.cs
- WorkflowViewElement.cs
- RelOps.cs
- XmlNamespaceManager.cs
- CompilationSection.cs
- FileSystemEventArgs.cs
- WaitingCursor.cs
- PauseStoryboard.cs
- PropertyEmitter.cs
- TextComposition.cs
- Floater.cs
- StringAnimationBase.cs
- MaskedTextProvider.cs
- SourceInterpreter.cs
- DbDataSourceEnumerator.cs
- wgx_sdk_version.cs
- TripleDES.cs
- MarkedHighlightComponent.cs
- RemoteWebConfigurationHostServer.cs
- StylusPoint.cs
- LinqDataSourceInsertEventArgs.cs
- Calendar.cs
- Lease.cs
- FastEncoderWindow.cs