Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form_ajustes.folio = "0";
            Form_ajustes new_ajuste = new Form_ajustes();

            new_ajuste.Owner = this;
            new_ajuste.Show();
        }
Example #2
0
 private void dtAjustes_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         int    i     = dtAjustes.CurrentRow.Index;
         string valor = dtAjustes.Rows[i].Cells["folio"].Value.ToString();
         Form_ajustes.folio = valor;
         Form_ajustes new_ajuste = new Form_ajustes();
         new_ajuste.Owner = this;
         new_ajuste.Show();
     }
 }
Example #3
0
        private void dtAjustes_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int             selectedrowindex = dtAjustes.SelectedCells[0].RowIndex;
            DataGridViewRow selectedRow      = dtAjustes.Rows[selectedrowindex];
            string          codigo           = Convert.ToString(selectedRow.Cells["folio"].Value);

            Form_ajustes.folio = codigo;
            Form_ajustes new_ajuste = new Form_ajustes();

            new_ajuste.Owner = this;
            new_ajuste.Show();
        }