Esempio n. 1
0
        private void btnnovo_Click(object sender, EventArgs e)
        {
            frmCompleto objCadastroAgenda = new frmCompleto();

            objCadastroAgenda.Text           = ">>> Novo Cadastro <<<";
            objCadastroAgenda.txtCod.Enabled = false;
            objCadastroAgenda.ShowDialog();
            CarregaDataGrid();
        }
Esempio n. 2
0
        private void btnalterar_Click(object sender, EventArgs e)
        {
            frmCompleto objCadastroAgenda = new frmCompleto();

            objCadastroAgenda.Text           = ">>> Alterar <<<";
            objCadastroAgenda.txtCod.Enabled = false;
            objCadastroAgenda.btnGravar.Text = "&Alterar";
            objCadastroAgenda.txtCod.Text    = Convert.ToString(dgv.CurrentRow.Cells[0].Value);
            objCadastroAgenda.txtNome.Focus();
            objCadastroAgenda.ShowDialog();
            CarregaDataGrid();
        }
Esempio n. 3
0
        private void btnconsultar_Click(object sender, EventArgs e)
        {
            frmCompleto ObjCadastroAgenda = new frmCompleto();

            ObjCadastroAgenda.Text = ">>> Consultar <<<";
            ObjCadastroAgenda.btnGravar.Visible     = false;
            ObjCadastroAgenda.gbDadosAgenda.Enabled = false;
            ObjCadastroAgenda.txtCod.Enabled        = false;
            ObjCadastroAgenda.cboUF.DropDownStyle   = ComboBoxStyle.DropDownList;
            ObjCadastroAgenda.txtCod.Text           = Convert.ToString(dgv.CurrentRow.Cells[0].Value);
            ObjCadastroAgenda.ShowDialog();
            CarregaDataGrid();
        }