public void OpenDialog() { WizardDialog lWiz = new WizardDialog(); lWiz.DelphiProjectFilters = "test|*.dpr"; lWiz.ShowDialog(); }
// 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(); }
// 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); } }
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")); } }
private void Wizard_Click(object sender, RoutedEventArgs e) { var dlg = new WizardDialog(); dlg.ShowDialog(); }