Beispiel #1
0
        //------------------------------------------------------------------//
        // Authors: Joshua Boone and Justine Dinh                           //
        // Date: 4/24/14                                                    //
        //------------------------------------------------------------------//
        /// <summary>Constructor.</summary>
        /// <param name="manager">Copy of the class the UI talks to for data.</param>
        public PlayDrill(Manager manager)
        {
            InitializeComponent();
            localManager = manager;
            InitializeDate();
            InitializeTimer();
            MathDrill_InputTxt.Select();
            MathDrill_SubmitBtn.Enabled = false;

            MathDrill_InputTxt.KeyPress += new KeyPressEventHandler(PlayDrill_DigitsKeyPress);
            MathDrill_CurrentNumLbl.Text = localManager.GetCurrentNumber();
            MathDrill_StudentNameLbl.Text = localManager.currentStudent.FirstName;
            MathDrill_TotalNumberLbl.Text = localManager.GetNumQuestions().Replace("questions.", "");
            MathDrill_InputTxt.SelectionAlignment = HorizontalAlignment.Right;
            RefreshRange();
        }
Beispiel #2
0
        //------------------------------------------------------------------//
        // Kyle Bridges, Harvey Kreitzer                                    //
        // Date: 2/12/2014                                                  //
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/4/14                                                     //
        //------------------------------------------------------------------//
        /// <summary>Math Drill form constructor.</summary>
        /// <param name="manager">Manager object.</param>
        public MathDrill_Form(Manager manager)
        {
            InitializeComponent();
            localManager = manager;
            InitializeDate();
            InitializeTimer();

            MathDrill_InputTxt.Select();
            MathDrill_SubmitBtn.Enabled = false;

            this.MathDrill_InputTxt.KeyPress += new KeyPressEventHandler(RaptorMath_DigitsKeyPress);

            MathDrill_CurrentNumLbl.Text = localManager.GetCurrentNumber();
            this.StudentName = localManager.currentStudent.LoginName;
            this.MathDrill_InputTxt.KeyPress += new KeyPressEventHandler(RaptorMath_DigitsKeyPress);

            this.TotalQuestions = localManager.GetNumQuestions().Replace("questions.", "");
            RefreshRange();
        }