예제 #1
0
        /// <summary>
        /// Jonathan Sanborn
        /// 
        /// Constructor
        /// </summary>
        /// <param name="mmControl">The controller object</param>
        public frmAdminControl(MMControl mmControl)
        {
            InitializeComponent();
            this.mmControl = mmControl;

            addUserForm = new frmAddUser(mmControl);
            modifyUserForm = new frmModifyUser ( mmControl );
            removeUsersForm = new frmRemoveUsers ( mmControl );
            addProblemSetForm = new frmAddProblemSet ( mmControl );
            assignStudents = new frmAssignStudents ( mmControl );

            lblCurrentTime.Text = DateTime.Now.ToLongDateString () + " " + DateTime.Now.ToShortTimeString ();
            tmrClock.Start ();

            /////Set the bindings
            //studentBindingSource.DataSource = MMControl.StudentList;
            //problemSetBindingSource.DataSource = MMControl.ProblemSetList;
            //assignmentsBindingSource.DataSource = studentBindingSource;
            //incompletedAssignmentsBindingSource.DataSource = studentBindingSource;
            //ddlNewProblemSetAttempts.DataSource = MMControl.NumberOfAttempts;
            //ddlDefaultsAttempts.DataSource = MMControl.NumberOfAttemptsDefault;

            //UpdateBindings();

            //loadProblemSetDefaults();

            //tbcAdmin.SelectedIndexChanged += new EventHandler(tbcAdmin_SelectedIndexChanged);

            ///// Set the initial valid date ranges for repots tab
            //dtpStartDate.MinDate = DateTime.Now.AddYears(-120);
            //dtpStartDate.Value = DateTime.Now.AddYears(-5);
            //dtpStartDate.MaxDate = DateTime.Now;
            //dtpEndDate.MinDate = DateTime.Now.AddYears(-120);
            //dtpEndDate.Value = DateTime.Now;
            //dtpEndDate.MaxDate = DateTime.Now;

            lblAdminName.Text = mmControl.CurrentUser.GetFullName;
            lblLoginDate.Text = mmControl.CurrentUser.LastLogin ().Date.ToString ();

        }
예제 #2
0
        //#region EventHandlers for frmDrillSettings

        //#endregion
        //#region DrillSettings Logic Methods
        //#endregion


        //// Simple form ==> Logic is contained in here
        //#region EventHandlers for frmAbout

        ///// </summary>
        ///// 
        ///// </summary>
        ///// <author> Jeff Bunce </author>
        //internal void CloseAboutForm()
        //{
        //}
        //#endregion



        #region Constructors

        /// <summary> 
        /// Construct this object by instantiating all sub-forms
        /// </summary>
        /// <author>
        /// 26 April 2014
        /// Jeff Bunce
        /// </author>
        /// <changelog>
        /// Created
        /// </changelog>
        internal CtrlAdmin(Ctrl control)
        {
            init();
            LoadNumberOfAttempts();
            adminControlForm = new frmAdminControl(this);
            // parentReportForm = new frmParentReport();
            studentReportForm = new frmStudentReport(this);
            assignStudenstForm = new frmAssignStudents(this);
            addUserForm = new frmAddUser(this);
            modifyUserForm = new frmModifyUser(this);
            removeUsersForm = new frmRemoveUsers(this);
            addProblemSetForm = new frmAddProblemSet(this);
            removeProblemSetForm = new frmRemoveProblemSet(this);
            problemSetDefaultsForm = new frmProblemSetDefaults(this);
            drillScreenSettingsForm = new frmDrillScreenSettings(this);
            aboutForm = new frmAbout();
            studentDetailForm = new frmStudentDetail ( this );
            summaryReportForm = new frmSummary(this);

        }
예제 #3
0
 private void editStudentAssignmentsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var assignStudentsForm = new frmAssignStudents(control);
     assignStudentsForm.ShowDialog();
 }