/// <summary>
        /// Jonathan Sanborn
        /// 
        /// Constructor
        /// </summary>
        /// <param name="mmControl">The controller object</param>
        public frmAdminControl(MMControl mmControl)
        {
            InitializeComponent();
            MMControl = mmControl;

            AddUserForm = new frmAddUser(mmControl);
            ModifyUserForm = new frmModifyUser ( mmControl );
            RemoveUsersForm = new frmRemoveUsers ( mmControl );


            //AG-JB
            //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);

        }