Пример #1
0
 private void btnConsultar_Click(object sender, EventArgs e)
 {
     Cadastro.FrmNivel n = new Cadastro.FrmNivel();
     n.lblTitulo.Text    = "Consultar Nivel";
     n.txtNomeNivel.Text = Convert.ToString(dataGridView1.CurrentRow.Cells[1].Value);
     n.ShowDialog();
 }
Пример #2
0
 private void btnAlterar_Click(object sender, EventArgs e)
 {
     Cadastro.FrmNivel n = new Cadastro.FrmNivel();
     n.lblTitulo.Text      = "Alterar Nivel";
     n.txtNomeNivel.Text   = Convert.ToString(dataGridView1.CurrentRow.Cells[1].Value);
     n.Codigo              = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value);
     n.btnCadastrar.Click -= n.btnCadastrar_Click;
     n.btnCadastrar.Click += n.Alterar;
     n.btnCadastrar.Text   = "Alterar";
     n.ShowDialog();
 }
Пример #3
0
 private void button5_Click(object sender, EventArgs e)
 {
     Cadastro.FrmNivel c = new Cadastro.FrmNivel();
     c.ShowDialog();
 }