private void buttonPrintPatientListHTML_Click(object sender, EventArgs e) { IList<PatientData> selectedPatients = getSelectedPatients(); if (selectedPatients.Count == 0) { MessageBox.Show("No Patients Selected!"); return; } PrintHtml printHtml = new PrintHtml(); printHtml.PrintWebBrowser.DocumentText = PrintPatientListHtml.getFullHtml(patComp, selectedPatients, determineHeadline(listBoxHeadline.SelectedIndex), checkBoxUseOPDataIfAvailable.Checked); printHtml.ShowDialog(); }
private void buttonPrintWaitListHTML_Click(object sender, EventArgs e) { IList<PatientData> selectedPatients = patComp.FindPatientByWaitList(); if (selectedPatients.Count == 0) { MessageBox.Show("No Patients on Wait List!"); return; } PrintHtml printHtml = new PrintHtml(); printHtml.PrintWebBrowser.DocumentText = PrintWaitingListHtml.getFullHtml(patComp, selectedPatients, determineHeadline(listBoxHeadline.SelectedIndex)); printHtml.ShowDialog(); }
private void buttonPrintNextActionListHtml_Click(object sender, EventArgs e) { long year; try { year = Int64.Parse(this.comboBoxNextActionYear.Text); } catch (Exception) { MessageBox.Show("The Year of the Next Action is not defined."); return; } long halfYear = Int64.Parse(this.listBoxHalfYear.Text); ActionKind actionKind = (ActionKind)Enum.Parse(new ActionKind().GetType(), this.listBoxAction.SelectedItem.ToString()); PrintHtml printHtml = new PrintHtml(); printHtml.PrintWebBrowser.DocumentText = PrintNextActionHtml.getFullHtml(patComp, year, halfYear, actionKind); printHtml.ShowDialog(); }