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

            lWiz.DelphiProjectFilters = "test|*.dpr";
            lWiz.ShowDialog();
        }
        void RunDataSourceWizard()
        {
            var wizard = new WizardDialog();

            wizard.EndWizard += wizard_EndWizard;
            wizard.ShowDialog();
        }
Ejemplo n.º 3
0
 public ObjectSelectPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
 {
     InitializeComponent();
     this.objectSelectDlg = (ObjectSelectDlg)wizardDialog;
     this.plugin          = plugin;
     this.container       = container;
 }
Ejemplo n.º 4
0
 public ObjectSelectPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
 {
     InitializeComponent();
     this.objectSelectDlg = (ObjectSelectDlg)wizardDialog;
     this.plugin = plugin;
     this.container = container;
 }
Ejemplo n.º 5
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);
            }
        }
        public NewShareWelcomePage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin = plugin as FileShareManagerIPlugIn;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
Ejemplo n.º 7
0
        public NewShareWelcomePage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin    = plugin as FileShareManagerIPlugIn;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
        public NewShareFolderSetUpPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin = plugin;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
        public NewSharePermissionsPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin    = plugin;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
Ejemplo n.º 10
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.º 11
0
        private static WizardDialog CreateWizard()
        {
            state = new ReportWizardState();
            state.AvailableMasterReports.AddRange(Program.AvailableReportTemplates);
            WizardDialog dlg = new WizardDialog(state);

            dlg.Steps.Add(new SelectMasterReport());
            dlg.Steps.Add(new SelectGroupingFields());
            dlg.Steps.Add(new SelectOutputFields());
            dlg.Steps.Add(new SelectSummaryOptions());
            return(dlg);
        }
Ejemplo n.º 12
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            SetupTemplates();
            WizardDialog wizard = CreateWizard();

            Application.Run(wizard);
            if (wizard.DialogResult == DialogResult.OK)
            {
                PageReport  def = LayoutBuilder.BuildReport(state);
                ReportsForm frm = new ReportsForm(def);
                Application.Run(frm);
            }
        }
Ejemplo n.º 13
0
        private void WorkflowReady(bool isReady)
        {
            DisableProgressIndicator();
            wizard = GameObject.Instantiate(PrefabHolder.Instance.assemblyWizard);
            WizardDialog dialog = wizard.GetComponent <WizardDialog>();

            if (dialog != null)
            {
                dialog.WizardDone = WizardDone;
                dialog.LoadFirstTaskAndActivate();
            }
            else
            {
                Debug.LogError("There was no WizardDialog found. Callback not set.");
            }
        }
Ejemplo n.º 14
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.º 15
0
    //
    // Public Methods
    //

    public void Init(WizardDialog wizardDlg)
    {
        this.wizardDlg = wizardDlg;
    }
Ejemplo n.º 16
0
 public WizardPage(WizardDialog wizard)
 : this()
 {
     _wizard = wizard;
 }
Ejemplo n.º 17
0
        public void Grouping()
        {
            GroupingTest Save = new GroupingTest();

            IModalPresenter Present = new NotebookDialog<GroupingTest>(Title);
            Assert.IsTrue(Present.Run(Save));

            Present = new ListStoreDialog<GroupingTest>(Title);
            Assert.IsTrue(Present.Run(Save));

            Present = new TreeStoreDialog<GroupingTest>(Title);
            Assert.IsTrue(Present.Run(Save));

            var NonModal = new WizardDialog<GroupingTest>(Title);
            NonModal.Run(Save);
            NonModal.Block();
            Assert.IsTrue(NonModal.Success);
        }
Ejemplo n.º 18
0
        private void Wizard_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new WizardDialog();

            dlg.ShowDialog();
        }