public override void LoadFromNewProjectInformation(INewProjectInformation info)
        {
            if (info == null ||
                (!(info is LoadProjectWizard.LoadExistingNHibernateProjectInfo) &&
                 !(info is LoadProjectWizard.LoadExistingDatabaseInfo)))
            {
                return;
            }
            ArchAngel.Providers.EntityModel.UI.IUserInteractor userInteractor = EntityProviderInfo.UserInteractor;

            if (info is LoadProjectWizard.LoadExistingDatabaseInfo)
            {
                ProjectOrigin = ProjectType.FromExistingDatabase;
                var newProjectInfo = (LoadProjectWizard.LoadExistingDatabaseInfo)info;
                newProjectInfo.RunCustomNewProjectLogic(this, userInteractor);
            }
            else if (info is LoadProjectWizard.LoadExistingNHibernateProjectInfo)
            {
                ProjectOrigin = ProjectType.FromExistingVisualStudioProject;
                var newProjectInfo = (LoadProjectWizard.LoadExistingNHibernateProjectInfo)info;
                newProjectInfo.RunCustomNewProjectLogic(this, userInteractor);
            }
            else
            {
                throw new NotImplementedException("Not handled yet.");
            }
            //EntityProviderInfo.LoadFromNewProjectInformation(info);
        }
        public override void LoadFromNewProjectInformation(INewProjectInformation info)
        {
            if (info == null || info is TemplateSpecifiedNewProjectInformation == false)
            {
                return;
            }

            // At the moment, only NHibernate Helper has an inherited version of TemplateSpecifiedNewProjectInformation.
            // If we ever add inherit from TemplateSpecifiedNewProjectInformation in the Entity Provider,
            // then we'll need to re-think this code below:
            if (info.GetType() != typeof(TemplateSpecifiedNewProjectInformation))
            {
                return;
            }

            IUserInteractor userInteractor = customUserInteractor ?? editModelScreen;

            var newProjectInfo = (TemplateSpecifiedNewProjectInformation)info;

            newProjectInfo.RunCustomNewProjectLogic(this, userInteractor);
        }
Exemple #3
0
 public void InitProjectFromProjectWizardInformation(INewProjectInformation information)
 {
     CurrentProject.InitProjectFromProjectWizardInformation(information);
 }
 public override void LoadFromNewProjectInformation(INewProjectInformation info)
 {
 }
 public override void LoadFromNewProjectInformation(INewProjectInformation info)
 {
 }
 public void InitProjectFromProjectWizardInformation(INewProjectInformation information)
 {
     CurrentProject.InitProjectFromProjectWizardInformation(information);
 }
        public override void LoadFromNewProjectInformation(INewProjectInformation info)
        {
            if (info == null || info is TemplateSpecifiedNewProjectInformation == false) return;

            // At the moment, only NHibernate Helper has an inherited version of TemplateSpecifiedNewProjectInformation.
            // If we ever add inherit from TemplateSpecifiedNewProjectInformation in the Entity Provider,
            // then we'll need to re-think this code below:
            if (info.GetType() != typeof(TemplateSpecifiedNewProjectInformation))
                return;

            IUserInteractor userInteractor = customUserInteractor ?? editModelScreen;

            var newProjectInfo = (TemplateSpecifiedNewProjectInformation)info;
            newProjectInfo.RunCustomNewProjectLogic(this, userInteractor);
        }
 public abstract void LoadFromNewProjectInformation(INewProjectInformation info);
 public abstract void LoadFromNewProjectInformation(INewProjectInformation info);
Exemple #10
0
        public override void LoadFromNewProjectInformation(INewProjectInformation info)
        {
            if (info == null ||
                (!(info is LoadProjectWizard.LoadExistingNHibernateProjectInfo) &&
                !(info is LoadProjectWizard.LoadExistingDatabaseInfo)))
            {
                return;
            }
            ArchAngel.Providers.EntityModel.UI.IUserInteractor userInteractor = EntityProviderInfo.UserInteractor;

            if (info is LoadProjectWizard.LoadExistingDatabaseInfo)
            {
                ProjectOrigin = ProjectType.FromExistingDatabase;
                var newProjectInfo = (LoadProjectWizard.LoadExistingDatabaseInfo)info;
                newProjectInfo.RunCustomNewProjectLogic(this, userInteractor);
            }
            else if (info is LoadProjectWizard.LoadExistingNHibernateProjectInfo)
            {
                ProjectOrigin = ProjectType.FromExistingVisualStudioProject;
                var newProjectInfo = (LoadProjectWizard.LoadExistingNHibernateProjectInfo)info;
                newProjectInfo.RunCustomNewProjectLogic(this, userInteractor);
            }
            else
            {
                throw new NotImplementedException("Not handled yet.");
            }
            //EntityProviderInfo.LoadFromNewProjectInformation(info);
        }
 public void InitProjectFromProjectWizardInformation(INewProjectInformation information)
 {
     FillProviders(information);
 }
        public void FillProviders(INewProjectInformation info)
        {
            if (info == null) return;

            foreach (var provider in _Providers.Where(p => p.GetType().FullName == info.ValidProviderType.FullName))
            {
                provider.LoadFromNewProjectInformation(info);
            }
        }