}// onChange

        //-------------------------------------------------
        // onTextChange
        //
        // This event fires when the contents of either text
        // box change. We need to have a value in the name
        // box to have the potiential of valid assembly information,
        // so we don't enable the finish button until we have
        // values for both.
        //-------------------------------------------------
        void onTextChange(Object o, EventArgs e)
        {
            CWizard wiz = (CWizard)CNodeManager.GetNode(m_iCookie);

            // See if we should turn on the Finish button
            if (m_txtName.Text.Length > 0)
            {
                wiz.TurnOnFinish(true);
            }
            // Nope, we want the Finish button off
            else
            {
                wiz.TurnOnFinish(false);
            }
        }// onTextChange
示例#2
0
        }// ImportedPermissionSet

        void onTextChange(Object o, EventArgs e)
        {
            CWizard wiz = (CWizard)CNodeManager.GetNode(m_iCookie);

            if (m_radCreateNew.Checked)
            {
                // See if we should turn on the Next button
                bool fTurnOnNext = m_txtName.Text.Length > 0;
                wiz.TurnOnNext(fTurnOnNext);
            }
            else
            {
                // If they have a filename, then we be messing with the finish button
                bool fTurnOnFinish = m_txtFilename.Text.Length > 0;

                wiz.TurnOnFinish(fTurnOnFinish);
            }
        }// onTextChange