Пример #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();
        }
Пример #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();
        }
Пример #3
0
        private void marcaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CadLogin Objcad = new CadLogin();

            Objcad.ShowDialog();
        }
Пример #4
0
        private void pictureBox5_Click(object sender, EventArgs e)
        {
            CadLogin Objcad = new CadLogin();

            Objcad.ShowDialog();
        }