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
- SQLMembershipProvider.cs
- CssTextWriter.cs
- CryptoApi.cs
- XmlBinaryReaderSession.cs
- RegularExpressionValidator.cs
- Soap.cs
- GridViewCommandEventArgs.cs
- DataBoundControl.cs
- PowerStatus.cs
- autovalidator.cs
- WindowsGraphicsCacheManager.cs
- CompareValidator.cs
- ScrollViewerAutomationPeer.cs
- ScrollContentPresenter.cs
- SafeMemoryMappedFileHandle.cs
- EntityDataSourceColumn.cs
- clipboard.cs
- WorkflowWebHostingModule.cs
- DataTableMappingCollection.cs
- CompoundFileReference.cs
- TimeSpanMinutesConverter.cs
- WindowsHyperlink.cs
- GuidConverter.cs
- BrowserCapabilitiesCodeGenerator.cs
- TextRangeProviderWrapper.cs
- ParseNumbers.cs
- ColumnResizeAdorner.cs
- Fonts.cs
- NameValuePermission.cs
- XmlWellformedWriter.cs
- SelfIssuedAuthRSACryptoProvider.cs
- AsmxEndpointPickerExtension.cs
- ASCIIEncoding.cs
- DesignerCommandAdapter.cs
- WindowClosedEventArgs.cs
- CodeLabeledStatement.cs
- ArraySubsetEnumerator.cs
- SrgsSemanticInterpretationTag.cs
- Atom10FormatterFactory.cs
- RowToParametersTransformer.cs
- DataControlFieldCell.cs
- StrokeDescriptor.cs
- View.cs
- NonClientArea.cs
- SqlRemoveConstantOrderBy.cs
- BitmapEffectGroup.cs
- DatagridviewDisplayedBandsData.cs
- PointValueSerializer.cs
- Win32KeyboardDevice.cs
- BigInt.cs
- AnnotationComponentManager.cs
- BufferedReadStream.cs
- IssuanceLicense.cs
- VisualStyleRenderer.cs
- SqlConnectionPoolProviderInfo.cs
- InvalidCommandTreeException.cs
- MenuEventArgs.cs
- Input.cs
- errorpatternmatcher.cs
- DefaultExpression.cs
- WaitHandle.cs
- _AutoWebProxyScriptWrapper.cs
- RemoteHelper.cs
- FormsIdentity.cs
- DataGridViewMethods.cs
- CharAnimationBase.cs
- EntryWrittenEventArgs.cs
- GlyphShapingProperties.cs
- webeventbuffer.cs
- EntityContainerEntitySet.cs
- MissingMemberException.cs
- FilterableAttribute.cs
- HuffmanTree.cs
- LogicalTreeHelper.cs
- ThousandthOfEmRealDoubles.cs
- NodeFunctions.cs
- HashHelper.cs
- XPathMessageFilterElementComparer.cs
- StorageAssociationSetMapping.cs
- RuntimeEnvironment.cs
- SettingsBase.cs
- SafeViewOfFileHandle.cs
- Grid.cs
- Substitution.cs
- Style.cs
- HttpListener.cs
- BaseResourcesBuildProvider.cs
- SingleObjectCollection.cs
- LookupBindingPropertiesAttribute.cs
- EntityDataSourceDataSelection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Enum.cs
- Style.cs
- securitycriticaldataformultiplegetandset.cs
- CodeThrowExceptionStatement.cs
- NativeMethods.cs
- MaterialGroup.cs
- DateTimeHelper.cs
- BaseConfigurationRecord.cs
- WindowsSysHeader.cs