private void ToolStripMenuItem_modify_Click(object sender, EventArgs e) { var row = dataGridView1.SelectedRows[0]; string order_id = row.Cells[0].Value.ToString(); CheckinForm checkinForm = new CheckinForm(BLL.Interface.QueryOrderById(order_id)); checkinForm.MyEvent += new CheckinForm.MyDelegate(RefreshDataGridAndSetSelection); checkinForm.ShowDialog(); }
private void toolStripButton_Checkin_Click(object sender, EventArgs e) { CheckinForm checkinForm = new CheckinForm(); checkinForm.MyEvent += new CheckinForm.MyDelegate(RefreshDataGridAndSetSelection); checkinForm.ShowDialog(); }