private void clickedEpicris(object sender, RoutedEventArgs e) { MedicalModel model = rtfTemplate.AddFromFileDbFileRtfFirstView(pacient.FirstViewFile); EpicrisisModel epModel = new EpicrisisModel { Anamnes = model.Anamnes, Age = pacient.Age, Name = pacient.Name, Diagnos = model.Diagnos, StatusPraesens = model.StatusPraesens }; EpicrisisPage epPage = new EpicrisisPage(epModel, pacient.Id); epPage.Show(); }
private void Clicked(object sender, MouseButtonEventArgs e) { if (myListView.SelectedItem.ToString() == "Первичный осмотр") { MedicalModel model = rtfTemplate.AddFromFileDbFileRtfFirstView(pacient.FirstViewFile); model.Age = pacient.Age; model.Name = pacient.Name; PacientPage pp = new PacientPage(model, pacient.Id); pp.Show(); } if (myListView.SelectedItem.ToString() == "Выписной эпикриз") { EpicrisisModel model = rtfTemplate.AddFromFileDbFileRtfEpicris(pacient.EpicrisisFile); model.Age = pacient.Age; model.Name = pacient.Name; EpicrisisPage ep = new EpicrisisPage(model, pacient.Id); ep.Show(); ep.OnChanged += PacientPageAll_OnChanged2; } }