コード例 #1
0
        public bool DeleteAccount()
        {
            try
            {
                LoginBase.MemberStudent.Remove(memberStudent);
                LoginBase.Complete();

                StudentInformation studentInformation = ViewStudentInformation();

                InformationBase.ID.Remove(studentInformation.identificationInformation);
                InformationBase.Contact.Remove(studentInformation.contactInformation);
                InformationBase.Personel.Remove(studentInformation.personelInformation);

                InformationBase.Department.RemoveAll(studentID);
                InformationBase.Intern.RemoveAll(studentID);
                InformationBase.Volunteer.RemoveAll(studentID);
                InformationBase.Offers.RemoveAll(studentID);

                InformationBase.Complete();

                return(true);
            }

            catch
            {
                return(false);
            }
        }
        public bool OfferJob(StudentInformation offeredStudent, string offerText)
        {
            try
            {
                BusinessOfferInformation newOffer = new BusinessOfferInformation();
                newOffer.CompanyID = companyManager.ID;
                newOffer.OfferText = offerText;
                newOffer.StudentID = offeredStudent.personelInformation.ID;
                InformationBase.Offers.Add(newOffer);
                InformationBase.Complete();

                return(true);
            }

            catch
            {
                return(false);
            }
        }