public override void Novo(object sender, EventArgs e) { base.Novo(sender, e); frmCadCliente lfrmCad = new frmCadCliente(); lfrmCad.Carregar(this); }
private void dgvProc_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex >= 0 && tipoTela == TipoTela.Cadastro) { frmCadCliente lfrmCad = new frmCadCliente(); lfrmCad.Carregar(int.Parse(dgvProc.Rows[e.RowIndex].Cells[colId.Index].Value.ToString()), this); } } catch (Exception ex) { WinControls.ApresentarErro(AssistErroException.TratarErro(ex)); } }
private void btnCliente_Click(object sender, EventArgs e) { frmCadCliente lfrmCad = new frmCadCliente(); lfrmCad.Carregar(true); }