예제 #1
0
 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;
     }
 }
예제 #2
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);
            }
        }
예제 #3
0
 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;
 }
예제 #4
0
 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;
     }
 }
예제 #5
0
 private void entryPointPage_Initialize(object sender, WizardPageInitEventArgs e)
 {
     listBoxEntryPoint.Items.Clear();
     listBoxEntryPoint.Items.AddRange(_feedBuilder.Candidates.Cast<object>().ToArray());
     listBoxEntryPoint.SelectedItem = _feedBuilder.MainCandidate;
 }
예제 #6
0
 private void detailsPage_Initialize(object sender, WizardPageInitEventArgs e)
 {
     propertyGridCandidate.SelectedObject = _feedBuilder.MainCandidate;
 }
예제 #7
0
        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();
        }
예제 #8
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);
 }
예제 #9
0
 private void pageExistingCryptoKey_Initialize(object sender, WizardPageInitEventArgs e)
 {
     textBoxCryptoKey.Text = _config.SyncCryptoKey;
 }
예제 #10
0
 private void introPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     //MessageBox.Show("Page initialized");
 }
예제 #11
0
 private void endPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     wizardControl1.FinishButtonText = "Sorry, but you are hosed.";
 }
예제 #12
0
 private void pageChangeCryptoKey_Initialize(object sender, WizardPageInitEventArgs e)
 {
     textBoxCryptoKeyChange.Text = StringUtils.GeneratePassword(16);
 }
예제 #13
0
 private void pageResetWelcome_Initialize(object sender, WizardPageInitEventArgs e)
 {
     _server = _config.ToSyncServer();
 }
예제 #14
0
 private void pageCryptoKeyChanged_Initialize(object sender, WizardPageInitEventArgs e)
 {
     if (_troubleshooting)
     {
         pageCryptoKeyChanged.IsFinishPage = true;
         pageCryptoKeyChanged.ShowCancel = false;
     }
     else
         pageCryptoKeyChanged.NextPage = pageSetupFinished;
 }
예제 #15
0
 private void securityPage_Initialize(object sender, WizardPageInitEventArgs e)
 {
     ListKeys();
 }
예제 #16
0
 private void wizardPage2_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     headerPanel.Visible = topDivider.Visible = true;
 }
예제 #17
0
 private void wizardPage1_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     headerPanel.Visible     = topDivider.Visible = false;
     startEndPicture.Visible = true;
 }
예제 #18
0
 private void scopePage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     this.pnlSiteFiles.Location  = this.pnlSiteWildcard.Location;
     this.pnlSiteTenant.Location = this.pnlSiteWildcard.Location;
 }
예제 #19
0
        // 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)
        {
        }