Exemple #1
0
        private async void AddMoreItems()
        {
            if (String.IsNullOrEmpty(NewItems))
            {
                await Application.Current.MainPage.DisplayAlert("Alert ", "Please add a new item ", "OK");
            }
            else
            {
                var     id = yu.ID;
                NewItem e  = await ex.GetSelectedItem(id);

                // AditionalItem
                //e.AditionalItem = NewItems;
            }
        }
        private async void Update()
        {
            if (String.IsNullOrEmpty(NewName))
            {
                await Application.Current.MainPage.DisplayAlert("Alert ", "Please add a new title ", "OK");
            }
            else
            {
                var id = yu.ID;


                NewItem e = await ex.GetSelectedItem(id);

                e.ItemName = NewName;

                var list = ex.Update(e);
                await Application.Current.MainPage.DisplayAlert("Awsome! ", "Title has been updated ", "OK");

                await PopupNavigation.Instance.PopAsync();
            }
        }