示例#1
0
 // Выполняется, когда пользователь нажимает на одну из кнопок.
 private void HyperlinkButton_AddClinic(object sender, RoutedEventArgs e)
 {
     ClinicForm winEdit = new ClinicForm();
     winEdit.Title = "Добавление данных";
     winEdit.Show();
     winEdit.Closed += AddItem;
 }
示例#2
0
        private void HyperlinkButton_EditClinic(object sender, RoutedEventArgs e)
        {
            Clinic EditClinic = Clinic_List.SelectedItem as Clinic;

            if (EditClinic != null)
            {
                ClinicForm winEdit = new ClinicForm(EditClinic);
                winEdit.Title = "Редактирование данных";
                winEdit.Show();
                winEdit.Closed += EditItem;
            }
        }