private void dgvView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex == -1) { return; } if (dgvView[colId, e.RowIndex].Value == null) { return; } FrmNumberLimitAdd frm = new FrmNumberLimitAdd(sf.Code, lc, dgvView[colId, e.RowIndex].Value.ToString()); //frm.setControl(dgvView[colId, e.RowIndex].Value.ToString()); frm.ShowDialog(this); setGrd(); }
private void btnAdd_Click(object sender, EventArgs e) { FrmNumberLimitAdd frm = new FrmNumberLimitAdd(sf.Code, lc, ""); frm.ShowDialog(this); }