private void btnPrintStock_Click(object sender, EventArgs e) { var printDialog = new PrintDialog(); printDialog.ShowDialog(); if (MyPrinter.Print) { MyPrinter.PrintRecordsPortrate(dataGridItmes, MyPrinter.GetPrintTile()); } }
private void btnPrintCleared_Click(object sender, EventArgs e) { ///var myPrintTitle = "Completed Payment List"; var printDialog = new PrintDialog(); printDialog.ShowDialog(); if (MyPrinter.Print) { MyPrinter.PrintRecordsPortrate(dataGridPayment, MyPrinter.GetPrintTile()); } }