Exemple #1
0
        private void btnPrintStock_Click(object sender, EventArgs e)
        {
            var printDialog = new PrintDialog();

            printDialog.ShowDialog();
            if (MyPrinter.Print)
            {
                MyPrinter.PrintRecordsPortrate(dataGridItmes, MyPrinter.GetPrintTile());
            }
        }
Exemple #2
0
        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());
            }
        }