private void btnAjustar_Click(object sender, EventArgs e) { Servico servicoSelecionado = new Servico(); servicoSelecionado = (dataGridViewAjusteServico.SelectedRows[0].DataBoundItem as Servico); FrmCadastroServico fcs = new FrmCadastroServico(EnumeradorServico.Alterar, servicoSelecionado); fcs.Show(); }
private void toolStripButtonServicos_Click(object sender, EventArgs e) { FrmCadastroServico fcs = new FrmCadastroServico(EnumeradorServico.Inserir, null); fcs.MdiParent = this; fcs.Show(); }
private void btnNovo_Click(object sender, EventArgs e) { FrmCadastroServico fas = new FrmCadastroServico(EnumeradorServico.Inserir,null); fas.Show(); }