Ejemplo n.º 1
0
 /// <summary>
 /// 显示视图结构
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Show_View(object sender, RoutedEventArgs e)
 {
     if (!AppCache.ExistsView(AppCache.GetBuildLink()))
     {
         AppCache.SetViewList(DataSchema.ViewList(AppCache.GetBuildLink()) ?? new List <BaseTable>(), AppCache.GetBuildLink());
     }
     Dtable.DataContext = AppCache.GetViewList(AppCache.GetBuildLink());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 更新视图结构
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ReLoad_View(object sender, RoutedEventArgs e)
 {
     AppCache.SetViewList(DataSchema.ViewList(AppCache.GetBuildLink(), true) ?? new List <BaseTable>(), AppCache.GetBuildLink());
     Dtable.DataContext = AppCache.GetViewList(AppCache.GetBuildLink());
 }