Beispiel #1
0
        private void AddPat_Click(object sender, RoutedEventArgs e)
        {
            EditPatient editPatient = new EditPatient();

            editPatient.EditPatientsButton.Visibility = Visibility.Hidden;
            editPatient.OkEditPatients.Visibility     = Visibility.Visible;
            editPatient.Show();
        }
Beispiel #2
0
        private void EditPat_Click(object sender, RoutedEventArgs e)
        {
            EditPatient editPats = new EditPatient();

            editPats.EditPatientsButton.Visibility = Visibility.Visible;
            editPats.OkEditPatients.Visibility     = Visibility.Hidden;
            try
            {
                editPats.PatientIdLabel.Content   = tmp.Id;
                editPats.BirthPicker.SelectedDate = tmp.Birth;
                editPats.PatientName.Text         = tmp.Name;
                editPats.PatientSexCombo.Text     = tmp.Sex == "Муж" ? "Муж" : "Жен";
                editPats.PatientInsuranceId.Text  = tmp.InsuranceID.ToString();
                editPats.PatientPhone.Text        = tmp.Phone.ToString();
                editPats.PatientAddres.Text       = tmp.Address;
                editPats.PatientSnilsID.Text      = tmp.SnilsID.ToString();
                editPats.ShowDialog();
            }
            catch (Exception)
            {
                MessageBox.Show("Ничего не выбрано", "Ошибка");
            }
        }