DesignerActionVerbItem.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / DesignerActionVerbItem.cs / 1 / DesignerActionVerbItem.cs

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

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

    ///  
    /// 
    ///     [to be provided] 
    ///  
    internal class DesignerActionVerbItem  : DesignerActionMethodItem {
        private DesignerVerb _targetVerb; 



        public DesignerActionVerbItem(DesignerVerb verb) { 
            if(verb == null) {
                throw (new ArgumentNullException()); 
            } 
            _targetVerb = verb;
        } 

        public override string Category {
            get {
                return "Verbs"; 
            }
        } 
 
        public override string Description {
            get { 
                return _targetVerb.Description;
            }
        }
 
        public override string DisplayName {
            get { 
                return _targetVerb.Text; 
            }
        } 

        public override string MemberName {
            get {
                return null; 
            }
        } 
 
        public override bool IncludeAsDesignerVerb{
            get { 
                return false;
            }
        }
 
        public override void Invoke() {
            _targetVerb.Invoke(); 
        } 

    } 
}


// 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