コード例 #1
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     using (ServicioNube.ServicioNubeClient cliente = new ServicioNube.ServicioNubeClient())
     {
         foreach (var libro in cliente.ObtenerEjemplares())
         {
             TableRow  Fila  = new TableRow();
             TableCell celda = new TableCell();
             celda.Text = libro.ejemplarid;
             Fila.Cells.Add(celda);;
             celda      = new TableCell();
             celda.Text = cliente.BuscarEditorial(libro.editoraid).Nombre_Editora;
             Fila.Cells.Add(celda);
             celda      = new TableCell();
             celda.Text = libro.titulo;
             Fila.Cells.Add(celda);
             celda      = new TableCell();
             celda.Text = libro.FechaPublicacion;
             Fila.Cells.Add(celda);
             celda      = new TableCell();
             celda.Text = libro.Costo;
             Fila.Cells.Add(celda);
             celda      = new TableCell();
             celda.Text = libro.PrecioVenta;
             Fila.Cells.Add(celda);
             TableEjemplares.Rows.Add(Fila);
         }
     }
 }
コード例 #2
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     using (ServicioNube.ServicioNubeClient cliente = new ServicioNube.ServicioNubeClient())
     {
         ComboBoxLibros.Items.Clear();
         foreach (var libro in cliente.ObtenerEjemplares())
         {
             ComboBoxLibros.Items.Add(libro.ejemplarid);
         }
     }
 }
コード例 #3
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            using (ServicioNube.ServicioNubeClient cliente = new ServicioNube.ServicioNubeClient())
            {
                cliente.BorrarEjemplar(ComboBoxLibros.Text);

                ComboBoxLibros.Items.Clear();
                foreach (var libro in cliente.ObtenerEjemplares())
                {
                    ComboBoxLibros.Items.Add(libro.ejemplarid);
                }
            }
        }
コード例 #4
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     using (ServicioNube.ServicioNubeClient cliente = new ServicioNube.ServicioNubeClient())
     {
         ComboBoxLibros.Items.Clear();
         var libros = cliente.ObtenerEjemplares();
         foreach (var libro in libros)
         {
             ComboBoxLibros.Items.Add(libro.ejemplarid);
         }
     }
     using (ServicioNube.ServicioNubeClient cliente = new ServicioNube.ServicioNubeClient())
     {
         ComboBoxEditoraId.Items.Clear();
         foreach (var Editora in cliente.ObtenerEditoras())
         {
             ComboBoxEditoraId.Items.Add(Editora.Nombre_Editora + " ID:" + Editora.editoraid);
         }
     }
 }