private void btNovo_Click(object sender, EventArgs e) { var frm = new frmServicoDetalhe(); if (frm.ShowDialog() == DialogResult.OK) { Consultar(); } }
private void btEditar_Click(object sender, EventArgs e) { if (gvServicos.SelectedRowsCount == 0) { return; } var serv = (Servico)gvServicos.GetFocusedRow(); var frm = new frmServicoDetalhe(serv); if (frm.ShowDialog() == DialogResult.OK) { Consultar(); } }