private void authPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e) { if (this.cmbAuthenticationRegionCert.SelectedIndex < 0) { this.cmbAuthenticationRegionCert.SelectedIndex = 0; } if (this.cmbAuthOption.SelectedIndex < 0) { this.cmbAuthOption.SelectedIndex = 0; } if (this.cmbSiteSelectionOption.SelectedIndex < 0) { this.cmbSiteSelectionOption.SelectedIndex = 0; } if (this.cmbScanMode.SelectedIndex < 0) { this.cmbScanMode.SelectedIndex = 0; } if (this.cmbSeparator.SelectedIndex < 0) { this.cmbSeparator.SelectedIndex = 0; } if (this.cmbDateFormat.SelectedIndex < 0) { this.cmbDateFormat.SelectedIndex = 0; } }
/// <summary> /// Raises the <see cref="Initialize"/> event. /// </summary> /// <param name="prevPage">The page that was previously selected.</param> protected virtual void OnInitialize(WizardPage prevPage) { EventHandler <WizardPageInitEventArgs> handler = Initialize; WizardPageInitEventArgs e = new WizardPageInitEventArgs(this, prevPage); if (handler != null) { handler(this, e); } }
private void middlePage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e) { initMiddle = true; if (!System.IO.File.Exists(System.IO.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.System), "dwmapi.dll"))) { checkBox1.Enabled = false; } else { checkBox1.Checked = DesktopWindowManager.IsCompositionEnabled(); } wizardControl1.FinishButtonText = "Finish"; initMiddle = false; }
private void iconPage_Initialize(object sender, WizardPageInitEventArgs e) { var windowsExe = _feedBuilder.MainCandidate as WindowsExe; if (windowsExe == null) pictureBoxIcon.Visible = buttonSaveIco.Enabled = buttonSavePng.Enabled = false; else { _icon = windowsExe.ExtractIcon(); pictureBoxIcon.Image = _icon.ToBitmap(); pictureBoxIcon.Visible = buttonSaveIco.Enabled = buttonSavePng.Enabled = true; } }
private void entryPointPage_Initialize(object sender, WizardPageInitEventArgs e) { listBoxEntryPoint.Items.Clear(); listBoxEntryPoint.Items.AddRange(_feedBuilder.Candidates.Cast<object>().ToArray()); listBoxEntryPoint.SelectedItem = _feedBuilder.MainCandidate; }
private void detailsPage_Initialize(object sender, WizardPageInitEventArgs e) { propertyGridCandidate.SelectedObject = _feedBuilder.MainCandidate; }
private void archiveExtractPage_Initialize(object sender, WizardPageInitEventArgs e) { _archive = (Archive)_feedBuilder.RetrievalMethod; listBoxExtract.BeginUpdate(); listBoxExtract.Items.Clear(); var baseDirectory = new DirectoryInfo(_feedBuilder.TemporaryDirectory); baseDirectory.Walk(dir => listBoxExtract.Items.Add(dir.RelativeTo(baseDirectory))); listBoxExtract.SelectedItem = baseDirectory.WalkThroughPrefix().RelativeTo(baseDirectory); listBoxExtract.EndUpdate(); }
/// <summary> /// Raises the <see cref="Initialize"/> event. /// </summary> /// <param name="prevPage">The page that was previously selected.</param> protected virtual void OnInitialize(WizardPage prevPage) { EventHandler<WizardPageInitEventArgs> handler = Initialize; WizardPageInitEventArgs e = new WizardPageInitEventArgs(this, prevPage); if (handler != null) handler(this, e); }
private void pageExistingCryptoKey_Initialize(object sender, WizardPageInitEventArgs e) { textBoxCryptoKey.Text = _config.SyncCryptoKey; }
private void introPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e) { //MessageBox.Show("Page initialized"); }
private void endPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e) { wizardControl1.FinishButtonText = "Sorry, but you are hosed."; }
private void pageChangeCryptoKey_Initialize(object sender, WizardPageInitEventArgs e) { textBoxCryptoKeyChange.Text = StringUtils.GeneratePassword(16); }
private void pageResetWelcome_Initialize(object sender, WizardPageInitEventArgs e) { _server = _config.ToSyncServer(); }
private void pageCryptoKeyChanged_Initialize(object sender, WizardPageInitEventArgs e) { if (_troubleshooting) { pageCryptoKeyChanged.IsFinishPage = true; pageCryptoKeyChanged.ShowCancel = false; } else pageCryptoKeyChanged.NextPage = pageSetupFinished; }
private void securityPage_Initialize(object sender, WizardPageInitEventArgs e) { ListKeys(); }
private void wizardPage2_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e) { headerPanel.Visible = topDivider.Visible = true; }
private void wizardPage1_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e) { headerPanel.Visible = topDivider.Visible = false; startEndPicture.Visible = true; }
private void scopePage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e) { this.pnlSiteFiles.Location = this.pnlSiteWildcard.Location; this.pnlSiteTenant.Location = this.pnlSiteWildcard.Location; }
// Find page by tag value. //WizardPageCollection result = WizardPageCollection.Find( //delegate (WizardPage page) //{ // return ((Form_Query)page.Tag).Id_Query == IDtoFind; //} //); private void wizardPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e) { }