private void toolStripMenuItem2_Click(object sender, EventArgs e) { QRCodePrintForm qRCodePrintForm = new QRCodePrintForm(); if (qRCodePrintForm.ShowDialog() == DialogResult.OK) { Show(); } }
private void btnPrintTag_Click(object sender, EventArgs e) { DemarcateRecords demarcateRecords = GetDemarcateRecords(); if (demarcateRecords == null) { return; } QRCodePrintForm qRCodePrintForm = new QRCodePrintForm(demarcateRecords); qRCodePrintForm.ShowDialog(); }
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(); } } }