Example #1
0
 private void btnAlterar_Click(object sender, EventArgs e)
 {
     Telas.Cadastros.FrmCadNivelAcesso n = new Cadastros.FrmCadNivelAcesso();
     n.Text   = "Alterando Nivel de acesso";
     n.Codigo = Convert.ToInt16(dataGridView1.CurrentRow.Cells[0].Value);
     n.txtNomeNivelAcesso.Text = Convert.ToString(dataGridView1.CurrentRow.Cells[1].Value);
     n.txtAbreviacao.Text      = Convert.ToString(dataGridView1.CurrentRow.Cells[2].Value);
     n.button1.Click          -= n.CadastrarNivel;
     n.button1.Click          += n.AlterarNivel;
     n.button1.Text            = "Alterar";
     n.ShowDialog();
 }
 private void btnNivel_Click(object sender, EventArgs e)
 {
     Telas.Cadastros.FrmCadNivelAcesso n = new Cadastros.FrmCadNivelAcesso();
     n.ShowDialog();
 }