*.[改进]Itrycn_Project2新增数据库版本配置,当数据库版本不符时提醒。
This commit is contained in:
parent
d8e0f01af1
commit
5084054674
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
Bin/Release/CommonControls/.NET4/XPTable.dll
Normal file
BIN
Bin/Release/CommonControls/.NET4/XPTable.dll
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,6 +1,8 @@
|
||||||
using ryCommonDb;
|
using ryCommon;
|
||||||
|
using ryCommonDb;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using static ryCommonDb.DataProvider;
|
using static ryCommonDb.DataProvider;
|
||||||
|
@ -46,15 +48,78 @@ namespace Itrycn_Project
|
||||||
db.CreateDb(mySQL);
|
db.CreateDb(mySQL);
|
||||||
#endregion
|
#endregion
|
||||||
//
|
//
|
||||||
#region 表2
|
#region 设置表
|
||||||
mySQL.Clear();
|
mySQL.Clear();
|
||||||
mySQL.TableName = "表2";
|
mySQL.TableName = "Setting";
|
||||||
mySQL.AddField("", "");
|
mySQL.AddField("name", "");
|
||||||
|
mySQL.AddField("info", "");
|
||||||
db.CreateDb(mySQL);
|
db.CreateDb(mySQL);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
db.Free();
|
db.Free();
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 保存设置
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>返回大于0的数,表示设置成功,否则表示失败</returns>
|
||||||
|
private static int SetSetting(string name ,string info)
|
||||||
|
{
|
||||||
|
DataProvider mydb = new DataProvider();
|
||||||
|
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||||
|
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||||
|
{
|
||||||
|
RyQuickSQL mySQL = new RyQuickSQL("Setting");
|
||||||
|
mySQL.AddField("name", name);
|
||||||
|
mySQL.AddField("info", info);
|
||||||
|
var result = db.ExecuteNonQuery(mySQL.GetUpdateSQL() + " where name='" + name + "'", mySQL);
|
||||||
|
if (result == 0)
|
||||||
|
{
|
||||||
|
result=db.ExecuteNonQuery(mySQL.GetInsertSQL(), mySQL);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
db.Free();
|
||||||
|
return -1000;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///获取设置
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
private static string GetSetting(string name, string defValue)
|
||||||
|
{
|
||||||
|
DataProvider mydb = new DataProvider();
|
||||||
|
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||||
|
var result = defValue;
|
||||||
|
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||||
|
{
|
||||||
|
DataSet ds = db.ReadData("select * from Setting where name='"+ name + "'");
|
||||||
|
if (mydb.HaveData(ds))
|
||||||
|
{
|
||||||
|
DataRow reader = ds.Tables[0].Rows[0];
|
||||||
|
#region 读取信息
|
||||||
|
result = reader["Name"].ToString();
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
db.Free();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 获取数据库版本
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static int GetDbVer()
|
||||||
|
{
|
||||||
|
return GetSetting("dbVer","1").ToInt();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 设置数据库版本
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static int SetDbVer(int DbVer)
|
||||||
|
{
|
||||||
|
return SetSetting("dbVer", DbVer.ToString());
|
||||||
|
}
|
||||||
public static void CreateTable()
|
public static void CreateTable()
|
||||||
{
|
{
|
||||||
CreateTable(dataType, SQLConnStr);
|
CreateTable(dataType, SQLConnStr);
|
||||||
|
|
287
Source/Itrycn_Project2/FrmStart.Designer.cs
generated
287
Source/Itrycn_Project2/FrmStart.Designer.cs
generated
|
@ -30,163 +30,134 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
||||||
this.MenuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
|
this.MenuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
this.显示主窗体ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.显示主窗体ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.退出软件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.退出软件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||||
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.打开官网ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.打开官网ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.捐助ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.捐助ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.chromeTabControl1 = new ryControls.ChromeTabControl();
|
this.chromeTabControl1 = new ryControls.ChromeTabControl();
|
||||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||||
this.richTextBox21 = new ryControls.Controls.RichTextBox2();
|
this.MenuTray.SuspendLayout();
|
||||||
this.extendedWebBrowser1 = new ExtendedWebBrowser2.ExtendedWebBrowser();
|
this.menuStrip1.SuspendLayout();
|
||||||
this.MenuTray.SuspendLayout();
|
this.chromeTabControl1.SuspendLayout();
|
||||||
this.menuStrip1.SuspendLayout();
|
this.SuspendLayout();
|
||||||
this.chromeTabControl1.SuspendLayout();
|
//
|
||||||
this.tabPage1.SuspendLayout();
|
// notifyIcon1
|
||||||
this.SuspendLayout();
|
//
|
||||||
//
|
this.notifyIcon1.ContextMenuStrip = this.MenuTray;
|
||||||
// notifyIcon1
|
this.notifyIcon1.Visible = true;
|
||||||
//
|
this.notifyIcon1.DoubleClick += new System.EventHandler(this.显示主窗体ToolStripMenuItem_Click);
|
||||||
this.notifyIcon1.ContextMenuStrip = this.MenuTray;
|
//
|
||||||
this.notifyIcon1.Visible = true;
|
// MenuTray
|
||||||
this.notifyIcon1.DoubleClick += new System.EventHandler(this.显示主窗体ToolStripMenuItem_Click);
|
//
|
||||||
//
|
this.MenuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
// MenuTray
|
this.显示主窗体ToolStripMenuItem,
|
||||||
//
|
this.退出软件ToolStripMenuItem});
|
||||||
this.MenuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.MenuTray.Name = "MenuTray";
|
||||||
this.显示主窗体ToolStripMenuItem,
|
this.MenuTray.Size = new System.Drawing.Size(137, 48);
|
||||||
this.退出软件ToolStripMenuItem});
|
//
|
||||||
this.MenuTray.Name = "MenuTray";
|
// 显示主窗体ToolStripMenuItem
|
||||||
this.MenuTray.Size = new System.Drawing.Size(137, 48);
|
//
|
||||||
//
|
this.显示主窗体ToolStripMenuItem.Name = "显示主窗体ToolStripMenuItem";
|
||||||
// 显示主窗体ToolStripMenuItem
|
this.显示主窗体ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
||||||
//
|
this.显示主窗体ToolStripMenuItem.Text = "显示主窗体";
|
||||||
this.显示主窗体ToolStripMenuItem.Name = "显示主窗体ToolStripMenuItem";
|
this.显示主窗体ToolStripMenuItem.Click += new System.EventHandler(this.显示主窗体ToolStripMenuItem_Click);
|
||||||
this.显示主窗体ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
//
|
||||||
this.显示主窗体ToolStripMenuItem.Text = "显示主窗体";
|
// 退出软件ToolStripMenuItem
|
||||||
this.显示主窗体ToolStripMenuItem.Click += new System.EventHandler(this.显示主窗体ToolStripMenuItem_Click);
|
//
|
||||||
//
|
this.退出软件ToolStripMenuItem.Name = "退出软件ToolStripMenuItem";
|
||||||
// 退出软件ToolStripMenuItem
|
this.退出软件ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
||||||
//
|
this.退出软件ToolStripMenuItem.Text = "退出软件";
|
||||||
this.退出软件ToolStripMenuItem.Name = "退出软件ToolStripMenuItem";
|
this.退出软件ToolStripMenuItem.Click += new System.EventHandler(this.退出软件ToolStripMenuItem_Click);
|
||||||
this.退出软件ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
//
|
||||||
this.退出软件ToolStripMenuItem.Text = "退出软件";
|
// menuStrip1
|
||||||
this.退出软件ToolStripMenuItem.Click += new System.EventHandler(this.退出软件ToolStripMenuItem_Click);
|
//
|
||||||
//
|
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
// menuStrip1
|
this.关于ToolStripMenuItem});
|
||||||
//
|
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.menuStrip1.Name = "menuStrip1";
|
||||||
this.关于ToolStripMenuItem});
|
this.menuStrip1.Size = new System.Drawing.Size(789, 25);
|
||||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
this.menuStrip1.TabIndex = 2;
|
||||||
this.menuStrip1.Name = "menuStrip1";
|
this.menuStrip1.Text = "menuStrip1";
|
||||||
this.menuStrip1.Size = new System.Drawing.Size(789, 25);
|
//
|
||||||
this.menuStrip1.TabIndex = 2;
|
// 关于ToolStripMenuItem
|
||||||
this.menuStrip1.Text = "menuStrip1";
|
//
|
||||||
//
|
this.关于ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
// 关于ToolStripMenuItem
|
this.打开官网ToolStripMenuItem,
|
||||||
//
|
this.捐助ToolStripMenuItem});
|
||||||
this.关于ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
||||||
this.打开官网ToolStripMenuItem,
|
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
|
||||||
this.捐助ToolStripMenuItem});
|
this.关于ToolStripMenuItem.Text = "关于";
|
||||||
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
//
|
||||||
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
|
// 打开官网ToolStripMenuItem
|
||||||
this.关于ToolStripMenuItem.Text = "关于";
|
//
|
||||||
//
|
this.打开官网ToolStripMenuItem.Name = "打开官网ToolStripMenuItem";
|
||||||
// 打开官网ToolStripMenuItem
|
this.打开官网ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
||||||
//
|
this.打开官网ToolStripMenuItem.Text = "打开官网";
|
||||||
this.打开官网ToolStripMenuItem.Name = "打开官网ToolStripMenuItem";
|
this.打开官网ToolStripMenuItem.Click += new System.EventHandler(this.打开官网ToolStripMenuItem_Click);
|
||||||
this.打开官网ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
//
|
||||||
this.打开官网ToolStripMenuItem.Text = "打开官网";
|
// 捐助ToolStripMenuItem
|
||||||
this.打开官网ToolStripMenuItem.Click += new System.EventHandler(this.打开官网ToolStripMenuItem_Click);
|
//
|
||||||
//
|
this.捐助ToolStripMenuItem.Name = "捐助ToolStripMenuItem";
|
||||||
// 捐助ToolStripMenuItem
|
this.捐助ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
||||||
//
|
this.捐助ToolStripMenuItem.Text = "关于和捐助";
|
||||||
this.捐助ToolStripMenuItem.Name = "捐助ToolStripMenuItem";
|
this.捐助ToolStripMenuItem.Click += new System.EventHandler(this.捐助ToolStripMenuItem_Click);
|
||||||
this.捐助ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
//
|
||||||
this.捐助ToolStripMenuItem.Text = "关于和捐助";
|
// chromeTabControl1
|
||||||
this.捐助ToolStripMenuItem.Click += new System.EventHandler(this.捐助ToolStripMenuItem_Click);
|
//
|
||||||
//
|
this.chromeTabControl1.AllowDragTab = false;
|
||||||
// chromeTabControl1
|
this.chromeTabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
//
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
this.chromeTabControl1.AllowDragTab = false;
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.chromeTabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.chromeTabControl1.BackTabPageImage = null;
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
this.chromeTabControl1.Controls.Add(this.tabPage1);
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
|
||||||
this.chromeTabControl1.BackTabPageImage = null;
|
this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25);
|
||||||
this.chromeTabControl1.Controls.Add(this.tabPage1);
|
this.chromeTabControl1.Location = new System.Drawing.Point(1, 28);
|
||||||
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
|
this.chromeTabControl1.Name = "chromeTabControl1";
|
||||||
this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25);
|
this.chromeTabControl1.SelectedIndex = 0;
|
||||||
this.chromeTabControl1.Location = new System.Drawing.Point(1, 28);
|
this.chromeTabControl1.ShowAddButton = false;
|
||||||
this.chromeTabControl1.Name = "chromeTabControl1";
|
this.chromeTabControl1.ShowCloseButton = false;
|
||||||
this.chromeTabControl1.SelectedIndex = 0;
|
this.chromeTabControl1.Size = new System.Drawing.Size(787, 506);
|
||||||
this.chromeTabControl1.ShowAddButton = false;
|
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
|
||||||
this.chromeTabControl1.ShowCloseButton = false;
|
this.chromeTabControl1.TabContextMenuStrip = null;
|
||||||
this.chromeTabControl1.Size = new System.Drawing.Size(787, 506);
|
this.chromeTabControl1.TabIndex = 0;
|
||||||
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
|
this.chromeTabControl1.TabMaxWidth = 100;
|
||||||
this.chromeTabControl1.TabContextMenuStrip = null;
|
//
|
||||||
this.chromeTabControl1.TabIndex = 0;
|
// tabPage1
|
||||||
this.chromeTabControl1.TabMaxWidth = 100;
|
//
|
||||||
//
|
this.tabPage1.Location = new System.Drawing.Point(1, 29);
|
||||||
// tabPage1
|
this.tabPage1.Name = "tabPage1";
|
||||||
//
|
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||||
this.tabPage1.Controls.Add(this.extendedWebBrowser1);
|
this.tabPage1.Size = new System.Drawing.Size(785, 476);
|
||||||
this.tabPage1.Controls.Add(this.richTextBox21);
|
this.tabPage1.TabIndex = 0;
|
||||||
this.tabPage1.Location = new System.Drawing.Point(1, 29);
|
this.tabPage1.Text = "首页";
|
||||||
this.tabPage1.Name = "tabPage1";
|
this.tabPage1.UseVisualStyleBackColor = true;
|
||||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
//
|
||||||
this.tabPage1.Size = new System.Drawing.Size(785, 476);
|
// FrmStart
|
||||||
this.tabPage1.TabIndex = 0;
|
//
|
||||||
this.tabPage1.Text = "首页";
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
this.tabPage1.UseVisualStyleBackColor = true;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
//
|
this.ClientSize = new System.Drawing.Size(789, 538);
|
||||||
// richTextBox21
|
this.Controls.Add(this.menuStrip1);
|
||||||
//
|
this.Controls.Add(this.chromeTabControl1);
|
||||||
this.richTextBox21.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
this.Name = "FrmStart";
|
||||||
this.richTextBox21.DetectUrls = false;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.richTextBox21.EmptyText = "cc对对对反反复复";
|
this.Text = "FrmStart";
|
||||||
this.richTextBox21.ForeColor = System.Drawing.Color.Black;
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmStart_FormClosing);
|
||||||
this.richTextBox21.Location = new System.Drawing.Point(164, 79);
|
this.Load += new System.EventHandler(this.FrmStart_Load);
|
||||||
this.richTextBox21.Name = "richTextBox21";
|
this.Shown += new System.EventHandler(this.FrmStart_Shown);
|
||||||
this.richTextBox21.OnlyInputText = true;
|
this.MenuTray.ResumeLayout(false);
|
||||||
this.richTextBox21.Size = new System.Drawing.Size(385, 195);
|
this.menuStrip1.ResumeLayout(false);
|
||||||
this.richTextBox21.TabIndex = 0;
|
this.menuStrip1.PerformLayout();
|
||||||
this.richTextBox21.Text = "";
|
this.chromeTabControl1.ResumeLayout(false);
|
||||||
//
|
this.ResumeLayout(false);
|
||||||
// extendedWebBrowser1
|
this.PerformLayout();
|
||||||
//
|
|
||||||
this.extendedWebBrowser1.ForceOpenThisWindow = false;
|
|
||||||
this.extendedWebBrowser1.Location = new System.Drawing.Point(124, 77);
|
|
||||||
this.extendedWebBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
|
|
||||||
this.extendedWebBrowser1.Name = "extendedWebBrowser1";
|
|
||||||
this.extendedWebBrowser1.ScriptErrorsSuppressed = true;
|
|
||||||
this.extendedWebBrowser1.Size = new System.Drawing.Size(250, 250);
|
|
||||||
this.extendedWebBrowser1.TabIndex = 1;
|
|
||||||
//
|
|
||||||
// FrmStart
|
|
||||||
//
|
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.ClientSize = new System.Drawing.Size(789, 538);
|
|
||||||
this.Controls.Add(this.menuStrip1);
|
|
||||||
this.Controls.Add(this.chromeTabControl1);
|
|
||||||
this.Name = "FrmStart";
|
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
||||||
this.Text = "FrmStart";
|
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmStart_FormClosing);
|
|
||||||
this.Load += new System.EventHandler(this.FrmStart_Load);
|
|
||||||
this.Shown += new System.EventHandler(this.FrmStart_Shown);
|
|
||||||
this.MenuTray.ResumeLayout(false);
|
|
||||||
this.menuStrip1.ResumeLayout(false);
|
|
||||||
this.menuStrip1.PerformLayout();
|
|
||||||
this.chromeTabControl1.ResumeLayout(false);
|
|
||||||
this.tabPage1.ResumeLayout(false);
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
this.PerformLayout();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -201,7 +172,5 @@
|
||||||
private System.Windows.Forms.ToolStripMenuItem 关于ToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem 关于ToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem 捐助ToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem 捐助ToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem 打开官网ToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem 打开官网ToolStripMenuItem;
|
||||||
private ryControls.Controls.RichTextBox2 richTextBox21;
|
|
||||||
private ExtendedWebBrowser2.ExtendedWebBrowser extendedWebBrowser1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -127,10 +127,20 @@ namespace Itrycn_Project2
|
||||||
|
|
||||||
private void FrmStart_Load(object sender, EventArgs e)
|
private void FrmStart_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//Itrycn_Project.Itrycn_Db.CreateTable();
|
Itrycn_Project.Itrycn_Db.CreateTable();
|
||||||
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Soft_Info.Update_Url);
|
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Soft_Info.Update_Url);
|
||||||
update.CheckUpdate();
|
update.CheckUpdate();
|
||||||
RyFiles.GetRelativePath("%cc");
|
var dbver = Itrycn_Db.GetDbVer();
|
||||||
|
if(dbver==1) //初始版本,并是当前要求的数据库
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show("不支持当前数据库版本,这可能是以下原因导致的:\r\n1.数据库已损坏;'\r\n2.当前数据库是由新版软件创建的(请更新软件后重试)。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
Application.Exit();
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,132 +1,132 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
<!--
|
<!--
|
||||||
Microsoft ResX Schema
|
Microsoft ResX Schema
|
||||||
|
|
||||||
Version 2.0
|
Version 2.0
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
The primary goals of this format is to allow a simple XML format
|
||||||
that is mostly human readable. The generation and parsing of the
|
that is mostly human readable. The generation and parsing of the
|
||||||
various data types are done through the TypeConverter classes
|
various data types are done through the TypeConverter classes
|
||||||
associated with the data types.
|
associated with the data types.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
... ado.net/XML headers & schema ...
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
<resheader name="version">2.0</resheader>
|
<resheader name="version">2.0</resheader>
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
<comment>This is a comment</comment>
|
<comment>This is a comment</comment>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
There are any number of "resheader" rows that contain simple
|
||||||
name/value pairs.
|
name/value pairs.
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
Each data row contains a name, and value. The row also contains a
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
text/value conversion through the TypeConverter architecture.
|
text/value conversion through the TypeConverter architecture.
|
||||||
Classes that don't support this are serialized and stored with the
|
Classes that don't support this are serialized and stored with the
|
||||||
mimetype set.
|
mimetype set.
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
The mimetype is used for serialized objects, and tells the
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
read any of the formats listed below.
|
read any of the formats listed below.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
value : The object must be serialized with
|
value : The object must be serialized with
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
value : The object must be serialized with
|
value : The object must be serialized with
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
value : The object must be serialized into a byte array
|
value : The object must be serialized into a byte array
|
||||||
: using a System.ComponentModel.TypeConverter
|
: using a System.ComponentModel.TypeConverter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
-->
|
-->
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
<xsd:complexType>
|
<xsd:complexType>
|
||||||
<xsd:choice maxOccurs="unbounded">
|
<xsd:choice maxOccurs="unbounded">
|
||||||
<xsd:element name="metadata">
|
<xsd:element name="metadata">
|
||||||
<xsd:complexType>
|
<xsd:complexType>
|
||||||
<xsd:sequence>
|
<xsd:sequence>
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
</xsd:sequence>
|
</xsd:sequence>
|
||||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
<xsd:attribute ref="xml:space" />
|
<xsd:attribute ref="xml:space" />
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
</xsd:element>
|
</xsd:element>
|
||||||
<xsd:element name="assembly">
|
<xsd:element name="assembly">
|
||||||
<xsd:complexType>
|
<xsd:complexType>
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
</xsd:element>
|
</xsd:element>
|
||||||
<xsd:element name="data">
|
<xsd:element name="data">
|
||||||
<xsd:complexType>
|
<xsd:complexType>
|
||||||
<xsd:sequence>
|
<xsd:sequence>
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
</xsd:sequence>
|
</xsd:sequence>
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
<xsd:attribute ref="xml:space" />
|
<xsd:attribute ref="xml:space" />
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
</xsd:element>
|
</xsd:element>
|
||||||
<xsd:element name="resheader">
|
<xsd:element name="resheader">
|
||||||
<xsd:complexType>
|
<xsd:complexType>
|
||||||
<xsd:sequence>
|
<xsd:sequence>
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
</xsd:sequence>
|
</xsd:sequence>
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
</xsd:element>
|
</xsd:element>
|
||||||
</xsd:choice>
|
</xsd:choice>
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
</xsd:element>
|
</xsd:element>
|
||||||
</xsd:schema>
|
</xsd:schema>
|
||||||
<resheader name="resmimetype">
|
<resheader name="resmimetype">
|
||||||
<value>text/microsoft-resx</value>
|
<value>text/microsoft-resx</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="version">
|
<resheader name="version">
|
||||||
<value>2.0</value>
|
<value>2.0</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="reader">
|
<resheader name="reader">
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="notifyIcon1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="notifyIcon1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="MenuTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="MenuTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>135, 17</value>
|
<value>135, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>246, 17</value>
|
<value>246, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>54</value>
|
<value>54</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
</root>
|
</root>
|
Loading…
Reference in New Issue
Block a user