Exemplo n.º 1
0
        private void BtnCrearOt_Click(object sender, EventArgs e)
        {
            frmCrearOrden cO = new frmCrearOrden(empleadoSesion);

            cO.FormClosing += this.frmCrearOT_FormClosing;
            cO.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        private void BtnEditar_Click(object sender, EventArgs e)
        {
            OrdenTrabajo  otEdicion     = (OrdenTrabajo)dgvOrdenes.CurrentRow.DataBoundItem;
            frmCrearOrden frmCrearOrden = new frmCrearOrden(empleadoSesion);

            AddOwnedForm(frmCrearOrden);
            frmCrearOrden.FormClosing += frmCrearOrden_FormClosing;
            frmCrearOrden.SeleccionarOT(frmCrearOrden.FormMode.update, otEdicion);
            frmCrearOrden.Show();
            this.Hide();
        }