Beispiel #1
0
        /*
         * Pre:
         * Post: The audition's points are set
         */
        private void setAuditionPoints()
        {
            try
            {
                int compId, points;

                //update points for each composition
                for (int i = 1; i < tblCompositions.Rows.Count; i++)
                {
                    compId = Convert.ToInt32(tblCompositions.Rows[i].Cells[0].Text);
                    points = Convert.ToInt32(((TextBox)tblCompositions.Rows[i].Cells[2].Controls[0]).Text);

                    audition.setCompositionPoints(compId, points);
                }

                //update theory points
                audition.theoryPoints = Convert.ToInt32(txtTheoryPoints.Text);
            }
            catch (Exception e)
            {
                lblErrorMsg.Text    = "An error occurred";
                lblErrorMsg.Visible = false;

                Utility.LogError("District Point Entry", "setAuditionPoints", "", "Message: " + e.Message + "   Stack Trace: " + e.StackTrace, -1);
            }
        }