Commit 582aebf2 authored by DailyShana's avatar DailyShana

2.3.0.8

parent b72ae8e4
......@@ -86,6 +86,10 @@ public class MyConfig : XMLReader
/// </summary>
public const string TAG_OPEN_IN_THIS = "open_file_in_this";
/// <summary>
/// 自动检查更新
/// </summary>
public const string TAG_AUTO_CHECK_UPDATE = "auto_check_update";
/// <summary>
/// 一般的裁剪
/// </summary>
public const string TAG_IMAGE_OTHER = "image_other";
......
......@@ -64,6 +64,7 @@ private void InitializeComponent()
this.menuitem_compdb = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_findluafunc = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_exportdata = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_saveasenter = new System.Windows.Forms.ToolStripMenuItem();
this.tsep5 = new System.Windows.Forms.ToolStripSeparator();
this.menuitem_cutimages = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_convertimage = new System.Windows.Forms.ToolStripMenuItem();
......@@ -118,13 +119,13 @@ private void InitializeComponent()
this.tb_setcode3 = new System.Windows.Forms.TextBox();
this.tb_setcode4 = new System.Windows.Forms.TextBox();
this.lb_cardcode = new System.Windows.Forms.Label();
this.menuitem_autocheckupdate = new System.Windows.Forms.ToolStripMenuItem();
this.pl_category = new System.Windows.Forms.DFlowLayoutPanel();
this.pl_cardtype = new System.Windows.Forms.DFlowLayoutPanel();
this.lb_scripttext = new System.Windows.Forms.DListBox();
this.lv_cardlist = new System.Windows.Forms.DListView();
this.ch_cardcode = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.ch_cardname = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.menuitem_saveasenter = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenu.SuspendLayout();
this.SuspendLayout();
//
......@@ -349,6 +350,13 @@ private void InitializeComponent()
this.menuitem_exportdata.Text = "Export Data";
this.menuitem_exportdata.Click += new System.EventHandler(this.Menuitem_exportdataClick);
//
// menuitem_saveasenter
//
this.menuitem_saveasenter.Name = "menuitem_saveasenter";
this.menuitem_saveasenter.Size = new System.Drawing.Size(212, 22);
this.menuitem_saveasenter.Text = "Save as Auto Enter";
this.menuitem_saveasenter.Click += new System.EventHandler(this.menuitem_saveasenter_Click);
//
// tsep5
//
this.tsep5.Name = "tsep5";
......@@ -385,6 +393,7 @@ private void InitializeComponent()
this.menuitem_help.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuitem_about,
this.menuitem_checkupdate,
this.menuitem_autocheckupdate,
this.menuitem_github});
this.menuitem_help.Name = "menuitem_help";
this.menuitem_help.Size = new System.Drawing.Size(64, 21);
......@@ -394,21 +403,21 @@ private void InitializeComponent()
//
this.menuitem_about.Name = "menuitem_about";
this.menuitem_about.ShortcutKeys = System.Windows.Forms.Keys.F1;
this.menuitem_about.Size = new System.Drawing.Size(158, 22);
this.menuitem_about.Size = new System.Drawing.Size(189, 22);
this.menuitem_about.Text = "About";
this.menuitem_about.Click += new System.EventHandler(this.Menuitem_aboutClick);
//
// menuitem_checkupdate
//
this.menuitem_checkupdate.Name = "menuitem_checkupdate";
this.menuitem_checkupdate.Size = new System.Drawing.Size(158, 22);
this.menuitem_checkupdate.Size = new System.Drawing.Size(189, 22);
this.menuitem_checkupdate.Text = "Check Update";
this.menuitem_checkupdate.Click += new System.EventHandler(this.Menuitem_checkupdateClick);
//
// menuitem_github
//
this.menuitem_github.Name = "menuitem_github";
this.menuitem_github.Size = new System.Drawing.Size(158, 22);
this.menuitem_github.Size = new System.Drawing.Size(189, 22);
this.menuitem_github.Text = "Source Code";
this.menuitem_github.Click += new System.EventHandler(this.Menuitem_githubClick);
//
......@@ -941,6 +950,13 @@ private void InitializeComponent()
this.lb_cardcode.TabIndex = 7;
this.lb_cardcode.Text = "Card Code";
//
// menuitem_autocheckupdate
//
this.menuitem_autocheckupdate.Name = "menuitem_autocheckupdate";
this.menuitem_autocheckupdate.Size = new System.Drawing.Size(189, 22);
this.menuitem_autocheckupdate.Text = "Auto Check Update";
this.menuitem_autocheckupdate.Click += new System.EventHandler(this.menuitem_autocheckupdate_Click);
//
// pl_category
//
this.pl_category.Anchor = System.Windows.Forms.AnchorStyles.Top;
......@@ -1012,13 +1028,6 @@ private void InitializeComponent()
this.ch_cardname.Text = "Card Name";
this.ch_cardname.Width = 140;
//
// menuitem_saveasenter
//
this.menuitem_saveasenter.Name = "menuitem_saveasenter";
this.menuitem_saveasenter.Size = new System.Drawing.Size(212, 22);
this.menuitem_saveasenter.Text = "Save as Auto Enter";
this.menuitem_saveasenter.Click += new System.EventHandler(this.menuitem_saveasenter_Click);
//
// DataEditForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
......@@ -1178,5 +1187,6 @@ private void InitializeComponent()
private System.Windows.Forms.ToolStripSeparator tsep2;
private System.Windows.Forms.ToolStripMenuItem menuitem_openfileinthis;
private System.Windows.Forms.ToolStripMenuItem menuitem_saveasenter;
private System.Windows.Forms.ToolStripMenuItem menuitem_autocheckupdate;
}
}
......@@ -135,6 +135,8 @@ void DataEditFormLoad(object sender, EventArgs e)
menuitem_operacardsfile.Checked = MyConfig.readBoolean(MyConfig.TAG_DELETE_WITH);
//用CodeEditor打开脚本
menuitem_openfileinthis.Checked = MyConfig.readBoolean(MyConfig.TAG_OPEN_IN_THIS);
//自动检查更新
menuitem_autocheckupdate.Checked = MyConfig.readBoolean(MyConfig.TAG_AUTO_CHECK_UPDATE);
if (nowCdbFile != null && File.Exists(nowCdbFile))
Open(nowCdbFile);
//获取MSE配菜单
......@@ -1520,6 +1522,12 @@ private void menuitem_openfileinthis_Click(object sender, EventArgs e)
menuitem_openfileinthis.Checked = !menuitem_openfileinthis.Checked;
MyConfig.Save(MyConfig.TAG_OPEN_IN_THIS, menuitem_openfileinthis.Checked.ToString().ToLower());
}
//自动检查更新
private void menuitem_autocheckupdate_Click(object sender, EventArgs e)
{
menuitem_autocheckupdate.Checked = !menuitem_autocheckupdate.Checked;
MyConfig.Save(MyConfig.TAG_AUTO_CHECK_UPDATE, menuitem_autocheckupdate.Checked.ToString().ToLower());
}
#endregion
#region 空格
......
......@@ -491,6 +491,8 @@ private void bgWorker1_RunWorkerCompleted(object sender, System.ComponentModel.R
private void MainForm_Load(object sender, EventArgs e)
{
//检查更新
if (!MyConfig.readBoolean(MyConfig.TAG_AUTO_CHECK_UPDATE))
return;
Thread th = new Thread(CheckUpdate);
th.IsBackground = true;//如果exe结束,则线程终止
th.Start();
......
......@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.3.0.7")]
[assembly: AssemblyVersion("2.3.0.8")]
......@@ -26,6 +26,8 @@
<add key="opera_with_cards_file" value="true" />
<!-- open file in this.such as lua -->
<add key="open_file_in_this" value="true" />
<!-- check update when opening application automatically -->
<add key="auto_check_update" value="true" />
<!-- Cut Images Setting -->
<add key="image_quilty" value="100" />
<add key="image" value="44,64,177,254" />
......
★更新历史
2.3.0.8
可以选择是否自动检查更新
2.3.0.7
更新系列名,函数列表,常数列表
修复:修改资源时不能更改脚本文件名,保存脚本后关闭文件仍然提示是否保存
......
......@@ -60,6 +60,7 @@ DataEditForm.mainMenu.menuitem_cancelTask 取消任务
DataEditForm.mainMenu.menuitem_help 帮助(&H)
DataEditForm.mainMenu.menuitem_about 关于
DataEditForm.mainMenu.menuitem_checkupdate 检查更新
DataEditForm.mainMenu.menuitem_autocheckupdate 自动检查更新
DataEditForm.mainMenu.menuitem_github 源码
#
MainForm.mainMenu.menuitem_file 文件(&F)
......
......@@ -59,6 +59,7 @@ DataEditForm.mainMenu.menuitem_cancelTask Cancel Task
DataEditForm.mainMenu.menuitem_help Help(&H)
DataEditForm.mainMenu.menuitem_about About
DataEditForm.mainMenu.menuitem_checkupdate Check Update
DataEditForm.mainMenu.menuitem_autocheckupdate Auto Check Update
DataEditForm.mainMenu.menuitem_github GitHub
#
MainForm.mainMenu.menuitem_file File(&F)
......
[DataEditorX]2.3.0.7[DataEditorX]
[DataEditorX]2.3.0.8[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
......
No preview for this file type
......@@ -26,6 +26,8 @@
<add key="opera_with_cards_file" value="true" />
<!-- open file in this.such as lua -->
<add key="open_file_in_this" value="true" />
<!-- check update when opening application automatically -->
<add key="auto_check_update" value="true" />
<!-- Cut Images Setting -->
<add key="image_quilty" value="100" />
<add key="image" value="44,64,177,254" />
......
★更新历史
2.3.0.8
可以选择是否自动检查更新
2.3.0.7
更新系列名,函数列表,常数列表
修复:修改资源时不能更改脚本文件名,保存脚本后关闭文件仍然提示是否保存
......
......@@ -60,6 +60,7 @@ DataEditForm.mainMenu.menuitem_cancelTask 取消任务
DataEditForm.mainMenu.menuitem_help 帮助(&H)
DataEditForm.mainMenu.menuitem_about 关于
DataEditForm.mainMenu.menuitem_checkupdate 检查更新
DataEditForm.mainMenu.menuitem_autocheckupdate 自动检查更新
DataEditForm.mainMenu.menuitem_github 源码
#
MainForm.mainMenu.menuitem_file 文件(&F)
......
......@@ -59,6 +59,7 @@ DataEditForm.mainMenu.menuitem_cancelTask Cancel Task
DataEditForm.mainMenu.menuitem_help Help(&H)
DataEditForm.mainMenu.menuitem_about About
DataEditForm.mainMenu.menuitem_checkupdate Check Update
DataEditForm.mainMenu.menuitem_autocheckupdate Auto Check Update
DataEditForm.mainMenu.menuitem_github GitHub
#
MainForm.mainMenu.menuitem_file File(&F)
......
[DataEditorX]2.3.0.7[DataEditorX]
[DataEditorX]2.3.0.8[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment