public MainPage() { this.InitializeComponent(); this.viewModel = new ProvinceViewModel(); //FetchData data = new FetchData(); //data.GetData(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); try { this.viewModel = new ProvinceViewModel(); } catch { } }
public MainPage() { this.InitializeComponent(); this.viewModel = new ProvinceViewModel(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); this.viewModel = (ProvinceViewModel)e.Parameter; }
public VaccinationPage() { this.InitializeComponent(); this.viewModel = new ProvinceViewModel(); }