From 6fa211ae649255a93666a119cf3ee9cfaec86832 Mon Sep 17 00:00:00 2001 From: zfluok Date: Thu, 14 Jul 2022 10:53:05 +0800 Subject: [PATCH] =?UTF-8?q?feature=20#=E5=88=86=E7=BB=84=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E6=94=B6=E8=B5=B7=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- .../SmartSQL.Framework/SqliteModel/ObjectGroup.cs | 2 +- SmartSQL/SmartSQL/MainWindow.xaml.cs | 13 ++++++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9933ab5..be7df05 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 90603db..3443dbd 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 8dd1aef..591fc32 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; -- Gitee