5/19/2010

Codeの表示のテスト

どうもJudaです。
MainPage.xaml.cs
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq;  
  4. using System.Net;  
  5. using System.Windows;  
  6. using System.Windows.Controls;  
  7. using System.Windows.Documents;  
  8. using System.Windows.Input;  
  9. using System.Windows.Media;  
  10. using System.Windows.Media.Animation;  
  11. using System.Windows.Shapes;  
  12. using System.Reflection;  
  13.   
  14. namespace AgScheduler  
  15. {  
  16.  public partial class MainPage : UserControl  
  17.  {  
  18.   public MainPage()  
  19.   {  
  20.    InitializeComponent();  
  21.    var list = DataEntity.Users;  
  22.    PropertyInfo[] infos = typeof(UserInfo).GetProperties();  
  23.    var q = (from rec in DataEntity.Users  
  24.         select new  
  25.         {  
  26.          Name = rec.名前,  
  27.          Product = rec.年計,  
  28.          Amount = rec.実績  
  29.         }).AsQueryable();  
  30.    this.dataGrid1.ItemsSource = q;  
  31.    this.dataGrid1.UpdateLayout();  
  32.      
  33.   }  
  34.   
  35.   private void Button_Click(object sender, RoutedEventArgs e)  
  36.   {  
  37.   
  38.   }  
  39.   
  40.   private void dataGrid1_SelectionChanged(object sender, SelectionChangedEventArgs e)  
  41.   {  
  42.   
  43.   }  
  44.  }  
  45. }  

0 件のコメント:

コメントを投稿