public Page_Result() { this.InitializeComponent(); if (CreateQAList.listQA.Count == 0) { CreateQAList.createQAListAsync(); } gvSearch.ItemsSource = CreateQAList.listResult; }
public Page_QAView() { this.InitializeComponent(); if (CreateQAList.listQA.Count == 0) { Task.Run(() => CreateQAList.createQAListAsync()).Wait(); } gvQA.ItemsSource = CreateQAList.listQA; }
public Page_FavoriteView() { this.InitializeComponent(); CreateQAList.listQAFavorite.Clear(); gvFavorite.ItemsSource = CreateQAList.CreateQAFavorite(); }