protected virtual void VerPendienteAction() { if (Pendientes_DGW.CurrentRow == null) { return; } LineaFomentoInfo linea = Pendientes_DGW.CurrentRow.DataBoundItem as LineaFomentoInfo; switch (linea.ETipoExpediente) { case ETipoExpediente.Alimentacion: case ETipoExpediente.Ganado: case ETipoExpediente.Maquinaria: ContenedorViewForm cform = new ContenedorViewForm(linea.OidExpediente, this); cform.ShowDialog(this); break; case ETipoExpediente.Almacen: ExpedienteAlmacenViewForm eform = new ExpedienteAlmacenViewForm(linea.OidExpediente, this); eform.ShowDialog(this); break; case ETipoExpediente.Work: WorkViewForm oform = new WorkViewForm(linea.OidExpediente, this); oform.ShowDialog(this); break; } }
private void ViewFactura_TI_Click(object sender, EventArgs e) { if (FacturaActual == null) { return; } ContenedorViewForm form = new ContenedorViewForm(FacturaActual.OidExpediente, this); form.ShowDialog(this); }