//*****************************************************************************// // *** STRIP MENU BUTTONS *** // //*****************************************************************************// // Strip Menu ADD button private void addlStripButton_Click(object sender, EventArgs e) { // prepare DataGridViewRow rowstring = null; PackagesForm packForm = new PackagesForm(rowstring); packForm.MdiParent = this.MdiParent; packForm.Show(); }
private void dgvPackageList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { // Store current row in variable DataGridViewRow rowstring = dgvPackageList.CurrentRow; // Send the row to a new form PackagesForm packForm = new PackagesForm(rowstring); packForm.MdiParent = this.MdiParent; packForm.Show(); }
// Press Enter Handler private void dgvPackageList_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { // Store current row in variable DataGridViewRow rowstring = dgvPackageList.CurrentRow; // Send the row to a new form PackagesForm packForm = new PackagesForm(rowstring); packForm.MdiParent = this.MdiParent; packForm.Show(); } }