// Выполняется, когда пользователь нажимает на одну из кнопок. private void HyperlinkButton_AddClinic(object sender, RoutedEventArgs e) { ClinicForm winEdit = new ClinicForm(); winEdit.Title = "Добавление данных"; winEdit.Show(); winEdit.Closed += AddItem; }
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; } }