Example #1
0
        private void dataGridView1_KeyDown_1(object sender, KeyEventArgs e)
        {
            var    selectedCell = dataGridView1.SelectedCells[0];
            string var          = Convert.ToString(selectedCell.Value);

            if (e.KeyCode == Keys.Delete)
            {
                function(var);
            }
            if (e.KeyCode == Keys.Insert)
            {
                addUser addUSER = new addUser();
                addUSER.Show();
            }
            if (e.KeyCode == Keys.Enter)
            {
                if (this.mOpener != null)
                {
                    this.mOpener.prueba(var);
                    // addUser addUSER = new addUser();

                    mOpener.ShowDialog();
                }
                else
                {
                    MessageBox.Show("pailas");
                }
            }
        }
Example #2
0
 private void textBox1_KeyDown(object sender, KeyEventArgs e)
 {
     cambiador(e);
     if (e.KeyCode == Keys.Insert)
     {
         addUser addUSER = new addUser();
         addUSER.Show();
     }
 }
Example #3
0
        private void textBox1_KeyPress_1(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == Convert.ToChar(Keys.Enter))
            {
                dataGridView1.DataSource       = backend.usuarios.usuarios_back.listarUsuarios(comboBox1.Text, textBox1.Text);
                dataGridView1.Columns[0].Width = this.dataGridView1.Width / 4;
                dataGridView1.Columns[1].Width = this.dataGridView1.Width / 4;
                dataGridView1.Columns[2].Width = this.dataGridView1.Width / 4;
                dataGridView1.Columns[3].Width = this.dataGridView1.Width / 5;

                textBox1.SelectAll();
            }
            if (e.KeyChar == Convert.ToChar(Keys.Insert))
            {
                addUser addUSER = new addUser();
                addUSER.Show();
            }
        }
Example #4
0
        private void textBox1_KeyPress_1(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == Convert.ToChar(Keys.Enter))
            {
                dataGridView1.DataSource = backend.usuarios.usuarios_back.listarUsuarios(comboBox1.Text, textBox1.Text);
                dataGridView1.Columns[0].Width = this.dataGridView1.Width / 4;
                dataGridView1.Columns[1].Width = this.dataGridView1.Width / 4;
                dataGridView1.Columns[2].Width = this.dataGridView1.Width / 4;
                dataGridView1.Columns[3].Width = this.dataGridView1.Width / 5;

                textBox1.SelectAll();
            }
            if (e.KeyChar == Convert.ToChar(Keys.Insert))
            {
                addUser addUSER = new addUser();
                addUSER.Show();

            }
        }
Example #5
0
        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            cambiador(e);
            if (e.KeyCode == Keys.Insert)
            {

                addUser addUSER = new addUser();
                addUSER.Show();

            }
        }
Example #6
0
 private void pictureBox9_Click(object sender, EventArgs e)
 {
     addUser addUSER = new addUser();
     addUSER.Show();
 }
Example #7
0
        private void dataGridView1_KeyDown_1(object sender, KeyEventArgs e)
        {
            var selectedCell = dataGridView1.SelectedCells[0];
            string var = Convert.ToString(selectedCell.Value);
            if (e.KeyCode == Keys.Delete)
            {
                function(var);
            }
            if (e.KeyCode == Keys.Insert)
            {

                addUser addUSER = new addUser();
                addUSER.Show();

            }
            if (e.KeyCode == Keys.Enter)
            {

                if (this.mOpener != null)
                {
                    this.mOpener.prueba(var);
                    // addUser addUSER = new addUser();

                    mOpener.ShowDialog();

                }
                else
                {
                    MessageBox.Show("pailas");
                }

            }
        }
Example #8
0
        private void pictureBox9_Click(object sender, EventArgs e)
        {
            addUser addUSER = new addUser();

            addUSER.Show();
        }