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(); } } }
private void toolStripButton2_Click(object sender, EventArgs e) { btnNextStep.Text = "下一步"; txtSerialNum.Text = ""; demarcateDataUploadForm.CloseSerialPort(); qRCodePrintForm.Close(); pageNum = 1; toolStripButton1.Enabled = true; foreach (Control c in panel2.Controls) { c.Visible = true; } demarcateDataUploadForm.Visible = false; //demarcateDataUploadForm.setOperatorFormBtnDelegate -= new setFormBtnDelegate(setFormComBtn); //demarcateDataUploadForm = new DemarcateDataUploadForm(); qRCodePrintForm = new QRCodePrintForm(); //demarcateDataUploadForm.setOperatorFormBtnDelegate += new setFormBtnDelegate(setFormComBtn); }