diff --git a/README.md b/README.md index 9933ab57be1272cbe1a1ee64d2b4452ca7c6fae6..be7df05474af1d5291461dc028686fa9be025b39 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ SmartSQL 是一款方便、快捷的数据库文档查询、导出工具!该 #### 4.导入导出 |导入备注|导出文档 -|--|--| +|:--:|:--:| | ![导入备注](https://gitee.com/izhaofu/SmartSQL/raw/master/Img/Import.png) | ![导出文档](https://gitee.com/izhaofu/SmartSQL/raw/master/Img/Export.png) | #### 5.设置 diff --git a/SmartSQL/SmartSQL.Framework/SqliteModel/ObjectGroup.cs b/SmartSQL/SmartSQL.Framework/SqliteModel/ObjectGroup.cs index 90603db7a76b6d7464bef5782d33e475da366378..3443dbd689f74286e454d7b2ec9df6cafbeeba08 100644 --- a/SmartSQL/SmartSQL.Framework/SqliteModel/ObjectGroup.cs +++ b/SmartSQL/SmartSQL.Framework/SqliteModel/ObjectGroup.cs @@ -24,7 +24,7 @@ namespace SmartSQL.Framework.SqliteModel /// public string GroupName { get; set; } /// - /// 展开层级:1.展开当前项,2.展开子项 + /// 展开层级:0.不展开,1.展开当前项,2.展开子项 /// public int? OpenLevel { get; set; } /// diff --git a/SmartSQL/SmartSQL/MainWindow.xaml.cs b/SmartSQL/SmartSQL/MainWindow.xaml.cs index 8dd1aef9df193b3232aadf105c8f55b1f2a1b16b..591fc3287c0fb1b9a0f4fede0a8e05cf1676afc5 100644 --- a/SmartSQL/SmartSQL/MainWindow.xaml.cs +++ b/SmartSQL/SmartSQL/MainWindow.xaml.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; @@ -236,7 +236,7 @@ namespace SmartSQL Icon = GROUPICON, FontWeight = "Bold", Type = ObjType.Group, - IsExpanded = true + IsExpanded = !(!group.OpenLevel.HasValue || group.OpenLevel == 0) }; var nodeTable1 = new PropertyNodeItem { @@ -245,7 +245,8 @@ namespace SmartSQL Name = "treeTable", Icon = TABLEICON, Parent = nodeGroup, - Type = ObjType.Type + Type = ObjType.Type, + IsExpanded = group.OpenLevel==2 }; itemChildList.Add(nodeTable1); var nodeView1 = new PropertyNodeItem @@ -255,7 +256,8 @@ namespace SmartSQL Name = "treeView", Icon = VIEWICON, Parent = nodeGroup, - Type = ObjType.Type + Type = ObjType.Type, + IsExpanded = group.OpenLevel == 2 }; itemChildList.Add(nodeView1); var nodeProc1 = new PropertyNodeItem @@ -265,7 +267,8 @@ namespace SmartSQL Name = "treeProc", Icon = PROCICON, Parent = nodeGroup, - Type = ObjType.Type + Type = ObjType.Type, + IsExpanded = group.OpenLevel == 2 }; itemChildList.Add(nodeProc1); nodeGroup.Children = itemChildList;