Skip to content

Commit

Permalink
复选框根据配置初始化状态
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoqingqing committed Oct 29, 2020
1 parent 0d4775a commit 8fd7988
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TableML/TableMLGUI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void Init()
openFileDialog1.Multiselect = true;
openFileDialog1.SupportMultiDottedExtensions = true;


cb_sql.Checked = UseSqlite;
InitExcelFormat();
}

Expand Down Expand Up @@ -543,7 +543,7 @@ private void Cb_sql_CheckedChanged(object sender, EventArgs e)
config.Save(ConfigurationSaveMode.Modified);
ConfigurationManager.RefreshSection("appSettings");*/
AppConfigHelper.SetValue("UseSqlite", box.Checked ? "1" : "0");
ConsoleHelper.Log($"是否开启导出到sqlite?{box.Checked} ,config:{AppConfigHelper.GetValue("UseSqlite")}");
ConsoleHelper.Log($"是否启用导出到sqlite?{box.Checked} ,config:{AppConfigHelper.GetValue("UseSqlite")}");

}
}
Expand Down
6 changes: 6 additions & 0 deletions update_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2020-10-29

界面上增加勾选框,是否启用sqlite功能



## 2020-8-3

1. 界面大调整,去掉旧项目的部分功能
Expand Down

0 comments on commit 8fd7988

Please sign in to comment.