コード例 #1
0
        private void AddPatient_MenuClick(object sender, RoutedEventArgs e)
        {
            RegisterPatientDialog registerPatient = new RegisterPatientDialog(this);

            if (registerPatient.ShowDialog() == true)
            {
                ReloadAppointmentsList();
            }
        }
コード例 #2
0
        private void EditPatient_ContextMenuClick(object sender, RoutedEventArgs e)
        {
            Patient patientToUpdate = lvPatientsList.SelectedItem as Patient;

            if (patientToUpdate == null)
            {
                return;
            }

            RegisterPatientDialog patientUpdateDialog = new RegisterPatientDialog(this, patientToUpdate);

            if (patientUpdateDialog.ShowDialog() == true)
            {
                ReloadPatientsList();
            }
        }