コード例 #1
0
        /// <summary>
        /// 1 April 2014
        /// Jonathan Sanborn
        ///
        /// Displays the Student Welcome Form
        /// </summary>
        /// <param name="sender">The initating object</param>
        /// <param name="e">Event Args</param>
        public void StartDrill(object sender, EventArgs e)
        {
            Button btn = sender as Button;

            if (btn != null)
            {
                Form myForm = btn.FindForm();

                myForm.Hide();
                myForm.Close();

                StudentDrillForm = new frmStudentDrill(this);
                StudentDrillForm.ShowDialog();
            }
        }
コード例 #2
0
        /// <summary>
        /// 9 April 2014
        /// Jonathan Sanborn
        /// 
        /// Constructor for an Assignment Session
        /// </summary>
        /// <param name="mmControl">The Control Object</param>
        /// <param name="assign">The Assignment for this session</param>
        internal CtrlMathDrill(CtrlStudent mmControl, Student currentStudent)
        {
            init();
            parentControl = mmControl;
            //loggedInStudent = new Student();
            loggedInStudent = currentStudent;
            assignmentAttempt = new AssignmentAttempt();
            studentDrillForm = new frmStudentDrill(this);
            studentResultForm = new frmDrillResult(this);
            

        }
コード例 #3
0
        /// <summary>
        /// 1 April 2014
        /// Jonathan Sanborn
        /// 
        /// Displays the Student Welcome Form
        /// </summary>
        /// <param name="sender">The initating object</param>
        /// <param name="e">Event Args</param>
        public void StartDrill(object sender, EventArgs e)
        {
            Button btn = sender as Button;

            if (btn != null)
            {
                Form myForm = btn.FindForm();

                myForm.Hide();
                myForm.Close();

                StudentDrillForm = new frmStudentDrill(this);
                StudentDrillForm.ShowDialog();
            }
        }