Пример #1
0
        public async Task ShowChild(Child child, bool?isNew = false)
        {
            CurrentChild = child;
            var childProfileItemVM = new ChildProfileItem(child);

            if (isNew.Value)
            {
                childProfileItemVM.FirstAdd = true;
            }
            await ShowPage(typeof(Views.ChildProfileItem), childProfileItemVM);
        }
Пример #2
0
        public async Task ShowChild(Child child, bool?isNew = false)
        {
            var childProfileItemVM = new ChildProfileItem(child);
            await childProfileItemVM.InitAsync();

            await App.RootPage.Navigation.PushAsync(new Views.ChildProfileItem {
                BindingContext = childProfileItemVM
            });

            if (isNew == true)
            {
                //Go directly to the basic details page for a new child.
                childProfileItemVM.EditChildDetailsCommand.Execute(null);
            }
        }