Пример #1
0
 // обработка нажатия кнопки добавления
 private async void CreateCostCat(object sender, EventArgs e)
 {
     CostCat     costCat     = new CostCat();
     CostCatPage costCatPage = new CostCatPage
     {
         BindingContext = costCat
     };
     await Navigation.PushAsync(costCatPage);
 }
Пример #2
0
 // обработка нажатия элемента в списке
 private async void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
 {
     CostCat     selectedCostCat = (CostCat)e.SelectedItem;
     CostCatPage costCatPage     = new CostCatPage
     {
         BindingContext = selectedCostCat
     };
     await Navigation.PushAsync(costCatPage);
 }