Exemplo n.º 1
0
        private void SaveChanges(object sender, EventArgs e)
        {
            if (WorkingSection.SectionIsValid())
            {
                // Change the observable collection, which should trigger the CollectionChanged event, which should trigger the bound view to update
                ParentSections.ReplaceItem(SectionIndex, WorkingSection);

                // Return to previous page
                Navigation.PopAsync();
                ParentPage.SongHasUnsavedChanges = true;
            }
            else
            {
                DisplayAlert("Issue", WorkingSection.InvalidReason, "OK");
            }
        }