Esempio n. 1
0
        private async Task AddNewPersonToList(object personForm)
        {
            if (personForm == null || personForm.GetType() != typeof(PeopleForm) || ((PeopleForm)personForm).NewPerson == null)
            {
                return;
            }
            People = await ServiceCalls.GetPeopleWhoAreNotPolicyHolders();

            var newPerson = ((PeopleForm)personForm).NewPerson;

            ThisDependent.PersonId         = newPerson.Id;
            personBindingSource.DataSource = null;
            personBindingSource.DataSource = People;
        }