private void grdRequests_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { //MessageBox.Show(grdRequests.CurrentRow.Cells[0].Value.ToString()); int Id = int.Parse(grdRequests.CurrentRow.Cells[0].Value.ToString()); RequestForm form = new RequestForm(this.Customers, this.Statuses, this.RequestTypes, Id); form.ShowDialog(); }
private void btnNewRequest_Click(object sender, EventArgs e) { RequestForm form = new RequestForm(this.Customers, this.Statuses, this.RequestTypes, null); form.ShowDialog(); }