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
- CompilerCollection.cs
- MarkupExtensionParser.cs
- TracingConnection.cs
- IntPtr.cs
- CellCreator.cs
- PageRanges.cs
- AuthorizationContext.cs
- XmlSchemaType.cs
- FileSystemEventArgs.cs
- QilParameter.cs
- RelationshipEndCollection.cs
- DispatchWrapper.cs
- FixedSOMTableRow.cs
- WebDescriptionAttribute.cs
- MenuItemStyle.cs
- Mappings.cs
- StrongNameIdentityPermission.cs
- MetadataItem.cs
- PolicyVersion.cs
- DesignerCategoryAttribute.cs
- Debug.cs
- NamespaceInfo.cs
- DataConnectionHelper.cs
- XmlFormatExtensionAttribute.cs
- GradientBrush.cs
- PermissionSetEnumerator.cs
- StaticExtension.cs
- RegistrationServices.cs
- Storyboard.cs
- Fonts.cs
- OLEDB_Enum.cs
- HtmlValidationSummaryAdapter.cs
- ReferenceSchema.cs
- GridLength.cs
- DSACryptoServiceProvider.cs
- nulltextcontainer.cs
- DataGridViewCellConverter.cs
- IgnorePropertiesAttribute.cs
- StandardOleMarshalObject.cs
- FileDialog_Vista_Interop.cs
- XmlSchemaInferenceException.cs
- CheckBox.cs
- WasNotInstalledException.cs
- WriteableBitmap.cs
- CustomError.cs
- DropDownList.cs
- BuildResult.cs
- XsdDataContractImporter.cs
- DataMisalignedException.cs
- InkSerializer.cs
- ParserExtension.cs
- XpsInterleavingPolicy.cs
- TdsValueSetter.cs
- SerializationHelper.cs
- SQLConvert.cs
- StreamGeometry.cs
- RegistrationServices.cs
- _SSPIWrapper.cs
- StylusPointPropertyUnit.cs
- ServiceHostingEnvironment.cs
- _UriTypeConverter.cs
- PropertyFilterAttribute.cs
- elementinformation.cs
- CodeEntryPointMethod.cs
- VisualTreeUtils.cs
- AuthenticationSection.cs
- NativeStructs.cs
- PersonalizableAttribute.cs
- ExceptionHandlersDesigner.cs
- OutputScopeManager.cs
- ApplicationException.cs
- PKCS1MaskGenerationMethod.cs
- PersonalizationStateInfoCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- PreProcessor.cs
- OverrideMode.cs
- LocalFileSettingsProvider.cs
- ExecutionScope.cs
- CompatibleComparer.cs
- ValidatingCollection.cs
- LoopExpression.cs
- ObjectTag.cs
- ParameterCollection.cs
- AssertFilter.cs
- SafeCoTaskMem.cs
- RootDesignerSerializerAttribute.cs
- BindableAttribute.cs
- diagnosticsswitches.cs
- ObjectNotFoundException.cs
- MarginCollapsingState.cs
- BrowserCapabilitiesFactory.cs
- NullableDoubleSumAggregationOperator.cs
- RecognitionEventArgs.cs
- CertificateManager.cs
- ImportFileRequest.cs
- AnnotationMap.cs
- ErrorWebPart.cs
- HttpListenerRequest.cs
- SecurityIdentifierElement.cs
- SpStreamWrapper.cs