/// <summary> /// Change a members information /// </summary> /// <param name="a_memberID">int. MemberID of the member</param> /// <param name="a_name">string. Name of the member</param> /// <param name="a_pNumber">int. Personal number of the member</param> public void ChangeMemberInfo(Member a_member, string a_name, long a_pNumber) { try { a_member.SetName(a_name); a_member.SetPNumber(a_pNumber); SaveMembers(); } catch (Exception ex) { throw ex; } }
/// <summary> /// Remove a member from the memberlist /// </summary> /// <param name="a_member">Member. Member to be removed</param> public void RemoveMember(Member a_member) { a_member.GetBoatList().RemoveAllBoats(); m_members.Remove(a_member); SaveMembers(); }