Ingenieria
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace MsdnVideo
{public partial class DevolverForm : PlantillaForm
{
public DevolverForm()
{
InitializeComponent();
}
private void DevolverForm_Load(objectsender, EventArgs e)
{
this.alquileresTableAdapter.FillByPendientes(this.alquilersDS.Alquileres);
}
private void button2_Click(object sender, EventArgs e){
}
private void Cancelar_Click(object sender, EventArgs e)
{
Close();
}
private void Devolver_Click(object sender,EventArgs e)
{
AlquilersDS.AlquileresRow rowAlquileres;
foreach (DataGridViewRow fila in alquileresDataGridView.SelectedRows)
{rowAlquileres = (AlquilersDS.AlquileresRow)alquilersDS.Alquileres[fila.Index];
PeliculasCN peliculasCN = new PeliculasCN();
peliculasCN.DevolverPelicula(rowAlquileres);}
Close();
}
}
}
Forma de usuario
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;using System.Text;
using System.Windows.Forms;
namespace MsdnVideo
{
public partial class SeleccionSociosForm : PlantillaForm
{
public string DNI = string.Empty;
publicSeleccionSociosForm()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{SociosDSTableAdapters.SociosTableAdapter adaptadorSocios = new MsdnVideo.SociosDSTableAdapters.SociosTableAdapter();
adaptadorSocios.FillByNombre(sociosDS.Socios, string.Format("%{0}%", textBox1.Text));
}...
Regístrate para leer el documento completo.