Пример #1
0
        private async void txtDescription_Completed(object sender, EventArgs e)
        {
            mcvm.NewCollectionNick = mcvm.NewCollectionName;//segun said i should remove the nick name
            if (string.IsNullOrEmpty(mcvm.NewCollectionNick) ||
                string.IsNullOrEmpty(mcvm.NewCollectionName))
            {
                return;
            }
            var b = await mcvm.AddNewCollection().ConfigureAwait(false);

            if (b)
            {
                //await fvm.GetListCollection();
                // MyCreatedCollectionViewModel mcvm = new MyCreatedCollectionViewModel();
                //AddOperationCompeleted?.Invoke(this, EventArgs.Empty);

                Device.BeginInvokeOnMainThread(() => Navigation.PopModalAsync(true));
                //mcvm.ActivityRunning = true;
                //Device.BeginInvokeOnMainThread(async() => await mcvm.GetListCollection().ConfigureAwait(false));

                //too tired to move it all to the newly
                //created MyCreatedCollectionViewModel. will do so later
            }
        }