コード例 #1
0
        private void btnAgregar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmOrdenCompra ofrmOrden = new frmOrdenCompra("New");

            ofrmOrden.FormClosed += ofrmSolicitud_FormClosed;
            ofrmOrden.ShowDialog();
        }
コード例 #2
0
 private void LoadSolicitud()
 {
     if (currentRow != null)
     {
         //String Accion = (Convert.ToInt32(currentRow["IDEstadoOrden"]) == 0) ? "Edit" : "View";
         String         Accion    = "View";
         frmOrdenCompra ofrmOrden = new frmOrdenCompra(Convert.ToInt32(currentRow["IDOrdenCompra"]), Accion);
         ofrmOrden.FormClosed += ofrmSolicitud_FormClosed;
         ofrmOrden.ShowDialog();
     }
 }