AccessDataSourceWizardForm.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 / AccessDataSourceWizardForm.cs / 1 / AccessDataSourceWizardForm.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.ComponentModel.Design.Data;
    using System.Design;
    using System.Diagnostics; 
    using System.Drawing;
    using System.Windows.Forms; 
    using System.Web.UI.Design.Util; 
    using System.Web.UI.WebControls;
 
    /// 
    /// The AccessDataSource configuration wizard. This guides the user through
    /// the connection chooser panel and the command chooser panel.
    ///  
    internal class AccessDataSourceWizardForm : SqlDataSourceWizardForm {
 
        ///  
        /// Creates a new AccessDataSourceWizardForm.
        ///  
        public AccessDataSourceWizardForm(IServiceProvider serviceProvider, AccessDataSourceDesigner accessDataSourceDesigner, IDataEnvironment dataEnvironment) :
            base(serviceProvider, accessDataSourceDesigner, dataEnvironment) {
            Glyph = new Bitmap(typeof(AccessDataSourceWizardForm), "datasourcewizard.bmp");
        } 

        protected override string HelpTopic { 
            get { 
                return "net.Asp.AccessDataSource.ConfigureDataSource";
            } 
        }

        /// 
        /// Creates the appropriate connection panel for the wizard. 
        /// 
        protected override SqlDataSourceConnectionPanel CreateConnectionPanel() { 
            Debug.Assert(SqlDataSourceDesigner is AccessDataSourceDesigner); 

            AccessDataSourceDesigner accessDataSourceDesigner = (AccessDataSourceDesigner)SqlDataSourceDesigner; 
            AccessDataSource accessDataSource = (AccessDataSource)accessDataSourceDesigner.Component;

            // Set up the connection panel
            return new AccessDataSourceConnectionChooserPanel(accessDataSourceDesigner, accessDataSource); 
        }
    } 
} 


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