Exemplo n.º 1
0
        private void btnalterar_Click(object sender, EventArgs e)
        {
            CadLogin objCadastroAgenda = new CadLogin();

            objCadastroAgenda.Text = ">>>>Alterar<<<<";
            objCadastroAgenda.txtcod_login.Enabled = false;
            objCadastroAgenda.txtcod_login.Text    = Convert.ToString(dgvlogin.CurrentRow.Cells[0].Value);
            objCadastroAgenda.combofun.Text        = Convert.ToString(dgvlogin.CurrentRow.Cells[1].Value);
            objCadastroAgenda.txtusuario.Text      = Convert.ToString(dgvlogin.CurrentRow.Cells[2].Value);
            objCadastroAgenda.txtsenha.Text        = Convert.ToString(dgvlogin.CurrentRow.Cells[3].Value);
            objCadastroAgenda.combonivel.Text      = Convert.ToString(dgvlogin.CurrentRow.Cells[4].Value);
            objCadastroAgenda.EnumProperty         = clnFuncoesGerais.Operacao.Alteracao;
            objCadastroAgenda.ShowDialog();
            carregarDataGrid();
        }
Exemplo n.º 2
0
        private void btnconsultar_Click(object sender, EventArgs e)
        {
            CadLogin objCadastro = new CadLogin();

            objCadastro.Text = ">>>Consultar<<<";
            objCadastro.btnsalvar.Visible  = false;
            objCadastro.combofun.Enabled   = false;
            objCadastro.txtusuario.Enabled = false;
            objCadastro.txtsenha.Enabled   = false;
            objCadastro.combonivel.Enabled = false;
            objCadastro.txtcod_login.Text  = Convert.ToString(dgvlogin.CurrentRow.Cells[0].Value);
            objCadastro.combofun.Text      = Convert.ToString(dgvlogin.CurrentRow.Cells[1].Value);
            objCadastro.txtusuario.Text    = Convert.ToString(dgvlogin.CurrentRow.Cells[2].Value);
            objCadastro.txtsenha.Text      = Convert.ToString(dgvlogin.CurrentRow.Cells[3].Value);
            objCadastro.combonivel.Text    = Convert.ToString(dgvlogin.CurrentRow.Cells[4].Value);
            objCadastro.ShowDialog();
            carregarDataGrid();
        }
Exemplo n.º 3
0
        private void marcaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CadLogin Objcad = new CadLogin();

            Objcad.ShowDialog();
        }
Exemplo n.º 4
0
        private void pictureBox5_Click(object sender, EventArgs e)
        {
            CadLogin Objcad = new CadLogin();

            Objcad.ShowDialog();
        }