private void btnQRCode_Click(object sender, EventArgs e) { if (dataGridViewNhanVien.SelectedCells.Count > 0) { QRCodeForm form = new QRCodeForm(dataGridViewNhanVien.Rows[dataGridViewNhanVien.SelectedCells[0].RowIndex].Cells[1].Value.ToString()); //Employee ID form.ShowDialog(); } }
private void QRCodeItem_Click(object sender, EventArgs e) { var qrCodeForm = new QRCodeForm(controller.GetCurrentServer().ToURL()); qrCodeForm.Show(); }