public Member(string name, string personalNumber)
        {
            Name = name;
            PersonalNumber = personalNumber;

            Boats = new List<Boat>();
        }
Exemplo n.º 2
0
        public Member(int a_memberID, string a_firstName, string a_lastName, string a_ssn)
        {
            m_memberID = a_memberID;
            m_firstName = a_firstName;
            m_lastName = a_lastName;
            m_ssn = a_ssn;

            m_boats = new List<model.Boat>();
        }
        public List()
        {
            DAL = new DAL.ListDAL();

            if (DAL.FileExists())
            {
                MemberList = DAL.LoadList();
                foreach (Member member in MemberList)
                {
                    member.PopulateBoats();
                }
            } else
            {
                MemberList = new List<Member>();
            }
        }
 public MemberList()
 {
     _members = new List<model.Member>();
 }