Beispiel #1
0
 void WizardControl_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
 {
     if (TransitionManager != null)
     {
         TransitionManager.EndTransition();
     }
 }
Beispiel #2
0
        //private readonly DevExpress.XtraWizard.WizardControl _wizardControl;

        //public WizardFocusButtonNext(WizardControl wizardControl)
        //{
        //    _wizardControl = wizardControl;
        //}

        /// <summary>
        /// Todas as paginas terão foco inicial no botão "next"
        /// </summary>
        private static void OnSelectedPageChanged(object sender, WizardPageChangedEventArgs e)
        {
            if (sender is WizardControl)
            {
                var wc = sender as WizardControl;

                wc.FocusButtonNext();
            }
        }
Beispiel #3
0
 private void wizardControl1_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
 {
     if (e.Page == PFinish)
     {
         PFinish.AllowNext   = false;
         PFinish.AllowBack   = false;
         PFinish.AllowCancel = false;
     }
 }
Beispiel #4
0
        /// <summary>
        /// Occours when the selected Wizard Page has changed
        /// </summary>
        /// <param name="sender">Wizard Control</param>
        /// <param name="e">WizardPageChanged EventArgs</param>
        private void WizardControl_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
        {
            if (_WizardForm.WizardControl.Pages.IndexOf(e.Page) == 0 && e.Direction == Direction.Forward)
            {
                UpdateCurrentView(e.Page);
            }

            FocusDefaultItem();
        }
Beispiel #5
0
        /// <summary>
        /// Occours when the selected Wizard Page has changed
        /// </summary>
        /// <param name="sender">Wizard Control</param>
        /// <param name="e">WizardPageChanged EventArgs</param>
        private void WizardControl_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
        {
            var wizardPage = e.Page as XafWizardPage;

            if (wizardPage != null)
            {
                UpdateCurrentView(wizardPage);
                FocusDefaultItem();
            }
        }
Beispiel #6
0
 private void wizardControl1_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
 {
     if (e.Page == wpRecipientData)
     {
         teRecipientName.Focus();
     }
     if (e.Page == wpSignature)
     {
         teYourName.Focus();
     }
 }
Beispiel #7
0
 private void WizardControl_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
 {
     if (e.Page == wizardPage1)
     {
         if (e.PrevPage == welcomeWizardPage1)
         {
             InitWizPage1();
         }
     }
     if (e.Page == wizardPage2 && e.PrevPage == wizardPage1 && MappingRadioGroup.SelectedIndex == 1)
     {
     }
 }
Beispiel #8
0
 private void wcImport_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
 {
     this.lcSheet.Visible = false;
     if ((e.Page == this.wpSelectField) && (e.Direction == Direction.Forward))
     {
         this.lcSheet.Visible = true;
         if (this.txtFilePath.Text == "")
         {
             this.wcImport.SelectedPage = this.wpSelectFile;
         }
     }
     if (((e.Page == this.wpProcessPage) && (e.Direction == Direction.Forward)) && !this.m_IsFieldFull)
     {
         this.wcImport.SelectedPage = this.wpSelectField;
     }
     if ((e.Page == this.wpProcessPage) && (e.Direction == Direction.Backward))
     {
         this.wcImport.SelectedPage = this.wpSelectField;
     }
 }
 private void wizardControlImportUser_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
 {
     if (e.Page == wizardPageFileSelection)
     {
         buttonEditFileSelection.Text      = model.bindingProperty.ExcelFilePath;
         checkEditRowHasColumnName.Checked = model.bindingProperty.FirstRowHasHeaders;
     }
     else if (e.Page == wizardPageColumnMapping)
     {
         gridControlColumnMapping.DataSource = model.bindingProperty.ColumnMappings;
     }
     else if (e.Page == wizardPageDataPreview)
     {
         if (mappingChanged)
         {
             model.CreateUserObjectsForDB();
             gridControlPreviewData.DataSource = model.bindingProperty.Users;
             gridControlPreviewData.Refresh();
             mappingChanged = false;
         }
     }
 }
Beispiel #10
0
        private void wizardControl1_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
        {
            if (e.Page == pageCreateDatabase)
            {
                Splash = new DevExpress.XtraSplashScreen.SplashScreenManager(this, typeof(Waiting.Wait), true, true);
                Splash.WaitForSplashFormClose();
                if (!Splash.IsSplashFormVisible)
                {
                    Splash.ShowWaitForm();
                }

                do_SQLSettings();
                if (DataBaseControl)
                {
                    e.Page.AllowNext = true;
                    do_CreateTable();
                    if (Splash.IsSplashFormVisible)
                    {
                        Splash.CloseWaitForm();
                    }
                }
                else
                {
                    e.Page.AllowNext = false;
                    do_CreateDatabese();

                    if (Splash.IsSplashFormVisible)
                    {
                        Splash.CloseWaitForm();
                    }
                }
            }
            if (e.Page == pageLisansDemo)
            {
                dt_RecordDate.EditValue = DateTime.Now;
            }
        }
Beispiel #11
0
        private void WizardControl_SelectedPageChanged(object sender, WizardPageChangedEventArgs e) {
            if (e.Page == wizardPage1) {
                if (e.PrevPage == welcomeWizardPage1) InitWizPage1();
            }
            if (e.Page == wizardPage2 && e.PrevPage == wizardPage1 && MappingRadioGroup.SelectedIndex == 1) {

            }

        }
Beispiel #12
0
 private void wizardControl_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
 {
     UpdateUI();
 }
Beispiel #13
0
 /// <summary>
 /// Occours when the selected Wizard Page has changed
 /// </summary>
 /// <param name="sender">Wizard Control</param>
 /// <param name="e">WizardPageChanged EventArgs</param>
 private void WizardControl_SelectedPageChanged(object sender, WizardPageChangedEventArgs e) {
     ((WizardControl)sender).SelectedPageChanged -= WizardControl_SelectedPageChanged;
     UpdateCurrentView(e.Page);
 }
 private void wizardControl_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
 {
     UpdateUI();
 }
Beispiel #15
0
        /// <summary>
        /// Occours when the selected Wizard Page has changed
        /// </summary>
        /// <param name="sender">Wizard Control</param>
        /// <param name="e">WizardPageChanged EventArgs</param>
        private void WizardControl_SelectedPageChanged(object sender, WizardPageChangedEventArgs e) {
            if (_wizardForm.WizardControl.Pages.IndexOf(e.Page) == 0 && e.Direction == Direction.Forward)
                UpdateCurrentView(e.Page);

            FocusDefaultItem();
        }