Ejemplo n.º 1
0
        private void MoveToPage(BaseWizardControl.Page page)
        {
            m_currentControl.Hide();
            btn_back.Enabled = true;
            switch (page)
            {
            case BaseWizardControl.Page.Welcome:
                m_currentControl = uc_welcome;
                break;

            case BaseWizardControl.Page.ClassicCurve:
                m_currentControl = uc_classicCurve;
                break;

            case BaseWizardControl.Page.DoubleBtn:
                m_currentControl = uc_doubleBtn;
                break;

            case BaseWizardControl.Page.WheelBtn:
                m_currentControl = uc_wheelBtn;
                break;

            case BaseWizardControl.Page.Activation:
                m_currentControl = uc_final;
                break;
            }
            m_currentControl.Show();


            if (m_currentControl.Next != BaseWizardControl.Page.None)
            {
                btn_next.DialogResult = DialogResult.None;
                btn_next.Text         = Translation.Btn_next;
            }
            else
            {
                btn_next.DialogResult = DialogResult.OK;
                btn_next.Text         = Translation.Btn_finish;
            }
            if (m_currentControl.Previous == BaseWizardControl.Page.None)
            {
                btn_back.Enabled = false;
            }
        }