private void PrintButton_Click(object sender, EventArgs e) { try { PrintWork printToDoc = new PrintWork(CreatePrintString()); printToDoc.PrintToDocument(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void Print() { try { PrintWork printToDoc = new PrintWork(CreatePrintString()); printToDoc.PrintToDocument(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }