DesignerActionVerbList.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / DesignerActionVerbList.cs / 1 / DesignerActionVerbList.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.ComponentModel.Design { 
 
    using System;
    using System.Design; 
    using System.Collections;

    /// 
    ///  
    /// 
    internal class DesignerActionVerbList : DesignerActionList { 
        private DesignerVerb[] _verbs; 

        ///  
        /// 
        ///     [to be provvided]
        /// 
        public DesignerActionVerbList(DesignerVerb[] verbs) : base(null) { 
            _verbs = verbs;
        } 
 

        ///  
        /// 
        ///     [to be provvided]
        /// 
        public override bool AutoShow { 
            get {
                return false; 
            } 
        }
 

        /// 
        /// 
        ///     [to be provvided] 
        /// 
        public override DesignerActionItemCollection GetSortedActionItems() { 
            DesignerActionItemCollection items = new DesignerActionItemCollection(); 
            for(int i=0;i<_verbs.Length; i++) {
                if(_verbs[i].Visible && _verbs[i].Enabled && _verbs[i].Supported) { 
                    items.Add(new DesignerActionVerbItem(_verbs[i]));
                }
            }
            return items; 
        }
    } 
} 


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK