Ejemplo n.º 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     RegistrationHelper client = new RegistrationHelper();
     try
     {
         List<StaticField> staticFields = client.ViewStaticField().ToList();
         dgStaticFields.ItemsSource = staticFields;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     finally
     {
         client.Close();
     }
 }