private void simpleButton1_Click(object sender, EventArgs e) { frmTechnicalEvalSheet frmTechnicalEvalSheet = new frmTechnicalEvalSheet() { WorkOrderId = this.WOId }; frmTechnicalEvalSheet.ShowDialog(); }
private void btnEvalSheet_Click(object sender, EventArgs e) { if (WorkOrderGrid.GetFocusedRow() is WorkOrders item) { frmTechnicalEvalSheet frmTechnicalEvalSheet = new frmTechnicalEvalSheet() { WorkOrderId = item.Id }; frmTechnicalEvalSheet.ShowDialog(); } }