示例#1
0
 /// <summary>
 ///     LaunchWizardPageBase is the base class for the data source wizard pages that launch Entity Data Model Wizard.
 /// </summary>
 /// <param name="wizard">The wizard that will display the page</param>
 internal LaunchWizardPageBase(DataSourceWizardFormBase wizard)
     : base(wizard)
 {
     _mutex           = new ThreadSafeMutex();
     _isPageClosing   = false;
     _dismissDSWizard = false;
     InitializeComponent();
 }
 /// <summary>
 ///     LaunchWizardPageBase is the base class for the data source wizard pages that launch Entity Data Model Wizard.
 /// </summary>
 /// <param name="wizard">The wizard that will display the page</param>
 internal LaunchWizardPageBase(DataSourceWizardFormBase wizard)
     : base(wizard)
 {
     _mutex = new ThreadSafeMutex();
     _isPageClosing = false;
     _dismissDSWizard = false;
     InitializeComponent();
 }
示例#3
0
        /// <summary>
        ///     Create a data bucket to hold data collected by the wizard engine.
        ///     This is called when the user selects Add New Data Source menu item
        /// </summary>
        /// <param name="wizardForm"></param>
        /// <param name="referencedItem"></param>
        /// <param name="targetCollection"></param>
        /// <returns></returns>
        IDataSourceWizardData IDataSourceWizardEngine.CreateData(
            DataSourceWizardFormBase wizardForm, ProjectItem referencedItem, ProjectItems targetCollection)
        {
            Debug.Assert(wizardForm != null, "Wizard form is null!");
            Debug.Assert(wizardForm.Project != null, "Could not determine the current project");

            var data = new EdmDataSourceWizardData
            {
                ContainingProject = wizardForm.Project,
            };

            return(data);
        }
示例#4
0
        /// <summary>
        ///     Create a data bucket to hold data collected by the wizard engine.
        ///     This is called when the user selects Update Data Source menu item.
        /// </summary>
        /// <param name="wizardForm"></param>
        /// <param name="targetItem"></param>
        /// <returns></returns>
        IDataSourceWizardData IDataSourceWizardEngine.CreateData(DataSourceWizardFormBase wizardForm, ProjectItem targetItem)
        {
            Debug.Assert(wizardForm != null, "Wizard form is null");
            Debug.Assert(wizardForm.Project != null, "Could not determine the current project");
            Debug.Assert(targetItem != null, "the passed in targetItem is null");

            var data = new EdmDataSourceWizardData
            {
                ContainingProject = wizardForm.Project,
                EDMProjectItem    = targetItem
            };

            return(data);
        }
 /// <summary>
 ///     Creates EDM Wizard launch page
 /// </summary>
 /// <param name="wizard">The wizard that will display the page</param>
 internal LaunchModelGenWizardPage(DataSourceWizardFormBase wizard)
     : base(wizard)
 {
 }
示例#6
0
 /// <summary>
 ///     Creates EDM Wizard launch page
 /// </summary>
 /// <param name="wizard">The wizard that will display the page</param>
 internal LaunchUpdateModelWizardPage(DataSourceWizardFormBase wizard)
     : base(wizard)
 {
 }
示例#7
0
 /// <summary>
 ///     Initialize wizard pages.
 /// </summary>
 /// <param name="wizardForm"></param>
 void IDataSourceWizardEngine.InitializePages(DataSourceWizardFormBase wizardForm)
 {
     _wizardPages[0] = new LaunchModelGenWizardPage(wizardForm);
     _wizardPages[1] = new LaunchUpdateModelWizardPage(wizardForm);
 }
 /// <summary>
 ///     Initialize wizard pages.
 /// </summary>
 /// <param name="wizardForm"></param>
 void IDataSourceWizardEngine.InitializePages(DataSourceWizardFormBase wizardForm)
 {
     _wizardPages[0] = new LaunchModelGenWizardPage(wizardForm);
     _wizardPages[1] = new LaunchUpdateModelWizardPage(wizardForm);
 }
        /// <summary>
        ///     Create a data bucket to hold data collected by the wizard engine.
        ///     This is called when the user selects Update Data Source menu item.
        /// </summary>
        /// <param name="wizardForm"></param>
        /// <param name="targetItem"></param>
        /// <returns></returns>
        IDataSourceWizardData IDataSourceWizardEngine.CreateData(DataSourceWizardFormBase wizardForm, ProjectItem targetItem)
        {
            Debug.Assert(wizardForm != null, "Wizard form is null");
            Debug.Assert(wizardForm.Project != null, "Could not determine the current project");
            Debug.Assert(targetItem != null, "the passed in targetItem is null");

            var data = new EdmDataSourceWizardData
                {
                    ContainingProject = wizardForm.Project,
                    EDMProjectItem = targetItem
                };
            return data;
        }
        /// <summary>
        ///     Create a data bucket to hold data collected by the wizard engine.
        ///     This is called when the user selects Add New Data Source menu item
        /// </summary>
        /// <param name="wizardForm"></param>
        /// <param name="referencedItem"></param>
        /// <param name="targetCollection"></param>
        /// <returns></returns>
        IDataSourceWizardData IDataSourceWizardEngine.CreateData(
            DataSourceWizardFormBase wizardForm, ProjectItem referencedItem, ProjectItems targetCollection)
        {
            Debug.Assert(wizardForm != null, "Wizard form is null!");
            Debug.Assert(wizardForm.Project != null, "Could not determine the current project");

            var data = new EdmDataSourceWizardData
                {
                    ContainingProject = wizardForm.Project,
                };

            return data;
        }
 /// <summary>
 ///     Creates EDM Wizard launch page
 /// </summary>
 /// <param name="wizard">The wizard that will display the page</param>
 internal LaunchModelGenWizardPage(DataSourceWizardFormBase wizard)
     : base(wizard)
 {
 }
 /// <summary>
 ///     Creates EDM Wizard launch page
 /// </summary>
 /// <param name="wizard">The wizard that will display the page</param>
 internal LaunchUpdateModelWizardPage(DataSourceWizardFormBase wizard)
     : base(wizard)
 {
 }