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
- ContractAdapter.cs
- DesignSurfaceServiceContainer.cs
- ToggleProviderWrapper.cs
- DataGridViewAdvancedBorderStyle.cs
- BamlCollectionHolder.cs
- DbTypeMap.cs
- InvalidEnumArgumentException.cs
- EntityTypeEmitter.cs
- BuildProviderAppliesToAttribute.cs
- DecoratedNameAttribute.cs
- CharAnimationUsingKeyFrames.cs
- ComEventsSink.cs
- ADRoleFactory.cs
- SmtpCommands.cs
- XmlReturnReader.cs
- AudioFileOut.cs
- FunctionDescription.cs
- RequestCachingSection.cs
- PhoneCallDesigner.cs
- Message.cs
- LiteralControl.cs
- InheritanceRules.cs
- QueryCacheManager.cs
- ChineseLunisolarCalendar.cs
- IgnorePropertiesAttribute.cs
- TableRowCollection.cs
- HwndProxyElementProvider.cs
- ArrayWithOffset.cs
- StringSorter.cs
- ConnectionPointCookie.cs
- TypeEnumerableViewSchema.cs
- ServiceMemoryGates.cs
- ComponentEditorForm.cs
- RequestQueryProcessor.cs
- ComponentResourceKey.cs
- RijndaelManagedTransform.cs
- SchemaInfo.cs
- SQLSingle.cs
- StylusCollection.cs
- PhysicalFontFamily.cs
- StorageEntitySetMapping.cs
- HwndSourceKeyboardInputSite.cs
- InstanceData.cs
- UriPrefixTable.cs
- StrongNameIdentityPermission.cs
- BackgroundFormatInfo.cs
- Rfc2898DeriveBytes.cs
- SmiRequestExecutor.cs
- DataRowCollection.cs
- TypeListConverter.cs
- PackWebRequest.cs
- SQLBinaryStorage.cs
- DataGridCommandEventArgs.cs
- DiscreteKeyFrames.cs
- NetDataContractSerializer.cs
- QilBinary.cs
- ObfuscationAttribute.cs
- RepeaterDesigner.cs
- WebMessageEncodingBindingElement.cs
- ColumnMapTranslator.cs
- WebProxyScriptElement.cs
- WindowsListViewSubItem.cs
- DurableInstanceProvider.cs
- Pkcs7Recipient.cs
- KeyConverter.cs
- MenuItem.cs
- SrgsItemList.cs
- FileIOPermission.cs
- WebPartTransformer.cs
- SqlInternalConnection.cs
- MergablePropertyAttribute.cs
- SafeWaitHandle.cs
- XmlSignatureManifest.cs
- DataGridViewLinkCell.cs
- DbProviderSpecificTypePropertyAttribute.cs
- GAC.cs
- SettingsContext.cs
- SByteConverter.cs
- SqlFunctionAttribute.cs
- FixedPageAutomationPeer.cs
- TerminatorSinks.cs
- BaseDataListComponentEditor.cs
- PackageFilter.cs
- PolyLineSegment.cs
- XmlILIndex.cs
- SmiGettersStream.cs
- BitmapVisualManager.cs
- MouseGesture.cs
- CriticalHandle.cs
- FloaterParaClient.cs
- ObjectSet.cs
- SessionSwitchEventArgs.cs
- ProxyHelper.cs
- ToolstripProfessionalRenderer.cs
- BaseDataList.cs
- SqlBulkCopyColumnMappingCollection.cs
- OdbcErrorCollection.cs
- DataRowCollection.cs
- FilteredXmlReader.cs
- xmlfixedPageInfo.cs