protected override async void OnNavigatedTo(NavigationEventArgs e1) { viewModel = new DoctorSearchViewModel(); var args = e1.Parameter as DocSendEventArgs; view = args.view; address = args.add; mainPage = args.mp; mainPage.AutoSuggestChanged += this.onAutoSuggestChanged; mainPage.LocationButtonClicked += this.onLocationButtonClicked; view.OrderComboChanged += this.onComboChanged; FilterButton.DeptListChanged += this.onDeptListChanged; FilterButton.RatingChanged += this.onRatingChanged; FilterButton.RatingCleared += this.onRatingCleared; viewModel.HospsSuccess += this.onHospsSuccess; viewModel.DeptRead += this.onDeptRead; await viewModel.GetDepartments(); }
protected override async void OnNavigatedTo(NavigationEventArgs e1) { viewModel = new DoctorSearchViewModel(); var args = e1.Parameter as DocSendEventArgs; view = args.view; address = args.add; mainPage = args.mp; mainPage.AutoSuggestChanged += this.onAutoSuggestChanged; mainPage.LocationButtonClicked += this.onLocationButtonClicked; OrderCombo.ComboSelectionChanged += this.onComboChanged; //view.OrderComboChanged += this.onComboChanged; FilterButton.DeptListChanged += this.onDeptListChanged; FilterButton.ExpChanged += this.onExpListChanged; FilterButton.ExpCleared += this.onExpCleared; FilterButton.RatingChanged += this.onRatingChanged; FilterButton.RatingCleared += this.onRatingCleared; viewModel.DeptRead += this.onDeptRead; viewModel.DoctorsSuccess += this.onDoctorsSuccess; mySplitView.Focus(FocusState.Programmatic); //myListView.SelectedIndex = 0; await viewModel.GetDepartments(); }