Beispiel #1
0
        protected async void Handle_ItemTapped(object sender, EventArgs e)
        {
            var args = e as TappedEventArgs;

            if (args.Parameter == null)
            {
                return;
            }

            var viewModel = BindingContext as EntryEditViewModel;

            if (viewModel.ForUser)
            {
                return;
            }
            var item        = args.Parameter as EntrySubtaskItem;
            var esViewModel = new EntrySubtaskEditViewModel(viewModel.Entry, item.EntrySubtask, viewModel.Statuses);
            var page        = new EntrySubtaskEditPage();

            page.BindingContext = esViewModel;
            await((MainPage)App.Current.MainPage).NavigateTo(page, true);

            //Deselect Item
            // ((ListView)sender).SelectedItem = null;
        }
Beispiel #2
0
        protected async void ChangeAll_Clicked(object sender, EventArgs e)
        {
            var viewModel = BindingContext as EntryEditViewModel;

            if (viewModel.ForUser)
            {
                return;
            }
            var esViewModel = new EntrySubtaskEditViewModel(viewModel.Entry, null, viewModel.Statuses);
            var page        = new EntrySubtaskEditPage();

            page.BindingContext = esViewModel;
            await((MainPage)App.Current.MainPage).NavigateTo(page, true);
        }