Ejemplo n.º 1
0
        public void OpenDialog()
        {
            WizardDialog lWiz = new WizardDialog();

            lWiz.DelphiProjectFilters = "test|*.dpr";
            lWiz.ShowDialog();
        }
Ejemplo n.º 2
0
//		string startupProject = null;

        public string CreateProject(ProjectCreateInformation projectCreateInformation)
        {
            if (wizardpath != null)
            {
                Properties customizer = new Properties();
                customizer.Set("ProjectCreateInformation", projectCreateInformation);
                customizer.Set("ProjectTemplate", this);
                WizardDialog wizard = new WizardDialog("Project Wizard", customizer, wizardpath);
                if (wizard.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm) != DialogResult.OK)
                {
                    return(null);
                }
            }
            if (combineDescriptor != null)
            {
                return(combineDescriptor.CreateSolution(projectCreateInformation, this.languagename));
            }
            else if (projectDescriptor != null)
            {
                projectCreateInformation.Solution = new Solution();
                return(projectDescriptor.CreateProject(projectCreateInformation, this.languagename).FileName);
            }
            else
            {
                return(null);
            }
        }
        void RunDataSourceWizard()
        {
            var wizard = new WizardDialog();

            wizard.EndWizard += wizard_EndWizard;
            wizard.ShowDialog();
        }
Ejemplo n.º 4
0
//		string startupProject = null;

        public string CreateProject(ProjectCreateInformation projectCreateInformation)
        {
            LoggingService.Info("Creating project from template '" + this.Category + "/" + this.Subcategory + "/" + this.Name + "'");
            if (wizardpath != null)
            {
                Properties customizer = new Properties();
                customizer.Set("ProjectCreateInformation", projectCreateInformation);
                customizer.Set("ProjectTemplate", this);
                WizardDialog wizard = new WizardDialog("Project Wizard", customizer, wizardpath);
                if (wizard.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm) != DialogResult.OK)
                {
                    return(null);
                }
            }
            if (solutionDescriptor != null)
            {
                return(solutionDescriptor.CreateSolution(projectCreateInformation, this.languagename));
            }
            else if (projectDescriptor != null)
            {
                bool createNewSolution = projectCreateInformation.Solution == null;
                if (createNewSolution)
                {
                    projectCreateInformation.Solution          = new Solution();
                    projectCreateInformation.Solution.Name     = projectCreateInformation.SolutionName;
                    projectCreateInformation.Solution.FileName = Path.Combine(projectCreateInformation.SolutionPath, projectCreateInformation.SolutionName + ".sln");
                }
                IProject project = projectDescriptor.CreateProject(projectCreateInformation, this.languagename);
                if (project != null)
                {
                    string solutionLocation = projectCreateInformation.Solution.FileName;
                    if (createNewSolution)
                    {
                        projectCreateInformation.Solution.AddFolder(project);
                        projectCreateInformation.Solution.Save();
                        ProjectService.OnSolutionCreated(new SolutionEventArgs(projectCreateInformation.Solution));
                        projectCreateInformation.Solution.Dispose();
                    }
                    else
                    {
                        project.Dispose();
                    }
                    return(solutionLocation);
                }
                else
                {
                    return(null);
                }
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 5
0
		public override void Run()
		{
			reportStructure = new ReportStructure();
			if (GlobalValues.IsValidPrinter() == true) {
				
				using (WizardDialog wizard = new WizardDialog("Report Wizard", reportStructure, WizardPath)) {
					if (wizard.ShowDialog() == DialogResult.OK) {
						reportModel = reportStructure.CreateAndFillReportModel ();
						CreateReportFromModel(reportModel,reportStructure);
					}
					else{
						this.canceled = true;
					}
				}
			} else {
				MessageService.ShowError(ResourceService.GetString("Sharpreport.Error.NoPrinter"));
			}
		}
Ejemplo n.º 6
0
        private void Wizard_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new WizardDialog();

            dlg.ShowDialog();
        }