Ejemplo n.º 1
0
        private void buscarButton_Click(object sender, RoutedEventArgs e)
        {
            var cliente = PrestamoBLL.Buscar(int.Parse(Prestamoid.Text));

            if (cliente != null)
            {
                this.cliente = cliente;
            }
            else
            {
                this.cliente = new Entidades.Prestamo();
            }

            this.DataContext = this.cliente;
        }
Ejemplo n.º 2
0
 private void Limpiar()
 {
     this.cliente     = new Entidades.Prestamo();
     this.DataContext = cliente;
 }