Пример #1
0
 protected async override void OnAppearing()
 {
     base.OnAppearing();
     BindingContext = model = new TreninziViewModel(Id);
     await model.Init();
 }
Пример #2
0
 public TreninziPage(int id)
 {
     InitializeComponent();
     BindingContext = model = new TreninziViewModel(id);
     Id             = id;
 }