/*
         * Pre:
         * Post: If all data is valid, the point data is updated
         */
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            if (dataIsValid())
            {
                if (audition == null)
                {
                    resetAuditionVar();
                }

                setAuditionPoints();

                if (audition.submitPoints())
                {
                    displaySuccess();
                }
                else
                {
                    showErrorMessage("Error: An error occurred.");
                }
            }
        }
Example #2
0
        /*
         * Pre:
         * Post: If all data is valid, the point data is updated
         */
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            clearErrorMessages();

            if (dataIsValid())
            {
                if (audition == null)
                {
                    resetAuditionVar();
                }

                setAuditionPoints();

                if (audition.submitPoints())
                {
                    displaySuccessMessageAndOptions();
                }
                else
                {
                    lblErrorMsg.Text    = "An error occurred";
                    lblErrorMsg.Visible = true;
                }
            }
        }