Browse Source

添加数据库文件

xcbosa 3 years ago
parent
commit
844d2e46db
2 changed files with 4 additions and 0 deletions
  1. 2 0
      WpfTest1/TreatmentRecordsPageSelectUser.xaml.cs
  2. 2 0
      WpfTest1/selectUser.xaml.cs

+ 2 - 0
WpfTest1/TreatmentRecordsPageSelectUser.xaml.cs

@@ -40,7 +40,9 @@ namespace WpfTest1
         //筛选得到符合条件的用户数据
         private void dataGrid_Loaded(object sender, RoutedEventArgs e)
         {
+#if !DEBUG
             LoadDataGrid();
+#endif
         }
         public void LoadDataGrid()
         {

+ 2 - 0
WpfTest1/selectUser.xaml.cs

@@ -56,7 +56,9 @@ namespace WpfTest1
         //筛选得到符合条件的用户数据
         private void dataGrid_Loaded(object sender, RoutedEventArgs e)
         {
+#if !DEBUG
             LoadDataGrid();
+#endif
         }
         public void LoadDataGrid()
         {