private void btnImprimir_Click(object sender, EventArgs e) { if (metroGrid1.RowCount > 0) { if (metroGrid1.CurrentRow.Cells[0].Value.ToString() == "") { return; } frmRelatorio frmrelatorio = new frmRelatorio(Convert.ToInt32(metroGrid1.CurrentRow.Cells[0].Value.ToString())); frmrelatorio.ShowDialog(); try { wbclient.UpdateCompraGadoImpresso(Convert.ToInt32(metroGrid1.CurrentRow.Cells[0].Value.ToString())); } catch (Exception ex) { MetroFramework.MetroMessageBox.Show(this, ex.Message, "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error); } Pesquisar(); } }
public void TestEditCompraGadoImpresso() { bool resultado = wbClinet.UpdateCompraGadoImpresso(1); Assert.AreEqual(true, resultado); }