private async void edit(object sender, RoutedEventArgs routedEventArgs) { var patient = this.listview.SelectedItem as Patient; if (patient != null) { UpdatePatientInfoContentDialog upicd = new UpdatePatientInfoContentDialog(patient); var result = await upicd.ShowAsync(); switch (result) { case ContentDialogResult.Primary: this.ring.IsActive = true; await this.viewModel.LoadAllPatients(); this.ring.IsActive = false; break; } } }
private async void updatePatientInfo_Button_Click(object sender, RoutedEventArgs e) { var upcd = new UpdatePatientInfoContentDialog(this.Patient); await upcd.ShowAsync(); }