Beispiel #1
0
        private void btnAlterar_Click(object sender, EventArgs e)
        {
            try
            {
                codigo = DGVInicio[0, Linhaatual].Value.ToString();
            }
            catch (Exception err)
            {
                MessageBox.Show("Erro" + err.Message);
            }
            if (Linhaatual >= 0)
            {
                obtemDadosGrid();

                Frm_Alterar altera = new Frm_Alterar();
                altera.codigo   = codigo;
                altera.nome     = nome;
                altera.telefone = telefone;

                altera.ShowDialog();

                DGVInicio.Update();
                iniciaAcesso();
            }
        }
Beispiel #2
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            Frm_Insert insert = new Frm_Insert();

            insert.ShowDialog();
            DGVInicio.Update();
            iniciaAcesso();
        }