Example #1
0
        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            QRCodePrintForm qRCodePrintForm = new QRCodePrintForm();

            if (qRCodePrintForm.ShowDialog() == DialogResult.OK)
            {
                Show();
            }
        }
Example #2
0
        private void btnPrintTag_Click(object sender, EventArgs e)
        {
            DemarcateRecords demarcateRecords = GetDemarcateRecords();

            if (demarcateRecords == null)
            {
                return;
            }
            QRCodePrintForm qRCodePrintForm = new QRCodePrintForm(demarcateRecords);

            qRCodePrintForm.ShowDialog();
        }
Example #3
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex > -1)
     {
         DataGridViewButtonCell btnCell = dataGridView1.CurrentCell as DataGridViewButtonCell;
         if (btnCell != null)
         {
             QRCodePrintForm qRCodePrintForm = new QRCodePrintForm();
             qRCodePrintForm.demarcateRecords = GetDemarcateHistoryFromGrid();
             qRCodePrintForm.ShowDialog();
         }
     }
 }