BaseDataListActionList.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 / WebForms / System / Web / UI / Design / WebControls / BaseDataListActionList.cs / 1 / BaseDataListActionList.cs

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

namespace System.Web.UI.Design.WebControls { 
    using System; 
    using System.Collections;
    using System.ComponentModel; 
    using System.ComponentModel.Design;
    using System.Design;
    using System.Diagnostics;
    using System.Web.UI.Design; 
    using System.Web.UI.Design.Util;
    using System.Web.UI.WebControls; 
 
    /// 
    internal class BaseDataListActionList : DataBoundControlActionList { 
        private IDataSourceDesigner _dataSourceDesigner;
        private ControlDesigner _controlDesigner;

        ///  
        public BaseDataListActionList(ControlDesigner controlDesigner, IDataSourceDesigner dataSourceDesigner) : base(controlDesigner, dataSourceDesigner) {
            _controlDesigner = controlDesigner; 
            _dataSourceDesigner = dataSourceDesigner; 
        }
 
        /// 
        public void InvokePropertyBuilder() {
            Debug.Assert(_controlDesigner is BaseDataListDesigner, "Called by wrong designer type");
            ((BaseDataListDesigner)_controlDesigner).InvokePropertyBuilder(0); 
        }
 
        ///  
        public override DesignerActionItemCollection GetSortedActionItems() {
            DesignerActionItemCollection items = base.GetSortedActionItems(); 
            if(items== null) {
                items = new DesignerActionItemCollection();
            }
            items.Add(new DesignerActionMethodItem(this, 
                                                    "InvokePropertyBuilder",
                                                    SR.GetString(SR.BDL_PropertyBuilderVerb), 
                                                    SR.GetString(SR.BDL_BehaviorGroup), 
                                                    SR.GetString(SR.BDL_PropertyBuilderDesc)));
            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