示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form_salida.folio = "0";
            Form_salida new_salida = new Form_salida();

            new_salida.Owner = this;
            new_salida.Show();
        }
示例#2
0
        private void dtSalidas_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int             selectedrowindex = dtSalidas.SelectedCells[0].RowIndex;
            DataGridViewRow selectedRow      = dtSalidas.Rows[selectedrowindex];
            string          codigo           = Convert.ToString(selectedRow.Cells["folio"].Value);

            Form_salida.folio = codigo;
            Form_salida new_salida = new Form_salida();

            new_salida.Owner = this;
            new_salida.Show();
        }
示例#3
0
        private void dtSalidas_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                int    i     = dtSalidas.CurrentRow.Index;
                string valor = dtSalidas.Rows[i].Cells["folio"].Value.ToString();

                Form_salida.folio = valor;
                Form_salida new_salida = new Form_salida();
                new_salida.Owner = this;
                new_salida.Show();
            }
        }