예제 #1
0
        private void btnMostrar_Click(object sender, EventArgs e)
        {
            string code, username, password, name, metodo, type;

            code     = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            username = dataGridView1.SelectedRows[0].Cells[1].Value.ToString();
            password = dataGridView1.SelectedRows[0].Cells[2].Value.ToString();
            name     = dataGridView1.SelectedRows[0].Cells[3].Value.ToString();
            type     = dataGridView1.SelectedRows[0].Cells[4].Value.ToString();
            metodo   = "Mostrar";
            UsuarioCrudForm myUserCrudForm = new UsuarioCrudForm(code, username, password, name, type, metodo);

            myUserCrudForm.ShowDialog();
        }
예제 #2
0
        private void btnAgregarUs_Click(object sender, EventArgs e)
        {
            UsuarioCrudForm myUserCrudForm = new UsuarioCrudForm();

            myUserCrudForm.ShowDialog();
        }