Esempio n. 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            // добавить
            var form = new DoctorAdd();

            form.Show();
        }
Esempio n. 2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var doctor = ListDoctors.SelectedItem as Doctors;

            if (doctor != null)
            {
                var form = new DoctorAdd(doctor);
                form.Show();
            }
        }