Exemplo n.º 1
0
        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;
                }
            }
        }
Exemplo n.º 2
0
 private async void updatePatientInfo_Button_Click(object sender, RoutedEventArgs e)
 {
     var upcd = new UpdatePatientInfoContentDialog(this.Patient);
     await upcd.ShowAsync();
 }