Example #1
0
        private void frmOwlCommunity_Load(System.Object sender, System.EventArgs e)
        {
            // Read serialized binary data file
            SFManager.readFromFile(ref thisOwlMemberList, FileName);

            FormController.clear(this);
            FormController.activateAddButtons(this);

            // get initial Tooltips
            toolTip1.SetToolTip(btnCreateGraduateStudent, ttCreateGraduateStudent);
            toolTip1.SetToolTip(btnCreateUndergraduateStudent, ttCreateUndergraduateStudent);
            toolTip1.SetToolTip(btnCreateFaculty, ttCreateFaculty);
            toolTip1.SetToolTip(btnCreateChairperson, ttCreateChairperson);

            toolTip1.SetToolTip(btnClear, ttClear);
            toolTip1.SetToolTip(btnDelete, ttDelete);
            toolTip1.SetToolTip(btnEdit, ttEdit);
            toolTip1.SetToolTip(btnFind, ttFind);
            toolTip1.SetToolTip(btnExit, ttExit);

            toolTip1.SetToolTip(txtUndergraduateStudentTuition, ttUndergradTuition);
            toolTip1.SetToolTip(cbUndergraduateStudentYear, ttUndergradYear);
            toolTip1.SetToolTip(txtUndergraduateStudentCredits, ttUndergradCredits);
            toolTip1.SetToolTip(txtGraduateStudentStipend, ttGraduateStudentStipend);
            toolTip1.SetToolTip(cbGraduateStudentDegreeProgram, ttGraduateStudentDegreeProgram);
            toolTip1.SetToolTip(txtOwlMemberName, ttOwlName);
            toolTip1.SetToolTip(dtpOwlMemberBirthDate, ttOwlBirthDate);
            toolTip1.SetToolTip(txtOwlMemberID, ttOwlID);
            toolTip1.SetToolTip(txtStudentMajor, ttStudentMajor);
            toolTip1.SetToolTip(txtStudentMajor, ttStudentGPA);
            toolTip1.SetToolTip(txtFacultyDepartment, ttFacultyDepartment);
            toolTip1.SetToolTip(cbFacultyRank, ttFacultyRank);
            toolTip1.SetToolTip(txtChairPersonStipend, ttChairpersonStipend);
        } // end frmEmpMan_Load
Example #2
0
        public frmOwlCommunity()
        {
            InitializeComponent();
            thisOwlMemberList.addToList(new UndergraduateStudent("John", 123456789, DateTime.Today, 455, "Math", 455, 12, "Fr"));

            SFManager.writeToFile(thisOwlMemberList, FileName);
            SFManager.readFromFile(ref thisOwlMemberList, FileName);
        }
Example #3
0
        private void btnCreateUndergraduateStudent_Click(object sender, EventArgs e)
        {
            if (clickCounter == 0)
            {
                DisplayUndergraduateStudentForm();
                //MessageBox.Show("Clickcounter = " + clickCounter);
                clickCounter++;
                //MessageBox.Show("Clickcounter = " + clickCounter);
            }
            else
            {
                OwlMember member = new UndergraduateStudent();
                member.Save(this);
                thisOwlMemberList.addToList(member);
                thisOwlMemberList.displayMembers();
                SFManager.writeToFile(thisOwlMemberList, FileName);

                clickCounter += 1;

                FormController.clear(this);
                FormController.activateAddButtons(this);
            }
        }
Example #4
0
        }         // end findAnItem

        private void btnExit_Click(object sender, EventArgs e)
        {
            SFManager.writeToFile(thisOwlMemberList, FileName);
            this.Close();
        }