예제 #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            RegistroOrden ro = new RegistroOrden();

            ro.MdiParent = this;
            ro.Show();
        }
예제 #2
0
        private void ordenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RegistroOrden po = new RegistroOrden();

            po.MdiParent = this;
            po.Show();
        }
예제 #3
0
        private void dgvvehiculor_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            RegistroOrden ro = new RegistroOrden();

            foreach (Form cr in Application.OpenForms)
            {
                if (ro.Name == "RegistroOrden")
                {
                    ro = (RegistroOrden)cr;
                    ro.txtmatriculave.Text     = dgvvehiculor.CurrentRow.Cells[0].Value.ToString();
                    ro.txtvehiculoveh.Text     = dgvvehiculor.CurrentRow.Cells[1].Value.ToString();
                    ro.txttraccionve.Text      = dgvvehiculor.CurrentRow.Cells[2].Value.ToString();
                    ro.cbcombustibleve.Text    = dgvvehiculor.CurrentRow.Cells[3].Value.ToString();
                    ro.txtvehiculoveh.Text     = dgvvehiculor.CurrentRow.Cells[4].Value.ToString();
                    ro.txtchasis.Text          = dgvvehiculor.CurrentRow.Cells[5].Value.ToString();
                    ro.txttransimisionveh.Text = dgvvehiculor.CurrentRow.Cells[6].Value.ToString();
                    ro.txtplacaveh.Text        = dgvvehiculor.CurrentRow.Cells[7].Value.ToString();
                    ro.txtmodeloveh.Text       = dgvvehiculor.CurrentRow.Cells[8].Value.ToString();
                    ro.txtanioveh.Text         = dgvvehiculor.CurrentRow.Cells[9].Value.ToString();
                    ro.txtcolorve.Text         = dgvvehiculor.CurrentRow.Cells[10].Value.ToString();

                    registros        = new Imagen().numeroregistro();
                    cantidadregistro = registros.Tables[0].Rows.Count;
                    for (int i = 0; i < cantidadregistro; i++)
                    {
                        btnnext[i]      = (registros.Tables[0].Rows[i]["imagen"].ToString());
                        comboboxText[i] = (registros.Tables[0].Rows[i]["Id"].ToString());
                    }
                    registros.Clear();

                    this.Close();
                    break;
                }
            }
        }