private async void ItemholdingEffect_ItemLongPressed(object sender, EventArgs e) { _viewModel.IsPageEnabled = true; mstr_patient_info selectedPatient; if (Device.RuntimePlatform == Device.iOS) { selectedPatient = ((Grid)sender).BindingContext as mstr_patient_info; } else { selectedPatient = sender as mstr_patient_info; } if (string.IsNullOrEmpty(selectedPatient.caregiverno)) { var popup = new PatientInfoPopUp { BindingContext = selectedPatient }; await Navigation.PushPopupAsync(popup, true); } _viewModel.IsPageEnabled = false; }
private async void ItemholdingEffect_ItemLongPressed(object sender, EventArgs e) { _viewModel.IsPageEnabled = true; var selectedPatient = sender as mstr_patient_info; if (selectedPatient.caregiverno == "0") { //var param = new DialogParameters(); //param.Add("Message", selectedPatient); //_viewModel._dialogService.ShowDialog("DialogView", param, CloseDialogCallback); var popup = new PatientInfoPopUp { BindingContext = selectedPatient }; await Navigation.PushPopupAsync(popup, true); } _viewModel.IsPageEnabled = false; }