public wizDAC(WizardForm parent) : base(parent) { InitializeComponent(); ctrlTreeViewTables1.SelectElementHandler += new SelectElementHandler(ctrlTreeViewTables1_SelectElementHandler); }
public CustomWizPage1(WizardForm parent) : base(parent) { // This call is required by the Windows Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call }
public wizService(WizardForm parent) : base(parent) { InitializeComponent(); }
public wizDbSelect_2(WizardForm parent) : base(parent) { InitializeComponent(); }
public void UpdateImage(string basePath) { Bitmap image = SPALM.SPSF.Library.Properties.Resources.SPSFBannerLogo; WizardForm wizard = this.WizardPage.Wizard; Control header = wizard.Controls["_headerBannerPanel"]; double width = (double)header.Height / (double)image.Height * (double)image.Width; image = new Bitmap(image, new Size((int)width, header.Height)); helpPage = GetHelpPage(basePath, ""); if (helpPage != "") { this.WizardPage.Wizard.HelpButton = true; this.WizardPage.Wizard.HelpButtonClicked += new CancelEventHandler(Wizard_HelpButtonClicked); } if (!logosChanged) { logosChanged = true; try { for (int i = 0; i < this.WizardPage.Wizard.PageCount; i++) { this.WizardPage.Wizard.GetPage(i).Logo = image; } } catch (Exception ex) { MessageBox.Show("Ex" + ex.ToString()); } } }
private void _client_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e) { if (e.Cancelled) { ShowError("OperationCancelled"); return; } else if (e.Error != null) { ShowError(e.Error.Message); return; } String fileName = e.UserState as String; // whilst the "pure" option would be to have the tools as an Anolis package... // it really is easier just to dump 'em in the directory, create start menu items, and leave it as that // decompress using (W3b.TarLzma.TarLzmaDecoder decoder = new W3b.TarLzma.TarLzmaDecoder(fileName)) { decoder.ProgressEvent += new EventHandler <W3b.TarLzma.ProgressEventArgs>(decoder_ProgressEvent); decoder.Extract(InstallationInfo.ToolsDestination.FullName); } CreateStartMenuShortcuts(); Invoke(new MethodInvoker(delegate() { WizardForm.LoadPage(Program.PageFFinished); })); }
public SiteColumnPage(WizardForm parent) : base(parent) { // This call is required by the Windows Form Designer. InitializeComponent(); siteColumnWizard1.SchemaChanged += new SiteColumnWizard.SchemaChangedDelegate(siteColumnWizard1_SchemaChanged); }
public CreateViewPage(WizardForm wizard) : base(wizard) { InitializeComponent(); _showDocumentation.CheckedChanged += new EventHandler(_showDocumentation_CheckedChanged); _createViewFolder.CheckedChanged += new EventHandler(_createViewFolder_CheckedChanged); _viewNameTextBox.TextChanged += new EventHandler(_viewNameTextBox_TextChanged); }
public BCSImportPage(WizardForm parent) : base(parent) { // This call is required by the Windows Form Designer. InitializeComponent(); bcsTreeControl1.BCSModelChanged += new BCSTreeControl.BCSModelChangedHandler(bcsTreeControl1_BCSModelChanged); }
protected override void InitLayout() { base.InitLayout(); try { WizardForm wizard = this.WizardPage.Wizard; for (int i = 0; i < wizard.PageCount; i++) { Microsoft.WizardFramework.WizardPage page = wizard.GetPage(i); page.InfoRTBoxIcon = null; } } catch { } try { WizardForm wizard = this.WizardPage.Wizard; Control header = wizard.Controls["_headerBannerPanel"]; header.BackColor = Color.White; //header.BackgroundImage = SPALM.SPSF.Library.Properties.Resources.SPSFBannerTitle; Image title = SPALM.SPSF.Library.Properties.Resources.SPSFBannerTitle; double width = (double)header.Height / (double)title.Height * (double)title.Width; header.BackgroundImage = (Image) new Bitmap(title, new Size((int)width, header.Height)); header.BackgroundImageLayout = ImageLayout.None; header.Visible = true; PictureBox pictureBox = header.Controls["_pageLogo"] as PictureBox; pictureBox.Dock = DockStyle.Right; pictureBox.SizeMode = PictureBoxSizeMode.AutoSize; // resize not working, for whatever reason, taking two images for now to support VisualStyles (Win8) //Image logo = header.Height < 74?SPALM.SPSF.Library.Properties.Resources.SPSFBannerLogoSmall:SPALM.SPSF.Library.Properties.Resources.SPSFBannerLogo; Image logo = SPALM.SPSF.Library.Properties.Resources.SPSFBannerLogo; width = (double)header.Height / (double)logo.Height * (double)logo.Width; logo = (Image) new Bitmap(logo, new Size((int)width, header.Height)); pictureBox.Image = logo; pictureBox.InitialImage = logo; pictureBox.Visible = true; //pictureBox.Visible = false; Label headlineLabel = header.Controls["_headlineLabel"] as Label; headlineLabel.Visible = false; //headlineLabel.ForeColor = Color.Red; //headlineLabel.TextAlign = ContentAlignment.MiddleRight; //headlineLabel.Font = new Font(this.Font.FontFamily, 11); //headlineLabel.BringToFront(); pictureBox.SendToBack(); } catch (Exception ex) { MessageBox.Show("Ex" + ex.ToString()); } //hide the argumentpanelcontrol this.Visible = false; }
public PageDesignerProperties(WizardForm parent) : base(parent) { // This call is required by the Windows Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call Init(); }
public CreateEventPublicationPage(WizardForm wizard) : base(wizard) { InitializeComponent(); _eventTopicTextBox.TextChanged += new EventHandler(_eventTopicTextBox_TextChanged); _publicationScopeComboBox.SelectedValueChanged += new EventHandler(_publicationScopeComboBox_SelectedValueChanged); _eventArgsTextBox.TextChanged += new EventHandler(_argumentTypeTextBox_TextChanged); _showDocumentation.CheckedChanged += new EventHandler(_showDocumentation_CheckedChanged); }
public CreateModulePage(WizardForm wizard) : base(wizard) { InitializeComponent(); _createModuleInterfaceLibrary.CheckedChanged += new EventHandler(_createModuleInterfaceLibrary_CheckedChanged); _testProject.CheckedChanged += new EventHandler(_testProject_CheckedChanged); _showDocumentation.CheckedChanged += new EventHandler(_showDocumentation_CheckedChanged); }
public wizEntity_2(WizardForm parent) : base(parent) { // This call is required by the Windows Form Designer. InitializeComponent(); ctrlTreeViewTables1.SelectElementHandler += new SelectElementHandler(ctrlTreeViewTables1_SelectElementHandler); ctrlTreeViewViews1.SelectElementHandler += new SelectElementHandler(ctrlTreeViewTables1_SelectElementHandler); }
public PageGeneralSetup(WizardForm parent) : base(parent) { // This call is required by the Windows Form Designer. InitializeComponent(); // re-clear all items from the stage dropdown cboComponentStage.Items.Clear(); }
public CreateEventSubscriptionPage(WizardForm wizard) : base(wizard) { InitializeComponent(); _eventTopicComboBox.SelectedValueChanged += new EventHandler(_eventTopicComboBox_SelectedValueChanged); _threadingOptionComboBox.SelectedValueChanged += new EventHandler(_threadingOptionComboBox_SelectedValueChanged); _eventArgsTextBox.TextChanged += new EventHandler(_eventArgsTextBox_TextChanged); _showDocumentation.CheckedChanged += new EventHandler(_showDocumentation_CheckedChanged); }
private void OnRemoveClick(object sender, EventArgs e) { WizardForm ctrl = ( WizardForm )Control; if (ctrl.Pages.Count > 0 && ctrl.PageIndex > 0) { ctrl.Pages.RemoveAt(ctrl.PageIndex); } }
private void wizardFormToolStripMenuItem_Click(object sender, EventArgs e) { var f = new WizardForm { MdiParent = this, WindowState = FormWindowState.Maximized }; f.Show(); }
public void ProjectNew() { WizardForm form = new WizardForm(); if (form.ShowDialog() != DialogResult.OK) { return; } this.OpenProject(form.Project); }
private void UpdatePackagePage_PageLoad(object sender, EventArgs e) { if ((InstallerResources.IsCustomized && InstallerResources.CustomizedSettings.DisableUpdateCheck) || (PackageInfo.Package.UpdateUri == null)) { WizardForm.LoadPage(NextPage); return; } __bw.RunWorkerAsync(); }
public DefaultBehaviorPage(WizardForm wizard) : base(wizard) { InitializeComponent(); _stampsTextBox.TextChanged += new EventHandler(_stampsTextBox_TextChanged); _maxRetriesTextBox.TextChanged += new EventHandler(_maxRetriesTextBox_TextChanged); _expirationTextBox.TextChanged += new EventHandler(_expirationTextBox_TextChanged); _tagTextBox.TextChanged += new EventHandler(_tagTextBox_TextChanged); wizard.Activated += new EventHandler(wizard_Activated); }
private void Form1_Load(object sender, EventArgs e) { WizardForm f = (WizardForm)ItemWizard.DefaultFormFactory(); ////new WizardForm(); ////WizardController controller = new WizardController(f, new ScenarioRunManager()); ////f.SetController(controller); ////controller.Initialize(); f.WizardCompleting += new EventHandler <CancellableWizardEventArgs>(this.Form1_WizardCompleting); MessageBox.Show(f.ShowDialog().ToString()); }
public NewProviderHierarchyPage(WizardForm parent) : base(parent) { InitializeComponent(); this.providerNameTextBox.TextChanged += new EventHandler(providerNameTextBox_TextChanged); this.providerTypeComboBox.SelectedValueChanged += new EventHandler(providerTypeComboBox_SelectedValueChanged); this.polymorphicProvider = new Dictionary <string, bool>(); this.polymorphicProvider.Add(Resources.PolymorphicUI_Description, true); this.polymorphicProvider.Add(Resources.NonPolymorphicUI_Description, false); this.providerTypeComboBox.DataSource = GetProviderTypeComboBoxValues(); this.providerTypeComboBox.SelectedIndex = 0; }
private void t_Tick(object sender, EventArgs e) { __progress.Value++; if (__progress.Value >= 100) { _t.Stop(); WizardForm.LoadPage(NextPage); } }
static void Main(string[] args) { var wizardForm = new WizardForm(new TestHost(), "TestAddIn"); wizardForm.ShowDialog(); //XmlWizardOptionsManager.PanelAddinWizardTestApp(() => DoTests("VisualStudio.DTE.10.0")); //XmlWizardOptionsManager.PanelAddinWizardTestApp(() => DoTests("VisualStudio.DTE.12.0")); //XmlWizardOptionsManager.PanelAddinWizardTestApp(() => DoTests("VisualStudio.DTE.14.0")); }
protected override bool GetHitTest(System.Drawing.Point point) { WizardForm ctrl = ( WizardForm )Control; if (ctrl != null) { Point p = ctrl.PointToClient(point); return(ctrl.OnDesignedWizardButtons(p)); } return(base.GetHitTest(point)); }
public SolutionPropertiesPage(WizardForm wizard) : base(wizard) { InitializeComponent(); _rootNamespaceTextbox.TextChanged += new EventHandler(_rootNamespaceTextbox_TextChanged); _supportingLibrariesTextBox.TextChanged += new EventHandler(OnSupportingLibrariesTextChanged); _showDocumentation.CheckedChanged += new EventHandler(_showDocumentation_CheckedChanged); _createShellLayoutModule.CheckedChanged += new EventHandler(_createShellLayoutModule_CheckedChanged); _supportWPFViews.CheckedChanged += new EventHandler(OnSupportWPFViewsChanging); wizard.Activated += new EventHandler(wizard_Activated); }
private void __bw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { Exception ex = e.Error; if (ex != null) { InstallationInfo.WriteException(ex); InstallationInfo.InstallationAborted = true; } WizardForm.LoadPage(Program.PageFFinished); }
public SolutionPropertiesPage(WizardForm wizard) : base(wizard) { InitializeComponent(); _rootNamespaceTextbox.TextChanged += new EventHandler(_rootNamespaceTextbox_TextChanged); _supportingLibrariesTextBox.TextChanged += new EventHandler(OnSupportingLibrariesTextChanged); _showDocumentation.CheckedChanged += new EventHandler(_showDocumentation_CheckedChanged); if (wizard != null) { wizard.Activated += new EventHandler(wizard_Activated); } }
private void OnAddFinalClick(object sender, EventArgs e) { WizardForm ctrl = ( WizardForm )Control; WizardFinalPage page = new WizardFinalPage(); ctrl.Pages.Add(page); IDesignerHost host = (IDesignerHost)GetService(typeof(IDesignerHost)); if (host != null) { host.Container.Add(page); } }
public EndpointPage(WizardForm wizard) : base(wizard) { InitializeComponent(); _endpointTextBox.TextChanged += new System.EventHandler(_endpointTextBox_TextChanged); _methodsListView.ItemChecked += new ItemCheckedEventHandler(_methodsListView_ItemChecked); _proxyTypeNameTextBox.TextChanged += new EventHandler(_proxyTypeTextBox_TextChanged); _proxyTypeButton.Click += new EventHandler(_proxyTypeButton_Click); _stampsTextBox.TextChanged += new EventHandler(_stampsTextBox_TextChanged); _maxRetriesTextBox.TextChanged += new EventHandler(_maxRetriesTextBox_TextChanged); _expirationTextBox.TextChanged += new EventHandler(_expirationTextBox_TextChanged); _tagTextBox.TextChanged += new EventHandler(_tagTextBox_TextChanged); _showDocumentation.CheckedChanged += new EventHandler(_showDocumentation_CheckedChanged); }
/// <summary> /// Custom Drawing of Wizard Page in IDE Designer /// </summary> /// <param name="pe"></param> protected override void OnPaintAdornments(System.Windows.Forms.PaintEventArgs pe) { base.OnPaintAdornments(pe); Graphics g = pe.Graphics; WizardPageBase page = Control as WizardPageBase; if (page == null) { page = Component as WizardPageBase; } if (page != null) { WizardForm parent = page.WizardPageParent; string strPos; if (page != null && parent != null) { strPos = (parent.Pages.IndexOf(page) + 1).ToString(); } else // if something wrong then simply show MINUS { strPos = "-"; if (page == null) { strPos += "p"; } if (parent == null) { strPos += "P"; } } g.FillRectangle(m_brushBack, m_rect); StringFormat frmString = new StringFormat(); frmString.Alignment = StringAlignment.Center; frmString.LineAlignment = StringAlignment.Center; g.DrawString(strPos, m_font, m_brushText, m_rect, frmString); } }
private void lnkCmJrf_ClickOverride() { CmJrfExporter exporter = new CmJrfExporter(); WizardForm wiz = new WizardForm(new ExportStep(exporter, exporter.ExportName), exporter.ExportName); wiz.OnFinish = () => { }; wiz.ShowDialog(); }
private void lnkApocReport_ClickOverride() { WizardForm wiz = new WizardForm(new ApocExport(), Translations.ExportApocReport); wiz.OnFinish = () => { }; wiz.ShowDialog(); }
private void EditEliminationReport(SavedReport r) { WizardForm wiz = new WizardForm(new EliminationOptions(r), Translations.ReportProgressTowardsEliminiation); wiz.Height = 685; wiz.OnRunReport = RunEliminationReport; wiz.Show(); }
public ModelWizPage(WizardForm parent) : base(parent) { InitializeComponent(); }
private void LoadSavedReports() { ReportRepository repo = new ReportRepository(); var reports = repo.GetCustomReports(); tblReportBuilder.Visible = false; this.SuspendLayout(); tblReportBuilder.Controls.Clear(); int rowIndex = tblReportBuilder.RowStyles.Add(new RowStyle { SizeType = SizeType.AutoSize }); var tblNew = new TableLayoutPanel { AutoSize = true, AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink }; tblNew.RowStyles.Clear(); tblNew.ColumnStyles.Clear(); tblNew.ColumnStyles.Add(new ColumnStyle { SizeType = System.Windows.Forms.SizeType.AutoSize }); tblNew.ColumnStyles.Add(new ColumnStyle { SizeType = System.Windows.Forms.SizeType.AutoSize }); tblNew.RowStyles.Add(new RowStyle { SizeType = System.Windows.Forms.SizeType.AutoSize }); var name2 = new H3bLabel { Text = Translations.CustomReport, Name = "rpt_cr", AutoSize = true, }; name2.SetMaxWidth(400); var edit2 = new H3Link { Text = Translations.NewLink, Margin = new Padding(0, 2, 0, 0) }; edit2.ClickOverride += () => { WizardForm wiz = new WizardForm(new StepCategory(), Translations.CustomReportBuilder); wiz.Height = 695; wiz.OnRunReport = RunCustomReport; wiz.Show(); }; tblNew.Controls.Add(name2, 0, 0); tblNew.Controls.Add(edit2, 1, 0); tblReportBuilder.Controls.Add(tblNew, 0, rowIndex); foreach (var report in reports) { rowIndex = tblReportBuilder.RowStyles.Add(new RowStyle { SizeType = SizeType.AutoSize }); var tbl = new TableLayoutPanel { AutoSize = true, AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink }; tbl.RowStyles.Clear(); tbl.ColumnStyles.Clear(); tbl.ColumnStyles.Add(new ColumnStyle { SizeType = System.Windows.Forms.SizeType.AutoSize }); tbl.ColumnStyles.Add(new ColumnStyle { SizeType = System.Windows.Forms.SizeType.AutoSize }); tbl.ColumnStyles.Add(new ColumnStyle { SizeType = System.Windows.Forms.SizeType.AutoSize }); tbl.RowStyles.Add(new RowStyle { SizeType = System.Windows.Forms.SizeType.AutoSize }); var name = new H3bLabel { Text = report.DisplayName, Name = "rpt_" + report.DisplayName, AutoSize = true, }; name.SetMaxWidth(400); var edit = new H3Link { Text = Translations.Edit + "...", Margin = new Padding(0, 2, 0, 0) }; edit.ClickOverride += () => { WizardForm wiz = new WizardForm(new StepIndicators(report), Translations.CustomReportBuilder); wiz.Height = 695; wiz.OnRunReport = RunCustomReport; wiz.Show(); }; var delete = new H3Link { Text = Translations.Delete + "...", Margin = new Padding(0, 2, 0, 0) }; delete.ClickOverride += () => { DeleteConfirm confirm = new DeleteConfirm(Translations.Delete, Translations.DeleteConfirmMessage); if (confirm.ShowDialog() == DialogResult.OK) { repo.DeleteCustomReport(report, ApplicationData.Instance.GetUserId()); LoadSavedReports(); } }; tbl.Controls.Add(name, 0, 0); tbl.Controls.Add(edit, 1, 0); tbl.Controls.Add(delete, 2, 0); tblReportBuilder.Controls.Add(tbl, 0, rowIndex); } this.ResumeLayout(); tblReportBuilder.Visible = true; }
private void leishReport_ClickOverride() { LeishReportExporter exporter = new LeishReportExporter(); WizardForm wiz = new WizardForm(new LeishReportStep(exporter, exporter.ExportName), Translations.LeishReport); wiz.OnFinish = () => { }; wiz.ShowDialog(); }
private void pcEpiExportClick_ClickOverride() { ExportRepository r = new ExportRepository(); ExportType t = r.GetExportType(ExportTypeId.PcEpi); t.Exporter = new PcEpiExporter(); WizardForm wiz = new WizardForm(new GenericExportStep(t), Translations.ExportsPcEpiDataForm); wiz.OnFinish = () => { }; wiz.ShowDialog(); }
public ControllerWizPage(WizardForm parent) : base(parent) { InitializeComponent(); this.textBoxControllerName.Focus(); }
public SilverlightCheckPage(WizardForm parent) : base(parent) { InitializeComponent(); }
public CreateUserControlViewPage(WizardForm wizard) : base(wizard) { InitializeComponent(); }
public AboutPage(WizardForm parent) : base(parent) { InitializeComponent(); }
private void EditCustomReport(SavedReport r) { WizardForm wiz = new WizardForm(new StepIndicators(r), Translations.CustomReportBuilder); wiz.Height = 695; wiz.OnRunReport = RunCustomReport; wiz.Show(); }
public FeatureSelectionPage(WizardForm parent) : base(parent) { InitializeComponent(); }
public CreateMasterViewPage(WizardForm wizard) : base(wizard) { InitializeComponent(); }
public SPSFBaseWizardPage(WizardForm parent) : base(parent) { }
public CreateViewPageBase(WizardForm wizard) : base(wizard) { InitializeComponent(); _showDocumentation.CheckedChanged += new EventHandler(_showDocumentation_CheckedChanged); }
private void eliminationReport_ClickOverride() { SavedReport sr = new SavedReport { StandardReportOptions = new EliminationReportOptions() }; sr.ReportOptions.IsAllLocations = true; sr.ReportOptions.IsCountryAggregation = true; sr.ReportOptions.IsByLevelAggregation = false; sr.ReportOptions.IsNoAggregation = false; WizardForm wiz = new WizardForm(new EliminationOptions(sr), Translations.ReportProgressTowardsEliminiation); wiz.OnFinish = () => { }; wiz.Height = 685; wiz.OnRunReport = RunEliminationReport; wiz.Show(); }
public ContentTypeImportPage(WizardForm parent) : base(parent) { // This call is required by the Windows Form Designer. InitializeComponent(); }
private void personsTreatedAndCoverageReport_ClickOverride() { SavedReport sr = new SavedReport { StandardReportOptions = new PersonsTreatedCoverageReportOptions() }; sr.ReportOptions.IsAllLocations = true; sr.ReportOptions.IsCountryAggregation = true; sr.ReportOptions.IsByLevelAggregation = false; sr.ReportOptions.IsNoAggregation = false; WizardForm wiz = new WizardForm(new PersonsTreatedCoverageOptions(sr), Translations.PersonsTreatedAndCoverageReport); wiz.OnFinish = () => { }; wiz.Height = 685; wiz.OnRunReport = RunPersonsTreatedAndCoverageReport; wiz.Show(); }
public WarningPage(WizardForm parent) : base(parent) { InitializeComponent(); }
private void rtiWorkbooks_ClickOverride() { WizardForm wiz = new WizardForm(new TaskForceCountryStep(), Translations.RtiCountryDiseaseWorkbook); wiz.OnFinish = () => { }; wiz.ShowDialog(); }
public BCSSingleEntityPage(WizardForm parent) : base(parent) { // This call is required by the Windows Form Designer. InitializeComponent(); }
private void EditPersonsTreatedAndCoverageReport(SavedReport r) { WizardForm wiz = new WizardForm(new PersonsTreatedCoverageOptions(r), Translations.PersonsTreatedAndCoverageReport); wiz.Height = 685; wiz.OnRunReport = RunPersonsTreatedAndCoverageReport; wiz.Show(); }