private async Task <bool> AcceptMember(IEMember member) { var ans = await DisplayAlert("Accepting", "Are you sure you want to accept " + member.Username + "?", "Accept", "Cancel"); if (ans == true) { IEDataSource ds = IEDataSource.GetInstance(); ds.ChangeMemberStatus(member, IEMember.MEMBER_KNOWN); } return(true); }
private async Task <bool> RejectMember(IEMember member) { var ans = await DisplayAlert("Rejecting", "Are you sure you want to reject " + member.Username + "?", "Reject", "Cancel"); if (ans == true) { IEDataSource ds = IEDataSource.GetInstance(); ds.ChangeMemberStatus(member, IEMember.MEMBER_REJECTED); //member.Status = IEMember.MEMBER_REJECTED; //ds.SaveMember(member); //Items.Remove(member); } return(true); }