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

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

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

            studentWelcomeForm.Hide();
            studentWelcomeForm.Close();
            childControl = new CtrlMathDrill(this, CurrentStudent);
            childControl.TakeControl();
            //}
        }
コード例 #2
0
        /// <summary>
        /// Jonathan Sanborn
        /// 
        /// Constructor
        /// </summary>
        /// <param name="Control">Controller Object</param>
        internal frmStudentDrill(CtrlMathDrill mmControl)
        {

            InitializeComponent();
            control = mmControl;

            lblUsername.Text = control.LoggedInStudent.GetFullName;
            //Assignment assign = control.CurrentStudent.Assignments.Where(w => !w.IsCompleted).First();
            //lblCurrentProblem.Text = control.ProblemNumber.ToString();
            //lblTotalProblems.Text = control.TotalProblems.ToString();
        }