private void showAdditional() { //var comparePatientPrep = "Указания для исследования: \n"; //if (SelectedItem == null) return; //foreach (var cpp in SelectedItem.patient_preparation) //{ // comparePatientPrep += cpp + "\n"; //} //MessageBox.Show(comparePatientPrep); var vm = new NmWindowViewModel(SelectedItem); var showAdd = new NomenclatureInfo(vm); showAdd.ShowDialog(); }
public NomenclatureInfo(NmWindowViewModel datacontext) { InitializeComponent(); DataContext = datacontext; }