コード例 #1
0
ファイル: StudentHome.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Kyle Bridges, Harvey Kreitzer                                    //
        // Date: 2/11/2014                                                  //
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/5/14                                                     //
        //------------------------------------------------------------------//
        /// <summary>Student Home form constructor.</summary>
        /// <param name="manager">The program management class.</param>
        public StuHome_Form(Manager manager)
        {
            localManager = manager;
            InitializeComponent();
            InitializeDate();
            InitializeTimer();
            RefreshDrillDdl();
            StuHome_StartDrillBtn.Enabled = false;
            StuHome_DrillDdl.Enabled = false;
            StuHome_DrillDdl.Select();

            this.StudentName = localManager.currentUser;
            if (localManager.currentStudent.LastLogin == "Unknown")
                this.LastLogin = "******";
            else
                this.LastLogin = localManager.currentStudent.LastLogin;

            if (localManager.currentStudent.CurDrillList.Count > 0)
                StuHome_DrillDdl.Enabled = true;
            StuHome_TotalNumLbl.Visible = false;
            StuHome_NumQuestionsLbl.Visible = false;

            localManager.SaveLoginDate(localManager.studentXMLPath,
            localManager.currentStudent.LoginName, DateTime.Now.ToString("M/d/yyyy"));
        }
コード例 #2
0
ファイル: CreateGroup.cs プロジェクト: Echiv/RaptorMath
 public CreateGroup(Manager manage)
 {
     InitializeComponent();
     localManager = manage;
     CreateGroupDateLbl.Text = DateTime.Now.ToString("M/d/yyyy");
     CreateGroupTimeLbl.Text = DateTime.Now.ToString("h:mm tt");
 }
コード例 #3
0
ファイル: DrillReport.cs プロジェクト: Echiv/RaptorMath
 //------------------------------------------------------------------//
 // Authors: Joshua Boone and Justine Dinh                           //
 // Date: 5/01/14                                                    //
 //------------------------------------------------------------------//
 /// <summary>Constructor.</summary>
 /// <param name="manager">Copy of the class the UI talks to for data.</param>
 public DrillReport(Manager manager)
 {
     InitializeComponent();
     localManager = manager;
     SetupLabels();
     SaveDrill();
     localManager.currentStudent.ResetCurrentDrill();
 }
コード例 #4
0
ファイル: ReportSingle.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/4/14                                                     //
        //------------------------------------------------------------------//
        /// <summary>Single Report form constructor.</summary>
        /// <param name="manager">The program management class.</param>
        public SingleReport_Form(Manager manager)
        {
            InitializeComponent();
            localManager = manager;
            InitializeDate();
            InitializeTimer();

            DisplayRecords();

            this.StudentName = localManager.reportStudent.LoginName;
        }
コード例 #5
0
ファイル: StudentHomepage.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Authors: Joshua Boone and Justine Dinh                           //
        // Date: 4/19/14                                                    //
        //------------------------------------------------------------------//
        /// <summary>Constructor.</summary>
        /// <param name="manager">Copy of the class the UI talks to for data.</param>
        public StudentHomepage(Manager manager)
        {
            InitializeComponent();
            InitializeDate();
            InitializeTimer();
            localManager = manager;
            FillDrillDdl();
            SetButtons();
            SetLabels();

            localManager.SaveLoginDate(localManager.studentXMLPath,
                localManager.currentStudent.LoginName, DateTime.Now.ToString("M/d/yyyy"));
        }
コード例 #6
0
ファイル: AdminHomepage.cs プロジェクト: Echiv/RaptorMath
 // Used when importing students from a txt file
 //OpenFileDialog openFile;
 //------------------------------------------------------------------//
 // 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 AdminHomepage(Manager manager)
 {
     InitializeComponent();
     InitializeTimer();
     InitializeDate();
     localManager = manager;
     localManager.SaveLoginDate(localManager.adminXMLPath, localManager.currentAdmin.LoginName, DateTime.Now.ToString("M/d/yyyy"), true);
     AdminNameLbl.Text = localManager.currentAdmin.LoginName;
     LastLoginDateLbl.Text = localManager.currentAdmin.LastLogin;
     GroupNameComboBox.IntegralHeight = false;
     FillSingleColumnDataGrid(localManager.GetGroupNames() , GroupNameDataDisplay);
     SetupGroupReports();
     SetUpReportDate();
 }
コード例 #7
0
ファイル: CreateDrill.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/2/14                                                     //
        //------------------------------------------------------------------//
        /// <summary>Create Drill form constructor.</summary>
        /// <param name="manager">The program management class.</param>
        public CreateDrill_Form(Manager manager)
        {
            InitializeComponent();
            localManager = manager;
            InitializeDate();
            InitializeTimer();

            CreateDrill_AdditionRdo.Select();
            this.CreateDrill_NumQuestionsTxt.KeyPress += new KeyPressEventHandler(RaptorMath_DigitsKeyPress);
            this.CreateDrill_MinValueTxt.KeyPress += new KeyPressEventHandler(RaptorMath_DigitsKeyPress);
            this.CreateDrill_MaxValueTxt.KeyPress += new KeyPressEventHandler(RaptorMath_DigitsKeyPress);
            this.CreateDrill_DrillNameTxt.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndDigitsKeyPress);
            this.AdminName = localManager.currentUser.Remove(0, 8);
        }
コード例 #8
0
ファイル: PlayDrill.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // 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();
        }
コード例 #9
0
ファイル: ReportGroup.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/1/14                                                     //
        //------------------------------------------------------------------//
        /// <summary>Group Report form constructor.</summary>
        /// <param name="manager">The program management class.</param>
        public ReportGroup_Form(Manager manager)
        {
            InitializeComponent();
            localManager = manager;
            InitializeDate();
            InitializeTimer();

            GroupReport_GroupNameLbl.Visible = false;

            if (localManager.reportGroup.ID > 0)
            {
                GroupReport_GroupNameLbl.Text = localManager.reportGroup.Name;
                GroupReport_GroupNameLbl.Visible = true;
                DisplayRecords();
            }
            else
            {
                MessageBox.Show("Group does not exist", "Raptor Math", MessageBoxButtons.OK);
            }
        }
コード例 #10
0
ファイル: StudentReports.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/5/14                                                     //
        //------------------------------------------------------------------//
        //------------------------------------------------------------------//
        // Authors: Joshua Boone and Justine Dinh                           //
        // Date: 4/12/14                                                    //
        //------------------------------------------------------------------//
        /// <summary>Student Reports form constructor.</summary>
        /// <param name="manager">The program management class.</param>
        public StudentReports_Form(Manager manager)
        {
            InitializeComponent();
            localManager = manager;
            InitializeDate();
            InitializeTimer();

            ReportHome_SingleReportBtn.Enabled = false;
            ReportHome_GroupReportBtn.Enabled = false;
            ReportHome_StudentCmbo.Select();
            ReportHome_StartDate.MaxDate = DateTime.Now;
            TimeSpan sinceMidnight = DateTime.Now - DateTime.Today;
            ReportHome_StartDate.MaxDate.Subtract(sinceMidnight);
            localManager.StartDate = DateTime.Today;
            ReportHome_EndDate.MaxDate = DateTime.Now;
            ReportHome_EndDate.MinDate = ReportHome_StartDate.Value;
            localManager.EndDate = ReportHome_EndDate.Value;

            this.ReportHome_StudentCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersKeyPress);
            this.ReportHome_GroupCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndWhiteSpaceKeyPress);

            foreach (Student student in localManager.studentList)
            {
                ReportHome_StudentCmbo.Items.Add(student.LoginName);
            }
            // Go ahead and disable the student combo box if there are no students in the system
            if (ReportHome_StudentCmbo.Items.Count == 0)
            {
                ReportHome_StudentCmbo.Enabled = false;
            }
            foreach (Group group in localManager.groupList)
            {
                ReportHome_GroupCmbo.Items.Add(group.Name);
            }
            // Go ahead and disable the group combo box if there are no groups in the system
            if (ReportHome_GroupCmbo.Items.Count == 0)
            {
                ReportHome_GroupCmbo.Enabled = false;
            }
            this.AdminName = localManager.currentUser.Remove(0, 8);
        }
コード例 #11
0
ファイル: ManageGroups.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/3/14                                                     //
        //------------------------------------------------------------------//
        /// <summary>Manage Groups form constructor.</summary>
        /// <param name="manager">The program management class.</param>
        public ManageGroups_Form(Manager manager)
        {
            InitializeComponent();
            localManager = manager;
            InitializeDate();
            InitializeTimer();
            RefreshCmboBoxes();

            MngGroups_GroupNameCmbo.Select();
            MngGroups_CreateBtn.Enabled = false;
            MngGroups_RenameBtn.Enabled = false;
            MngGroups_NewNameCmbo.Enabled = false;

            this.MngGroups_SelectGroupCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndDigitsKeyPress);
            this.MngGroups_NewNameCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndDigitsEnterKeyPress);
            this.MngGroups_GroupNameCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndDigitsKeyPress);

            this.AdminName = localManager.currentUser.Remove(0, 8);
            MngGroups_NewNameCmbo.GotFocus += new EventHandler(MngGroups_NewNameCmbo_GotFocus);
            MngGroups_GroupNameCmbo.GotFocus += new EventHandler(MngGroups_GroupNameCmbo_GotFocus);
            MngGroups_SelectGroupCmbo.GotFocus += new EventHandler(MngGroups_NewNameCmbo_GotFocus);
        }
コード例 #12
0
ファイル: MathDrill.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // 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();
        }
コード例 #13
0
ファイル: AdminHome.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Kyle Bridges, Harvey Kreitzer                                    //
        // Date: 2/13/2014                                                  //
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/2/14                                                     //
        //------------------------------------------------------------------//
        //------------------------------------------------------------------//
        // Authors: Joshua Boone and Justine Dinh                           //
        // Date: 4/12/14                                                    //
        //------------------------------------------------------------------//
        public AdminHome_Form(Manager manager)
        {
            localManager = manager;
            InitializeComponent();
            InitializeDate();
            InitializeTimer();

            this.AdminHome_CurrentPWTxt.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndDigitsKeyPressNoSpace);
            this.AdminHome_NewPWTxt.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndDigitsKeyPressNoSpace);

            AdminHome_CurrentPWTxt.Select();
            AdminHome_CurrentPWTxt.PasswordChar = '*';
            AdminHome_NewPWTxt.PasswordChar = '*';
            /*
            foreach (String student in localManager.GetStudents())
                AdminHome_StudentSelection.Items.Add(student);
            */
            this.AdminName = localManager.currentUser.Remove(0, 8);
            if (localManager.currentAdmin.LastLogin == "Unknown")
                this.LastLogin = "******";
            else
                this.LastLogin = localManager.currentAdmin.LastLogin;

            localManager.SaveLoginDate(localManager.adminXMLPath,
            localManager.currentAdmin.LoginName, DateTime.Now.ToString("M/d/yyyy"), true);
        }
コード例 #14
0
ファイル: MngUsers.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/4/14                                                     //
        //------------------------------------------------------------------//
        /// <summary>Manage Users form constructor.</summary>
        /// <param name="manager">The program management class.</param>
        public MngUsers_Form(Manager manager)
        {
            InitializeComponent();
            localManager = manager;
            InitializeDate();
            InitializeTimer();
            RefreshComboBoxes();

            //if (MngUsers_RemoveUserCmbo.Items.Count == 0)
            //{
            //    MngUsers_RemoveUserCmbo.Enabled = false;
            //}
            //MngUsers_ConfirmPasswordTxt.Enabled = false;
            //MngUsers_RemoveUserBtn.Enabled = false;
            MngUsers_SaveUserBtm.Enabled = false;
            //MngUsers_PasswordTxt.PasswordChar = '*';
            //MngUsers_ConfirmPasswordTxt.PasswordChar = '*';

            //MngUsers_StudentRdo.Select();
            this.MngUsers_FirstNameCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersKeyPress);
            this.MngUsers_LastNameCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersKeyPress);
            //this.MngUsers_PasswordTxt.KeyPress += new KeyPressEventHandler(RaptorMath_OnlyLettersAndDigitsKeyPress);
            //this.MngUsers_ConfirmPasswordTxt.KeyPress += new KeyPressEventHandler(RaptorMath_OnlyLettersAndDigitsKeyPress);
            this.MngUsers_GroupCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndDigitsKeyPress);
            //this.MngUsers_RemoveUserCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndWhiteSpaceKeyPress);
            this.AdminName = localManager.currentUser.Remove(0, 8);
        }
コード例 #15
0
ファイル: ManageDrills.cs プロジェクト: Echiv/RaptorMath
        //------------------------------------------------------------------//
        // Authors: Cody Jordan, Cian Carota                                //
        // Date: 4/3/14                                                     //
        //------------------------------------------------------------------//
        //------------------------------------------------------------------//
        // Authors: Joshua Boone and Justine Dinh                           //
        // Date: 4/16/14                                                    //
        //------------------------------------------------------------------//
        /// <summary>Create Drill form constructor.</summary>
        /// <param name="manager">The program management class.</param>
        public ManageDrills_Form(Manager manager)
        {
            InitializeComponent();
            localManager = manager;
            InitializeDate();
            InitializeTimer();
            RefreshStudentCmboBox();

            MngDrills_AssignDrillRdo.Select();
            MngDrills_StudentRdo.Select();
            MngDrills_SelectDrillCmbo.Enabled = false;
            //this.MngDrills_StudentOrGroupCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersWhiteSpaceKeyPress);
            this.MngDrills_SelectDrillCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndDigitsKeyPress);
            this.AdminName = localManager.currentUser.Remove(0, 8);
        }
コード例 #16
0
ファイル: UseDesg.cs プロジェクト: Echiv/RaptorMath
 //------------------------------------------------------------------//
 // Kyle Bridges, Harvey Kreitzer                                    //
 // Date: 2/12/2014                                                  //
 //------------------------------------------------------------------//
 // Authors: Cody Jordan, Cian Carota                                //
 // Date: 4/5/14                                                     //
 //------------------------------------------------------------------//
 //------------------------------------------------------------------//
 // Authors: Joshua Boone and Justine Dinh                           //
 // Date: 4/12/14                                                    //
 //------------------------------------------------------------------//
 /// <summary>Constructor.</summary>
 /// <param name="manager">Copy of the class the UI talks to for data.</param>
 public UseDesg_Form(Manager manager)
 {
     localManager = manager;
     //localManager.CreateRecord();
     InitializeComponent();
     InitializeDate();
     InitializeTimer();
     RefreshLoginDropDownBox();
     UseDesg_LoginBtn.Enabled = false;
     UseDesg_passwordBox.Enabled = false;
     UseDesg_passwordBox.PasswordChar = '*';
     UseDesg_LoginCmbo.Select();
     UseDesg_LoginCmbo.IntegralHeight = false;
     this.UseDesg_LoginCmbo.KeyPress += new KeyPressEventHandler(RaptorMath_LettersKeyPress);
     this.UseDesg_passwordBox.KeyPress += new KeyPressEventHandler(RaptorMath_LettersAndDigitsKeyPressNoSpace);
 }