コード例 #1
0
ファイル: History.xaml.cs プロジェクト: dp0360/Web-Survey
 private async void Window_Loaded(object sender, RoutedEventArgs e)
 {
     databaseObject = new Database(Database.GetDatabasePath());
     //await db.Init();
     AsyncTableQuery<PersonalInfo> atqu = databaseObject.Table<PersonalInfo>();
     List<PersonalInfo> personInfo = await atqu.ToListAsync();
     this.DataContext = personalInfoObject;
 }
コード例 #2
0
ファイル: Background.xaml.cs プロジェクト: dp0360/Web-Survey
 public async void Window_Loaded(object sender, RoutedEventArgs e)
 {
     bi= new BackgroundInfo();
     databaseObject = new Database(Database.GetDatabasePath());
     await databaseObject.Init();
     AsyncTableQuery<BackgroundInfo> atqu2 = databaseObject.Table<BackgroundInfo>();
     List<BackgroundInfo> biObject= await atqu2.ToListAsync();
     this.DataContext = bi;
     bi.Email = personalInfoObject.Email;
 }