private void printA3TemperaturCurves(int weeks, int copies) { IList<PatientData> toPrintPatients = getSelectedPatients(); if (toPrintPatients.Count <= 0) { MessageBox.Show("No patients selected!\nPlease select one or more Patients to print"); return; } SPDPrint print = new SPDPrint(this.patComp); print.PrintA3TemperaturCurve(toPrintPatients, weeks, copies, SPDPrint.PrintFormat.A3, null); }
private void saveAndPrintA3(int weeks, int copies) { NewOperationStoreEventArgs saveVal = this.save(); if (saveVal.StoredOk) { SPDPrint print = new SPDPrint(this.patComp); IList<PatientData> patients = new List<PatientData>(); patients.Add(currentPatient); if (saveVal.TakeFromDB) { print.PrintA3TemperaturCurve(patients, weeks, copies, SPDPrint.PrintFormat.A3, null); } else { print.PrintA3TemperaturCurve(patients, weeks, copies, SPDPrint.PrintFormat.A3, saveVal.Operation); } } }
private void buttonprintA3TemperatureCurve_Click(object sender, EventArgs e) { int weeks = Int32.Parse(listBoxDays.SelectedItem.ToString()) / 12; int copies = Int32.Parse(listBoxCopys.SelectedItem.ToString()); SPDPrint print = new SPDPrint(this.patComp); IList<PatientData> patients = new List<PatientData>(); patients.Add(currentPatient); print.PrintA3TemperaturCurve(patients, weeks, copies, SPDPrint.PrintFormat.A3, null); }