public static void Edit(int servicoId) { var frm = new FrmServicoEdit(); frm.SetServico(servicoId); frm.ShowDialog(); }
private void Edit() { if (dgvListaServicos.CurrentRow != null) { var item = dgvListaServicos.CurrentRow.DataBoundItem as Domain.Servico; FrmServicoEdit.Edit(item.Id); Fill(); } }
public static void Create() { var frm = new FrmServicoEdit(); frm.ShowDialog(); }
private void btnCreate_Click(object sender, EventArgs e) { FrmServicoEdit.Create(); Fill(); }