Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form_ordenes orde = new Form_ordenes();

            orde.ShowDialog();
            carga();
        }
Example #2
0
        private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int             selectedrowindex = dtOrdenes.SelectedCells[0].RowIndex;
            DataGridViewRow selectedRow      = dtOrdenes.Rows[selectedrowindex];
            string          codigo           = Convert.ToString(selectedRow.Cells["id"].Value);

            Form_ordenes.Id = Convert.ToInt32(codigo);
            Form_ordenes orde = new Form_ordenes();

            orde.Show();
        }