- Timestamp:
- Nov 18, 2010, 7:47:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/UCPatientAppts.cs
r824 r1011 119 119 private void btnPrint_Click(object sender, EventArgs e) 120 120 { 121 //Fixes bug reported by EHS. Don't print if there are no appointments as this causes null ref 122 if (dtAppt.Rows.Count == 0) 123 { 124 MessageBox.Show("No Appointments to Print", "Nothing to Print"); 125 return; 126 } 127 121 128 rowToPrint = 0; //reset row to print 122 129 DialogResult res = printDialog1.ShowDialog(); … … 124 131 } 125 132 133 /// <summary> 134 /// Sets default page orientation to landscape. 135 /// </summary> 126 136 private void PrintPtAppts_QueryPageSettings(object sender, System.Drawing.Printing.QueryPageSettingsEventArgs e) 127 137 {
Note:
See TracChangeset
for help on using the changeset viewer.