Ejemplo n.º 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
Ejemplo n.º 2
0
 private void btnCreateGraduateStudent_Click(object sender, EventArgs e)
 {
     DisplayGraduateStudentForm();
     if (clickCounter == 0)
     {
         DisplayGraduateStudentForm();
         //MessageBox.Show("Clickcounter = " + clickCounter);
         clickCounter++;
         //MessageBox.Show("Clickcounter = " + clickCounter);
     }
     else
     {
         GraduateStudent member = new GraduateStudent();
         member.Save(this);
         thisOwlMemberList.addToList(member);
         clickCounter += 1;
         FormController.clear(this);
         FormController.activateAddButtons(this);
     }
 }
Ejemplo n.º 3
0
        private void btnCreateChairperson_Click(object sender, EventArgs e)
        {
            DisplayChairPersonForm();
            if (clickCounter == 0)
            {
                DisplayChairPersonForm();
                //MessageBox.Show("Clickcounter = " + clickCounter);
                clickCounter++;
                //MessageBox.Show("Clickcounter = " + clickCounter);
            }
            else
            {
                FacultyChairPerson member = new FacultyChairPerson();
                member.Save(this);
                thisOwlMemberList.addToList(member);

                clickCounter += 1;

                FormController.clear(this);
                FormController.activateAddButtons(this);
            }
        }
Ejemplo n.º 4
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);
            }
        }
Ejemplo n.º 5
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     FormController.clear(this);
     FormController.activateAddButtons(this);
     buttonpress = 0;
 }