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

            printDialog.ShowDialog();
            if (MyPrinter.Print)
            {
                MyPrinter.PrintRecords(dataGridDebtors, MyPrinter.GetPrintTile());
            }
        }
Exemple #2
0
        private void btnPrintStock_Click(object sender, EventArgs e)
        {
            var printDialog = new PrintDialog();

            printDialog.ShowDialog();
            if (MyPrinter.Print)
            {
                MyPrinter.PrintRecordsPortrate(dataGridItmes, MyPrinter.GetPrintTile());
            }
        }
Exemple #3
0
        private void btnPrintSaleRecord_Click(object sender, EventArgs e)
        {
            var printDialog = new PrintDialog();

            printDialog.ShowDialog();
            if (MyPrinter.Print)
            {
                MyPrinter.PrintRecords(dataGridNamesSalesRecord, MyPrinter.GetPrintTile());
            }
        }
Exemple #4
0
        private void btnPrintEventscleared_Click(object sender, EventArgs e)
        {
            var printDialog = new PrintDialog();

            printDialog.ShowDialog();
            if (MyPrinter.Print)
            {
                MyPrinter.PrintRecords(dataGridPayment, MyPrinter.GetPrintTile());
            }
        }
Exemple #5
0
        private void btnPrintEventDebtors_Click(object sender, EventArgs e)
        {
            // var myPrintTitle = "Other Fees Debtors List";
            var printDialog = new PrintDialog();

            printDialog.ShowDialog();
            if (MyPrinter.Print)
            {
                MyPrinter.PrintRecords(dataGridEventPayment, MyPrinter.GetPrintTile());
            }
        }
Exemple #6
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());
            }
        }
Exemple #7
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try {
         lblTotal.Visible   = false;
         checkTotal.Checked = false;
         var printDialog = new PrintDialog();
         printDialog.ShowDialog();
         if (MyPrinter.Print)
         {
             MyPrinter.PrintRecords(dataGridViewRecords, MyPrinter.GetPrintTile());
         }
     }catch (Exception)
     {
         MessageBox.Show("something went wrong, please try again", "Cash Desk", MessageBoxButtons.OK,
                         MessageBoxIcon.Information);
     }
 }
Exemple #8
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(txtPrintTitle.Text))
     {
         if (MessageBox.Show("No Page Title provided\nContinue ?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
         {
             MyPrinter.SetPrintTitle(txtPrintTitle.Text);
             MyPrinter.Print = true;
             this.Close();
         }
     }
     else
     {
         MyPrinter.SetPrintTitle(txtPrintTitle.Text);
         MyPrinter.Print = true;
         this.Close();
     }
 }