private void EditMember()
        {
            if (selectedMember != null)
            {
                LunchClubMember member = file.members.First(m => m.name.Equals((string)selectedMember));
                editModel.name = member.name;
                editModel.email = member.email;
                editModel.phoneNumber = member.phoneNumber;
                editModel.diet = member.diet;
                editModel.editMember = member;

                AddMember newMemberView = new AddMember(editModel);
                newMemberView.Show();
                PropertyChanged(this, new PropertyChangedEventArgs("memberList"));
            }
            else
            {
                MessageBox.Show("Please select a member to edit first.");
            }
        }
 private void AddMember(object member)
 {
     addModel.Clear();
     AddMember newMemberView = new AddMember(addModel);
     newMemberView.Show();
     PropertyChanged(this, new PropertyChangedEventArgs("memberList"));
 }