Exemplo n.º 1
0
        public MemberList()
        {
            InitializeComponent();
            memberDataBase = new MemberDataBase();
            var members = memberDataBase.GetMembers();

            listMembers.ItemsSource = members;
        }
 private void InsertMember(object sender, EventArgs e)
 {
     member = new Member()
     {
         Name = memberName.Text,
         Age  = memberAge.Text
     };
     memberData = new MemberDataBase();
     memberData.AddMember(member);
     DisplayAlert("Membro", "Adicionado com Sucesso", "OK");
 }