Exemplo n.º 1
0
        private void SearchButton_Click(object render, RoutedEventArgs e)
        {
            Contexto context = new Contexto();

            var found = PersonaBLL.Search(Convert.ToInt32(PersonaIdTextBox.Text));

            if (found != null)
            {
                this.person = found;
            }
            else
            {
                this.person = new Persona();
                MessageBox.Show("No encontrado", "Error", MessageBoxButton.OK);
            }


            this.DataContext = this.person;
        }