Ejemplo n.º 1
0
        public void DisplayNewWizardForm(string sTextName)
        {
            int iNewIndex = -1;

            for (int i = 0; i < _lstWizForms.Count; i++)
            {
                if (_lstWizForms[i].Text == sTextName)
                {
                    iNewIndex = i;
                    break;
                }
            }

            if (iNewIndex < 0)
            {
                throw new ArgumentException("System Error: the wizard process requested a named screen that does not exist.");
            }

            frbHSDWizard fwCurrent = _lstWizForms[_iCurrentWizFormIdx];
            frbHSDWizard fwNew     = _lstWizForms[iNewIndex];

            fwCurrent.Hide();
            fwNew.Show();

            _iCurrentWizFormIdx = iNewIndex;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Load the next/prev page in the wizard.
        /// </summary>
        /// <param name="iIndexDelta">Presently, should always be 1, -1, or 0.</param>
        public void DisplayNewWizardForm(int iIndexDelta)
        {
            int iNewIndex = _iCurrentWizFormIdx + iIndexDelta;

            if (iNewIndex < 0 || (iNewIndex > _lstWizForms.Count - 1))
            {
                throw new ArgumentException("System Error: the wizard process requested a next/prev screen that does not exist.");
            }

            frbHSDWizard fwCurrent = _lstWizForms[_iCurrentWizFormIdx];
            frbHSDWizard fwNew     = _lstWizForms[iNewIndex];

            fwCurrent.Hide();
            fwNew.Show();

            _iCurrentWizFormIdx = iNewIndex;
        }