Пример #1
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);
        }
Пример #2
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);
            }
        }
Пример #3
0
        }         // end findAnItem

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