### 2021-06-12更新

------
#### Itrycn_Project2    V1.0.2106.1201
- *.[新增]新增加入皮肤功能。
- *.[新增]对话框全部使用皮肤。
- *.[新增]新增加入扫描模板,快速开发扫描功能。
- *.[改进]公共变量进行区分设置,更加规范。
This commit is contained in:
鑫Intel 2021-06-12 22:09:28 +08:00
parent 2ab2e5b638
commit a3f978b187
162 changed files with 16063 additions and 36010 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,2 @@
[Money_Op] [Money_Op]
hwnd=1191986 hwnd=1118096

View File

@ -1,4 +1,4 @@
<root> <root>
<list id="LastUpdateTime" Value="2021/4/2 16:41:09" /> <list id="LastUpdateTime" Value="2021/6/12 16:48:22" />
<list id="UpdateAfterTime" Value="0" /> <list id="UpdateAfterTime" Value="0" />
</root> </root>

View File

@ -486,6 +486,12 @@
</summary> </summary>
<param name="e"></param> <param name="e"></param>
</member> </member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseMove(System.Windows.Forms.MouseEventArgs)">
<summary>
</summary>
<param name="e"></param>
</member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseLeave(System.EventArgs)"> <member name="M:ryControls.Controls.RichTextBox2.OnMouseLeave(System.EventArgs)">
<summary> <summary>
@ -498,6 +504,12 @@
</summary> </summary>
<param name="e"></param> <param name="e"></param>
</member> </member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseUp(System.Windows.Forms.MouseEventArgs)">
<summary>
</summary>
<param name="e"></param>
</member>
<member name="M:ryControls.Controls.RichTextBox2.WndProc(System.Windows.Forms.Message@)"> <member name="M:ryControls.Controls.RichTextBox2.WndProc(System.Windows.Forms.Message@)">
<summary> <summary>
@ -3647,57 +3659,6 @@
使用代码编辑器修改此方法的内容。 使用代码编辑器修改此方法的内容。
</summary> </summary>
</member> </member>
<member name="T:ryControls.Properties.Resources">
<summary>
一个强类型的资源类,用于查找本地化的字符串等。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ResourceManager">
<summary>
返回此类使用的缓存的 ResourceManager 实例。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Culture">
<summary>
重写当前线程的 CurrentUICulture 属性,对
使用此强类型资源类的所有资源查找执行重写。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ClearFiltering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ColumnFilterIndicator">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.DownArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Filtering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortAscending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortDescending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.UpArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="T:ryControls.TextBoxEx"> <member name="T:ryControls.TextBoxEx">
<summary> <summary>
@ -3797,6 +3758,57 @@
使用代码编辑器修改此方法的内容。 使用代码编辑器修改此方法的内容。
</summary> </summary>
</member> </member>
<member name="T:ryControls.Properties.Resources">
<summary>
一个强类型的资源类,用于查找本地化的字符串等。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ResourceManager">
<summary>
返回此类使用的缓存的 ResourceManager 实例。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Culture">
<summary>
重写当前线程的 CurrentUICulture 属性,对
使用此强类型资源类的所有资源查找执行重写。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ClearFiltering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ColumnFilterIndicator">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.DownArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Filtering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortAscending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortDescending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.UpArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="T:ryControls.LunarDay"> <member name="T:ryControls.LunarDay">
<summary> <summary>
日控件 日控件
@ -6309,6 +6321,42 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:MyPage.ctlMyPage.SetPageSQL(ryCommonDb.DataProvider.DataProviderType,System.String,System.String,System.String)">
<summary>
设置分页语句
</summary>
<param name="dp">数据库类型</param>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.GetPageCountSQL(ryCommonDb.DataProvider.DataProviderType,System.String,System.String)">
<summary>
获取数据库指定条件的记录总数
</summary>
<param name="dp">数据库类型</param>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLByMySQL(System.String,System.String,System.String)">
<summary>
设置分页语句为MySQL分页语句
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.GetPageCountSQLByMySQL(System.String,System.String)">
<summary>
获取MySQL数据库指定条件的记录总数
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLByMSSQL(System.String,System.String,System.String)"> <member name="M:MyPage.ctlMyPage.SetPageSQLByMSSQL(System.String,System.String,System.String)">
<summary> <summary>
设置分页语句为MSSQL分页语句 设置分页语句为MSSQL分页语句
@ -6327,6 +6375,15 @@
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param> <param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String,System.String)">
<summary>
设置分页语句为SQLite分页语句
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String)"> <member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String)">
<summary> <summary>
设置分页语句为SQLite分页语句 设置分页语句为SQLite分页语句

File diff suppressed because it is too large Load Diff

View File

@ -486,6 +486,12 @@
</summary> </summary>
<param name="e"></param> <param name="e"></param>
</member> </member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseMove(System.Windows.Forms.MouseEventArgs)">
<summary>
</summary>
<param name="e"></param>
</member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseLeave(System.EventArgs)"> <member name="M:ryControls.Controls.RichTextBox2.OnMouseLeave(System.EventArgs)">
<summary> <summary>
@ -498,6 +504,12 @@
</summary> </summary>
<param name="e"></param> <param name="e"></param>
</member> </member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseUp(System.Windows.Forms.MouseEventArgs)">
<summary>
</summary>
<param name="e"></param>
</member>
<member name="M:ryControls.Controls.RichTextBox2.WndProc(System.Windows.Forms.Message@)"> <member name="M:ryControls.Controls.RichTextBox2.WndProc(System.Windows.Forms.Message@)">
<summary> <summary>
@ -3647,57 +3659,6 @@
使用代码编辑器修改此方法的内容。 使用代码编辑器修改此方法的内容。
</summary> </summary>
</member> </member>
<member name="T:ryControls.Properties.Resources">
<summary>
一个强类型的资源类,用于查找本地化的字符串等。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ResourceManager">
<summary>
返回此类使用的缓存的 ResourceManager 实例。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Culture">
<summary>
重写当前线程的 CurrentUICulture 属性,对
使用此强类型资源类的所有资源查找执行重写。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ClearFiltering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ColumnFilterIndicator">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.DownArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Filtering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortAscending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortDescending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.UpArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="T:ryControls.TextBoxEx"> <member name="T:ryControls.TextBoxEx">
<summary> <summary>
@ -3797,6 +3758,57 @@
使用代码编辑器修改此方法的内容。 使用代码编辑器修改此方法的内容。
</summary> </summary>
</member> </member>
<member name="T:ryControls.Properties.Resources">
<summary>
一个强类型的资源类,用于查找本地化的字符串等。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ResourceManager">
<summary>
返回此类使用的缓存的 ResourceManager 实例。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Culture">
<summary>
重写当前线程的 CurrentUICulture 属性,对
使用此强类型资源类的所有资源查找执行重写。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ClearFiltering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ColumnFilterIndicator">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.DownArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Filtering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortAscending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortDescending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.UpArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="T:ryControls.LunarDay"> <member name="T:ryControls.LunarDay">
<summary> <summary>
日控件 日控件
@ -6309,6 +6321,42 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:MyPage.ctlMyPage.SetPageSQL(ryCommonDb.DataProvider.DataProviderType,System.String,System.String,System.String)">
<summary>
设置分页语句
</summary>
<param name="dp">数据库类型</param>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.GetPageCountSQL(ryCommonDb.DataProvider.DataProviderType,System.String,System.String)">
<summary>
获取数据库指定条件的记录总数
</summary>
<param name="dp">数据库类型</param>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLByMySQL(System.String,System.String,System.String)">
<summary>
设置分页语句为MySQL分页语句
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.GetPageCountSQLByMySQL(System.String,System.String)">
<summary>
获取MySQL数据库指定条件的记录总数
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLByMSSQL(System.String,System.String,System.String)"> <member name="M:MyPage.ctlMyPage.SetPageSQLByMSSQL(System.String,System.String,System.String)">
<summary> <summary>
设置分页语句为MSSQL分页语句 设置分页语句为MSSQL分页语句
@ -6327,6 +6375,15 @@
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param> <param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String,System.String)">
<summary>
设置分页语句为SQLite分页语句
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String)"> <member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String)">
<summary> <summary>
设置分页语句为SQLite分页语句 设置分页语句为SQLite分页语句

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -486,6 +486,12 @@
</summary> </summary>
<param name="e"></param> <param name="e"></param>
</member> </member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseMove(System.Windows.Forms.MouseEventArgs)">
<summary>
</summary>
<param name="e"></param>
</member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseLeave(System.EventArgs)"> <member name="M:ryControls.Controls.RichTextBox2.OnMouseLeave(System.EventArgs)">
<summary> <summary>
@ -498,6 +504,12 @@
</summary> </summary>
<param name="e"></param> <param name="e"></param>
</member> </member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseUp(System.Windows.Forms.MouseEventArgs)">
<summary>
</summary>
<param name="e"></param>
</member>
<member name="M:ryControls.Controls.RichTextBox2.WndProc(System.Windows.Forms.Message@)"> <member name="M:ryControls.Controls.RichTextBox2.WndProc(System.Windows.Forms.Message@)">
<summary> <summary>
@ -3647,57 +3659,6 @@
使用代码编辑器修改此方法的内容。 使用代码编辑器修改此方法的内容。
</summary> </summary>
</member> </member>
<member name="T:ryControls.Properties.Resources">
<summary>
一个强类型的资源类,用于查找本地化的字符串等。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ResourceManager">
<summary>
返回此类使用的缓存的 ResourceManager 实例。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Culture">
<summary>
重写当前线程的 CurrentUICulture 属性,对
使用此强类型资源类的所有资源查找执行重写。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ClearFiltering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ColumnFilterIndicator">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.DownArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Filtering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortAscending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortDescending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.UpArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="T:ryControls.TextBoxEx"> <member name="T:ryControls.TextBoxEx">
<summary> <summary>
@ -3797,6 +3758,57 @@
使用代码编辑器修改此方法的内容。 使用代码编辑器修改此方法的内容。
</summary> </summary>
</member> </member>
<member name="T:ryControls.Properties.Resources">
<summary>
一个强类型的资源类,用于查找本地化的字符串等。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ResourceManager">
<summary>
返回此类使用的缓存的 ResourceManager 实例。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Culture">
<summary>
重写当前线程的 CurrentUICulture 属性,对
使用此强类型资源类的所有资源查找执行重写。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ClearFiltering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ColumnFilterIndicator">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.DownArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Filtering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortAscending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortDescending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.UpArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="T:ryControls.LunarDay"> <member name="T:ryControls.LunarDay">
<summary> <summary>
日控件 日控件
@ -6309,6 +6321,42 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:MyPage.ctlMyPage.SetPageSQL(ryCommonDb.DataProvider.DataProviderType,System.String,System.String,System.String)">
<summary>
设置分页语句
</summary>
<param name="dp">数据库类型</param>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.GetPageCountSQL(ryCommonDb.DataProvider.DataProviderType,System.String,System.String)">
<summary>
获取数据库指定条件的记录总数
</summary>
<param name="dp">数据库类型</param>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLByMySQL(System.String,System.String,System.String)">
<summary>
设置分页语句为MySQL分页语句
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.GetPageCountSQLByMySQL(System.String,System.String)">
<summary>
获取MySQL数据库指定条件的记录总数
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLByMSSQL(System.String,System.String,System.String)"> <member name="M:MyPage.ctlMyPage.SetPageSQLByMSSQL(System.String,System.String,System.String)">
<summary> <summary>
设置分页语句为MSSQL分页语句 设置分页语句为MSSQL分页语句
@ -6327,6 +6375,15 @@
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param> <param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String,System.String)">
<summary>
设置分页语句为SQLite分页语句
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String)"> <member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String)">
<summary> <summary>
设置分页语句为SQLite分页语句 设置分页语句为SQLite分页语句

File diff suppressed because it is too large Load Diff

View File

@ -486,6 +486,12 @@
</summary> </summary>
<param name="e"></param> <param name="e"></param>
</member> </member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseMove(System.Windows.Forms.MouseEventArgs)">
<summary>
</summary>
<param name="e"></param>
</member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseLeave(System.EventArgs)"> <member name="M:ryControls.Controls.RichTextBox2.OnMouseLeave(System.EventArgs)">
<summary> <summary>
@ -498,6 +504,12 @@
</summary> </summary>
<param name="e"></param> <param name="e"></param>
</member> </member>
<member name="M:ryControls.Controls.RichTextBox2.OnMouseUp(System.Windows.Forms.MouseEventArgs)">
<summary>
</summary>
<param name="e"></param>
</member>
<member name="M:ryControls.Controls.RichTextBox2.WndProc(System.Windows.Forms.Message@)"> <member name="M:ryControls.Controls.RichTextBox2.WndProc(System.Windows.Forms.Message@)">
<summary> <summary>
@ -3647,57 +3659,6 @@
使用代码编辑器修改此方法的内容。 使用代码编辑器修改此方法的内容。
</summary> </summary>
</member> </member>
<member name="T:ryControls.Properties.Resources">
<summary>
一个强类型的资源类,用于查找本地化的字符串等。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ResourceManager">
<summary>
返回此类使用的缓存的 ResourceManager 实例。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Culture">
<summary>
重写当前线程的 CurrentUICulture 属性,对
使用此强类型资源类的所有资源查找执行重写。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ClearFiltering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ColumnFilterIndicator">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.DownArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Filtering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortAscending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortDescending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.UpArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="T:ryControls.TextBoxEx"> <member name="T:ryControls.TextBoxEx">
<summary> <summary>
@ -3797,6 +3758,57 @@
使用代码编辑器修改此方法的内容。 使用代码编辑器修改此方法的内容。
</summary> </summary>
</member> </member>
<member name="T:ryControls.Properties.Resources">
<summary>
一个强类型的资源类,用于查找本地化的字符串等。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ResourceManager">
<summary>
返回此类使用的缓存的 ResourceManager 实例。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Culture">
<summary>
重写当前线程的 CurrentUICulture 属性,对
使用此强类型资源类的所有资源查找执行重写。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ClearFiltering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.ColumnFilterIndicator">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.DownArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.Filtering">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortAscending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.SortDescending">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:ryControls.Properties.Resources.UpArrow">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="T:ryControls.LunarDay"> <member name="T:ryControls.LunarDay">
<summary> <summary>
日控件 日控件
@ -6309,6 +6321,42 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:MyPage.ctlMyPage.SetPageSQL(ryCommonDb.DataProvider.DataProviderType,System.String,System.String,System.String)">
<summary>
设置分页语句
</summary>
<param name="dp">数据库类型</param>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.GetPageCountSQL(ryCommonDb.DataProvider.DataProviderType,System.String,System.String)">
<summary>
获取数据库指定条件的记录总数
</summary>
<param name="dp">数据库类型</param>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLByMySQL(System.String,System.String,System.String)">
<summary>
设置分页语句为MySQL分页语句
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.GetPageCountSQLByMySQL(System.String,System.String)">
<summary>
获取MySQL数据库指定条件的记录总数
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLByMSSQL(System.String,System.String,System.String)"> <member name="M:MyPage.ctlMyPage.SetPageSQLByMSSQL(System.String,System.String,System.String)">
<summary> <summary>
设置分页语句为MSSQL分页语句 设置分页语句为MSSQL分页语句
@ -6327,6 +6375,15 @@
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param> <param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String,System.String)">
<summary>
设置分页语句为SQLite分页语句
</summary>
<param name="tableName">表名</param>
<param name="whereSQL">条件判断sql语句注意不包含where,以及不包含排序语句;,如果不存在条件判断语句,请为空</param>
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</member>
<member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String)"> <member name="M:MyPage.ctlMyPage.SetPageSQLBySQLite(System.String,System.String)">
<summary> <summary>
设置分页语句为SQLite分页语句 设置分页语句为SQLite分页语句

View File

@ -1,4 +1,12 @@
### 2021-04-03更新 ### 2021-06-12更新
------
#### Itrycn_Project2 V1.0.2106.1201
- *.[新增]新增加入皮肤功能。
- *.[新增]对话框全部使用皮肤。
- *.[新增]新增加入扫描模板,快速开发扫描功能。
- *.[改进]公共变量进行区分设置,更加规范。
### 2021-04-03更新
------ ------
#### ryControls V2.1.2104.0201 #### ryControls V2.1.2104.0201
- *.[修复]修复在win7上Gdu.WinformUI会报错的BUG。 - *.[修复]修复在win7上Gdu.WinformUI会报错的BUG。

View File

@ -460,7 +460,7 @@
this.lableX1.Size = new System.Drawing.Size(47, 12); this.lableX1.Size = new System.Drawing.Size(47, 12);
this.lableX1.TabIndex = 1; this.lableX1.TabIndex = 1;
this.lableX1.Text = "lableX1"; this.lableX1.Text = "lableX1";
this.lableX1.DoubleClick += new System.EventHandler(this.lableX1_DoubleClick); this.lableX1.DoubleClick += new System.EventHandler(this.LableX1_DoubleClick);
// //
// Frmmain // Frmmain
// //

View File

@ -14,7 +14,7 @@ namespace Itrycn
{ {
public partial class Frmmain : Form public partial class Frmmain : Form
{ {
string[] prog_args; readonly string[] prog_args;
public Frmmain(string[] args) public Frmmain(string[] args)
{ {
InitializeComponent(); InitializeComponent();
@ -37,7 +37,8 @@ namespace Itrycn
parent.Nodes.Add(btn); parent.Nodes.Add(btn);
return btn; return btn;
} }
Dictionary<Type, Form> dict_form = new Dictionary<Type, Form>();
readonly Dictionary<Type, Form> dict_form = new Dictionary<Type, Form>();
/// <summary> /// <summary>
/// 显示子窗体 /// 显示子窗体
/// </summary> /// </summary>
@ -262,12 +263,12 @@ namespace Itrycn
RyForm.Show(this); RyForm.Show(this);
} }
private void buttonEx2_Click(object sender, EventArgs e) private void ButtonEx2_Click(object sender, EventArgs e)
{ {
ryControls.Skin.SkinCommon.ButtonSkin.BackColor = Color.Red; ryControls.Skin.SkinCommon.ButtonSkin.BackColor = Color.Red;
} }
private void lableX1_DoubleClick(object sender, EventArgs e) private void LableX1_DoubleClick(object sender, EventArgs e)
{ {
MessageBox.Show("这是一个测试", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); MessageBox.Show("这是一个测试", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
} }

View File

@ -36,13 +36,12 @@ namespace Itrycn_Project
} }
private static void CreateTable(ryCommonDb.DataProvider.DataProviderType dataType, string ConnStr) private static void CreateTable(ryCommonDb.DataProvider.DataProviderType dataType, string ConnStr)
{ {
DataProvider mydb = new DataProvider();
IDbInterface db = CreateDataProvider(dataType); IDbInterface db = CreateDataProvider(dataType);
if (db.ConnDb(ConnStr) == 1) if (db.ConnDb(ConnStr) == 1)
{ {
#region 1 #region 1
RyQuickSQL mySQL = new RyQuickSQL("1"); RyQuickSQL mySQL = new RyQuickSQL("test1");
mySQL.AddField("", ""); //mySQL.AddField("", "");
mySQL.AddField("addTime", DateTime.Now); mySQL.AddField("addTime", DateTime.Now);
mySQL.AddField("editTime", DateTime.Now); mySQL.AddField("editTime", DateTime.Now);
db.CreateDb(mySQL); db.CreateDb(mySQL);
@ -64,7 +63,6 @@ namespace Itrycn_Project
/// <returns>返回大于0的数,表示设置成功,否则表示失败</returns> /// <returns>返回大于0的数,表示设置成功,否则表示失败</returns>
private static int SetSetting(string name ,string info) private static int SetSetting(string name ,string info)
{ {
DataProvider mydb = new DataProvider();
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType); IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1) if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
{ {

View File

@ -6,23 +6,20 @@ using System.Text;
namespace Itrycn_Project namespace Itrycn_Project
{ {
/// <summary> /// <summary>
/// 配置类,保存在运行期间会被改变的配置信息(本系统基于乘黄V2架构) /// 配置类,保存在文件中的配置信息(本系统基于乘黄V2架构)
/// </summary> /// </summary>
public static class Soft_Config public static class Public_Config
{ {
/// <summary>
/// 是否能关闭窗体。
/// </summary>
public static bool IsCanCloseForm = true;
/// <summary> /// <summary>
/// 在点击主窗口关闭按钮时,隐藏窗体(只有开启了托盘图标,本功能才能生效,此时需要通过托盘图标进行关闭)。 /// 在点击主窗口关闭按钮时,隐藏窗体(只有开启了托盘图标,本功能才能生效,此时需要通过托盘图标进行关闭)。
/// </summary> /// </summary>
public static bool HideByCloseBtn = true; public static bool HideByCloseBtn = false;
public static void LoadSetting() public static void LoadSetting()
{ {
//ryCommon.Storage Stor = new Storage(); ryCommon.Storage Stor = new ryCommon.Storage();
//Stor.SelectNodeBySet(); Stor.LoadFromFile(Soft_ConstInfo.UserDataFolder+"\\Setting.dat");
//LowCountTip = Stor.GetAttrValue("LowCountTip", true); Stor.SelectNodeBySet();
HideByCloseBtn = Stor.GetAttrValue("HideByCloseBtn", false);
//low_count = Stor.GetAttrValue("LowCount", 10); //low_count = Stor.GetAttrValue("LowCount", 10);
} }
} }

View File

@ -5,14 +5,24 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
using static ryCommonDb.DataProvider;
namespace Itrycn_Project namespace Itrycn_Project
{ {
/// <summary> /// <summary>
/// 配置类,保存在运行期间不会被改变的配置信息(本系统基于乘黄V2架构) /// 运行期间存储的变量,不会存储在文件中,只存储内存中.每次启动软件会初始化变量。
/// </summary> /// </summary>
public static class Soft_Info public static class Soft_MemInfo
{
/// <summary>
/// 是否能关闭窗体。
/// 设置本值为false,可以阻止窗口被手动关闭。
/// </summary>
public static bool IsCanCloseForm { get; set; } = true;
}
/// <summary>
/// 配置类,保存在运行期间不会被改变的配置信息(本系统基于乘黄V2架构)
/// 在运行期间请勿改动本类中的变量值。
/// </summary>
public static class Soft_ConstInfo
{ {
/// <summary> /// <summary>
/// 在线升级配置文件的url /// 在线升级配置文件的url
@ -39,7 +49,9 @@ namespace Itrycn_Project
/// </summary> /// </summary>
public const string QQ_Qun = "183161992"; public const string QQ_Qun = "183161992";
/// <summary> /// <summary>
/// 关于界面内容. /// 关于界面内容.支持以下变量
/// #softname#:软件名称
/// #ver#:版本号
/// </summary> /// </summary>
public const string AboutText = "#softname# #ver#"; public const string AboutText = "#softname# #ver#";
/// <summary> /// <summary>
@ -47,12 +59,16 @@ namespace Itrycn_Project
/// </summary> /// </summary>
public static string UserDataFolder = @"<app>\UserDb"; public static string UserDataFolder = @"<app>\UserDb";
/// <summary> /// <summary>
/// 自带配置文件夹,该相对路径设置,将在程序启动后转换
/// </summary>
public static string SysDataFolder = @"<app>\SysDb";
/// <summary>
/// 是否允许显示托盘图标 /// 是否允许显示托盘图标
/// </summary> /// </summary>
public static bool ShowTray { get; } = true; public const bool ShowTray = false;
/// <summary> /// <summary>
/// 是否显示捐赠方式 /// 是否显示捐赠方式
/// </summary> /// </summary>
public static bool DonateVisabled { get; } = true; public static bool DonateVisabled = false;
} }
} }

View File

@ -38,7 +38,7 @@
// //
this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95))))); this.BtnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnCancel.Location = new System.Drawing.Point(363, 310); this.BtnCancel.Location = new System.Drawing.Point(363, 374);
this.BtnCancel.Name = "BtnCancel"; this.BtnCancel.Name = "BtnCancel";
this.BtnCancel.Size = new System.Drawing.Size(65, 27); this.BtnCancel.Size = new System.Drawing.Size(65, 27);
this.BtnCancel.TabIndex = 5; this.BtnCancel.TabIndex = 5;
@ -50,7 +50,7 @@
// //
this.BtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.BtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnOK.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95))))); this.BtnOK.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnOK.Location = new System.Drawing.Point(292, 310); this.BtnOK.Location = new System.Drawing.Point(292, 374);
this.BtnOK.Name = "BtnOK"; this.BtnOK.Name = "BtnOK";
this.BtnOK.Size = new System.Drawing.Size(65, 27); this.BtnOK.Size = new System.Drawing.Size(65, 27);
this.BtnOK.TabIndex = 4; this.BtnOK.TabIndex = 4;
@ -61,7 +61,7 @@
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(8, 20); this.label1.Location = new System.Drawing.Point(4, 39);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12); this.label1.Size = new System.Drawing.Size(29, 12);
this.label1.TabIndex = 7; this.label1.TabIndex = 7;
@ -71,7 +71,7 @@
// //
this.txtName.BackColor = System.Drawing.Color.White; this.txtName.BackColor = System.Drawing.Color.White;
this.txtName.EmptyText = ""; this.txtName.EmptyText = "";
this.txtName.Location = new System.Drawing.Point(55, 12); this.txtName.Location = new System.Drawing.Point(51, 31);
this.txtName.MaxLength = 999999999; this.txtName.MaxLength = 999999999;
this.txtName.Multiline = false; this.txtName.Multiline = false;
this.txtName.Name = "txtName"; this.txtName.Name = "txtName";
@ -91,7 +91,7 @@
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(438, 347); this.ClientSize = new System.Drawing.Size(438, 411);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.txtName); this.Controls.Add(this.txtName);
this.Controls.Add(this.BtnCancel); this.Controls.Add(this.BtnCancel);

View File

@ -11,7 +11,7 @@ using System.Windows.Forms;
namespace Itrycn_Project.DbOp namespace Itrycn_Project.DbOp
{ {
public partial class FrmAdd : Form public partial class FrmAdd : RySkins.SKinForm
{ {
public ModalForm mr = null; public ModalForm mr = null;
public string tableName = "MainTable1"; public string tableName = "MainTable1";
@ -45,7 +45,7 @@ namespace Itrycn_Project.DbOp
{ {
if (txtName.Text == "") if (txtName.Text == "")
{ {
MessageBox.Show("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); RySkins.Msg.ShowMsg("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return; return;
} }
RyQuickSQL mySQL = new RyQuickSQL(tableName); RyQuickSQL mySQL = new RyQuickSQL(tableName);

View File

@ -11,7 +11,7 @@ using System.Windows.Forms;
namespace Itrycn_Project.DbOp namespace Itrycn_Project.DbOp
{ {
public partial class FrmView : Form public partial class FrmView : RySkins.SKinForm
{ {
string orderSQL = "order by addTime desc"; string orderSQL = "order by addTime desc";
string tableName = "MainTable1"; string tableName = "MainTable1";
@ -19,6 +19,8 @@ namespace Itrycn_Project.DbOp
public FrmView() public FrmView()
{ {
InitializeComponent(); InitializeComponent();
OlvName.AspectGetter = delegate (object x) { return ((ViewInfo)x).Name; };
OlvAddTime.AspectGetter = delegate (object x) { return ((ViewInfo)x).AddTimeStr; };
} }
#region #region
private void RySearch1_OnSearch(object sender, EventArgs e) private void RySearch1_OnSearch(object sender, EventArgs e)
@ -30,29 +32,29 @@ namespace Itrycn_Project.DbOp
private void CtlMyPage1_OnPageChange(object sender, EventArgs e) private void CtlMyPage1_OnPageChange(object sender, EventArgs e)
{ {
#region #region
tableModel1.Rows.Clear(); LvCbResult.ClearObjects();
tableModel1.Selections.Clear();
DataProvider mydb = new DataProvider(); DataProvider mydb = new DataProvider();
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType); IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
List<ViewInfo> list = new List<ViewInfo>();
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1) if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
{ {
DataSet ds = db.ReadData(ctlMyPage1.GetSQLText, ctlMyPage1.T_Parameters); DataSet ds = db.ReadData(ctlMyPage1.GetSQLText, ctlMyPage1.T_Parameters);
for (int i = 0; i < ds.Tables[0].Rows.Count; i++) for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{ {
DataRow row = ds.Tables[0].Rows[i]; DataRow row = ds.Tables[0].Rows[i];
XPTable.Models.Row itemList = new XPTable.Models.Row() list.Add(new ViewInfo()
{ {
Tag = row["id"].ToString() Id=row["id"].ToInt(),
}; Name = row["Name"].ToString(),
//需要修改此处 AddTime = row["AddTime"].ToDateTime()
//itemList.Cells.Add(new XPTable.Models.Cell(row[""].ToString()));//示例 }) ;
tableModel1.Rows.Add(itemList);
} }
} }
db.Free(); db.Free();
LvCbResult.AddObjects(list);
#endregion #endregion
} }
private void GetRow(string id, int index) private void GetRow(int id, int index)
{ {
#region #region
DataProvider mydb = new DataProvider(); DataProvider mydb = new DataProvider();
@ -63,9 +65,11 @@ namespace Itrycn_Project.DbOp
if (mydb.HaveData(ds)) if (mydb.HaveData(ds))
{ {
DataRow row = ds.Tables[0].Rows[0]; DataRow row = ds.Tables[0].Rows[0];
XPTable.Models.Row itemList = tableModel1.Rows[index]; var item=(ViewInfo) LvCbResult.GetModelObject(index);
//需要修改此处 item.Name = row["Name"].ToString();
//itemList.Cells[colName.Index].Text = row[TableProject.name].ToString(); //添加剩余的项目
//添加完毕
LvCbResult.UpdateObject(item);
} }
} }
db.Free(); db.Free();
@ -111,21 +115,21 @@ namespace Itrycn_Project.DbOp
private void BtnEdit_Click(object sender, EventArgs e) private void BtnEdit_Click(object sender, EventArgs e)
{ {
if (table1.SelectedItems.Length == 0) { return; } if (LvCbResult.SelectedObject == null) { return; }
string selectId = table1.SelectedItems[0].Tag.ToString(); var item = (ViewInfo)LvCbResult.SelectedObject;
int index = table1.SelectedItems[0].Index; var selectId = item.Id;
FrmAdd frm = new FrmAdd() FrmAdd frm = new FrmAdd()
{ {
Text = "修改"+ titleName, Text = "修改"+ titleName,
Icon = Icon, Icon = Icon,
isAdd = 0 isAdd = 0
}; };
frm.GetInfo(selectId); frm.GetInfo(selectId.ToString());
frm.mr = new ModalForm(this, frm); frm.mr = new ModalForm(this, frm);
frm.mr.OnDialogResult += new ModalForm.DialogResultHandler((object t, DialogResult dg) => { frm.mr.OnDialogResult += new ModalForm.DialogResultHandler((object t, DialogResult dg) => {
if (dg == DialogResult.OK) if (dg == DialogResult.OK)
{ {
GetRow(selectId, index); GetRow(selectId, LvCbResult.SelectedIndex);
} }
}); });
frm.mr.ShowModal(); frm.mr.ShowModal();
@ -133,18 +137,19 @@ namespace Itrycn_Project.DbOp
private void BtnDel_Click(object sender, EventArgs e) private void BtnDel_Click(object sender, EventArgs e)
{ {
if (table1.SelectedItems.Length == 0) { MessageBox.Show("请先选择要删除的项。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } if (LvCbResult.SelectedObject == null) { MessageBox.Show("请先选择要删除的项。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; }
string selectId = table1.SelectedItems[0].Tag.ToString(); var item = (ViewInfo)LvCbResult.SelectedObject;
if (MessageBox.Show("确定要删除该项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) var selectId = item.Id;
if (RySkins.Msg.ShowMsg("确定要删除该项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
{ {
return; return;
} }
DataProvider mydb = new DataProvider(); //DataProvider mydb = new DataProvider();
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType); IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1) if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
{ {
db.DelById(tableName, selectId); db.DelById(tableName, selectId.ToString());
tableModel1.Rows.RemoveAt(table1.SelectedItems[0].Index); LvCbResult.RemoveObject(item);
} }
} }
@ -172,4 +177,26 @@ namespace Itrycn_Project.DbOp
btnDel.PerformClick(); btnDel.PerformClick();
} }
} }
class ViewInfo
{
/// <summary>
/// id
/// </summary>
public int Id{ get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 添加时间
/// </summary>
public DateTime AddTime { get; set; }
/// <summary>
/// 添加时间字符串
/// </summary>
public string AddTimeStr
{
get { return AddTime.ToString("yyyy-MM-dd dddd HH:mm:ss"); }
}
}
} }

View File

@ -30,65 +30,66 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
this.rySearch1 = new ryControls.rySearch(); this.rySearch1 = new ryControls.rySearch();
this.table1 = new XPTable.Models.Table();
this.columnModel1 = new XPTable.Models.ColumnModel();
this.tableModel1 = new XPTable.Models.TableModel();
this.ctlMyPage1 = new MyPage.ctlMyPage();
this.btnDel = new ryControls.ButtonEx();
this.btnEdit = new ryControls.ButtonEx();
this.btnAdd = new ryControls.ButtonEx();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.contextMenuStrip1 = 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.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.table1)).BeginInit(); this.ctlMyPage1 = new MyPage.ctlMyPage();
this.btnDel = new ryControls.ButtonEx();
this.btnEdit = new ryControls.ButtonEx();
this.btnAdd = new ryControls.ButtonEx();
this.LvCbResult = new BrightIdeasSoftware.FastObjectListView();
this.OlvName = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.OlvAddTime = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.LvCbResult)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// rySearch1 // rySearch1
// //
this.rySearch1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244))))); this.rySearch1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
this.rySearch1.ButtonRoundBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
this.rySearch1.EmptyText = "请输入搜索内容"; this.rySearch1.EmptyText = "请输入搜索内容";
this.rySearch1.Location = new System.Drawing.Point(12, 12); this.rySearch1.Location = new System.Drawing.Point(12, 30);
this.rySearch1.Name = "rySearch1"; this.rySearch1.Name = "rySearch1";
this.rySearch1.Size = new System.Drawing.Size(329, 24); this.rySearch1.Size = new System.Drawing.Size(329, 24);
this.rySearch1.TabIndex = 28; this.rySearch1.TabIndex = 28;
this.rySearch1.OnSearch += new System.EventHandler(this.RySearch1_OnSearch); this.rySearch1.OnSearch += new System.EventHandler(this.RySearch1_OnSearch);
// //
// table1 // contextMenuStrip1
// //
this.table1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
| System.Windows.Forms.AnchorStyles.Left) this.ToolStripMenuItem,
| System.Windows.Forms.AnchorStyles.Right))); this.ToolStripMenuItem,
this.table1.ColumnModel = this.columnModel1; this.ToolStripMenuItem});
this.table1.ContextMenuStrip = this.contextMenuStrip1; this.contextMenuStrip1.Name = "contextMenuStrip1";
this.table1.EditStartAction = XPTable.Editors.EditStartAction.SingleClick; this.contextMenuStrip1.Size = new System.Drawing.Size(125, 70);
this.table1.EnableHeaderContextMenu = false;
this.table1.EnableToolTips = true;
this.table1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.table1.FullRowSelect = true;
this.table1.GridColor = System.Drawing.Color.Silver;
this.table1.GridLines = XPTable.Models.GridLines.Rows;
this.table1.GridLineStyle = XPTable.Models.GridLineStyle.Dash;
this.table1.HeaderFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.table1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.table1.Location = new System.Drawing.Point(12, 42);
this.table1.Name = "table1";
this.table1.NoItemsText = "当前还没有任何数据";
this.table1.Size = new System.Drawing.Size(1028, 551);
this.table1.TabIndex = 29;
this.table1.TableModel = this.tableModel1;
this.table1.Text = "table1";
this.table1.ToolTipShowAlways = true;
// //
// tableModel1 // 添加数据ToolStripMenuItem
// //
this.tableModel1.RowHeight = 25; this.ToolStripMenuItem.Name = "添加数据ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
this.ToolStripMenuItem.Text = "添加数据";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 修改数据ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "修改数据ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
this.ToolStripMenuItem.Text = "修改数据";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 删除数据ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "删除数据ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
this.ToolStripMenuItem.Text = "删除数据";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// ctlMyPage1 // ctlMyPage1
// //
this.ctlMyPage1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.ctlMyPage1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.ctlMyPage1.Location = new System.Drawing.Point(12, 595); this.ctlMyPage1.Location = new System.Drawing.Point(12, 637);
this.ctlMyPage1.Name = "ctlMyPage1"; this.ctlMyPage1.Name = "ctlMyPage1";
this.ctlMyPage1.PageSize = 50; this.ctlMyPage1.PageSize = 50;
this.ctlMyPage1.RecordCount = 0; this.ctlMyPage1.RecordCount = 0;
@ -108,8 +109,8 @@
// btnDel // btnDel
// //
this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnDel.ForeColor = System.Drawing.Color.White; this.btnDel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnDel.Location = new System.Drawing.Point(978, 12); this.btnDel.Location = new System.Drawing.Point(978, 30);
this.btnDel.Name = "btnDel"; this.btnDel.Name = "btnDel";
this.btnDel.Size = new System.Drawing.Size(62, 24); this.btnDel.Size = new System.Drawing.Size(62, 24);
this.btnDel.TabIndex = 40; this.btnDel.TabIndex = 40;
@ -120,8 +121,8 @@
// btnEdit // btnEdit
// //
this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnEdit.ForeColor = System.Drawing.Color.White; this.btnEdit.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnEdit.Location = new System.Drawing.Point(910, 12); this.btnEdit.Location = new System.Drawing.Point(910, 30);
this.btnEdit.Name = "btnEdit"; this.btnEdit.Name = "btnEdit";
this.btnEdit.Size = new System.Drawing.Size(62, 24); this.btnEdit.Size = new System.Drawing.Size(62, 24);
this.btnEdit.TabIndex = 39; this.btnEdit.TabIndex = 39;
@ -132,8 +133,8 @@
// btnAdd // btnAdd
// //
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnAdd.ForeColor = System.Drawing.Color.White; this.btnAdd.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnAdd.Location = new System.Drawing.Point(842, 12); this.btnAdd.Location = new System.Drawing.Point(842, 30);
this.btnAdd.Name = "btnAdd"; this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(62, 24); this.btnAdd.Size = new System.Drawing.Size(62, 24);
this.btnAdd.TabIndex = 38; this.btnAdd.TabIndex = 38;
@ -141,53 +142,60 @@
this.btnAdd.UseVisualStyleBackColor = true; this.btnAdd.UseVisualStyleBackColor = true;
this.btnAdd.Click += new System.EventHandler(this.BtnAdd_Click); this.btnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
// //
// contextMenuStrip1 // LvCbResult
// //
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.LvCbResult.AllColumns.Add(this.OlvName);
this.ToolStripMenuItem, this.LvCbResult.AllColumns.Add(this.OlvAddTime);
this.ToolStripMenuItem, this.LvCbResult.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
this.ToolStripMenuItem}); | System.Windows.Forms.AnchorStyles.Left)
this.contextMenuStrip1.Name = "contextMenuStrip1"; | System.Windows.Forms.AnchorStyles.Right)));
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 70); this.LvCbResult.CellEditUseWholeCell = false;
this.LvCbResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.OlvName,
this.OlvAddTime});
this.LvCbResult.Cursor = System.Windows.Forms.Cursors.Default;
this.LvCbResult.EmptyListMsg = "当前列表没有任何项";
this.LvCbResult.FullRowSelect = true;
this.LvCbResult.HideSelection = false;
this.LvCbResult.Location = new System.Drawing.Point(12, 60);
this.LvCbResult.Name = "LvCbResult";
this.LvCbResult.RowHeight = 25;
this.LvCbResult.ShowGroups = false;
this.LvCbResult.ShowItemToolTips = true;
this.LvCbResult.Size = new System.Drawing.Size(1028, 575);
this.LvCbResult.TabIndex = 85;
this.LvCbResult.UseCompatibleStateImageBehavior = false;
this.LvCbResult.UseFiltering = true;
this.LvCbResult.View = System.Windows.Forms.View.Details;
this.LvCbResult.VirtualMode = true;
// //
// 添加数据ToolStripMenuItem // OlvName
// //
this.ToolStripMenuItem.Name = "添加数据ToolStripMenuItem"; this.OlvName.Text = "名称";
this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.OlvName.Width = 200;
this.ToolStripMenuItem.Text = "添加数据";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 修改数据ToolStripMenuItem // OlvAddTime
// //
this.ToolStripMenuItem.Name = "修改数据ToolStripMenuItem"; this.OlvAddTime.Text = "时间";
this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.OlvAddTime.Width = 200;
this.ToolStripMenuItem.Text = "修改数据";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 删除数据ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "删除数据ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.ToolStripMenuItem.Text = "删除数据";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// FrmView // FrmView
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1052, 625); this.ClientSize = new System.Drawing.Size(1052, 667);
this.Controls.Add(this.LvCbResult);
this.Controls.Add(this.btnDel); this.Controls.Add(this.btnDel);
this.Controls.Add(this.btnEdit); this.Controls.Add(this.btnEdit);
this.Controls.Add(this.btnAdd); this.Controls.Add(this.btnAdd);
this.Controls.Add(this.ctlMyPage1); this.Controls.Add(this.ctlMyPage1);
this.Controls.Add(this.table1);
this.Controls.Add(this.rySearch1); this.Controls.Add(this.rySearch1);
this.Name = "FrmView"; this.Name = "FrmView";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "浏览"; this.Text = "浏览";
this.Load += new System.EventHandler(this.FrmView_Load); this.Load += new System.EventHandler(this.FrmView_Load);
((System.ComponentModel.ISupportInitialize)(this.table1)).EndInit();
this.contextMenuStrip1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.LvCbResult)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@ -195,10 +203,7 @@
#endregion #endregion
private ryControls.rySearch rySearch1; private ryControls.rySearch rySearch1;
private XPTable.Models.Table table1;
private MyPage.ctlMyPage ctlMyPage1; private MyPage.ctlMyPage ctlMyPage1;
private XPTable.Models.TableModel tableModel1;
private XPTable.Models.ColumnModel columnModel1;
private ryControls.ButtonEx btnDel; private ryControls.ButtonEx btnDel;
private ryControls.ButtonEx btnEdit; private ryControls.ButtonEx btnEdit;
private ryControls.ButtonEx btnAdd; private ryControls.ButtonEx btnAdd;
@ -206,5 +211,8 @@
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 BrightIdeasSoftware.FastObjectListView LvCbResult;
private BrightIdeasSoftware.OLVColumn OlvName;
private BrightIdeasSoftware.OLVColumn OlvAddTime;
} }
} }

View File

@ -117,13 +117,7 @@
<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="columnModel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>141, 21</value>
</metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>269, 21</value> <value>269, 21</value>
</metadata> </metadata>
<metadata name="tableModel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>22, 16</value>
</metadata>
</root> </root>

View File

@ -51,9 +51,9 @@
this.pnlTopLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182))))); this.pnlTopLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
this.pnlTopLogo.Controls.Add(this.lblTitle); this.pnlTopLogo.Controls.Add(this.lblTitle);
this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top; this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlTopLogo.Location = new System.Drawing.Point(0, 0); this.pnlTopLogo.Location = new System.Drawing.Point(1, 27);
this.pnlTopLogo.Name = "pnlTopLogo"; this.pnlTopLogo.Name = "pnlTopLogo";
this.pnlTopLogo.Size = new System.Drawing.Size(493, 59); this.pnlTopLogo.Size = new System.Drawing.Size(507, 59);
this.pnlTopLogo.TabIndex = 8; this.pnlTopLogo.TabIndex = 8;
// //
// lblTitle // lblTitle
@ -70,6 +70,7 @@
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Location = new System.Drawing.Point(12, 67); this.label1.Location = new System.Drawing.Point(12, 67);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 12); this.label1.Size = new System.Drawing.Size(35, 12);
@ -87,6 +88,7 @@
// lblVisitUrl // lblVisitUrl
// //
this.lblVisitUrl.AutoSize = true; this.lblVisitUrl.AutoSize = true;
this.lblVisitUrl.BackColor = System.Drawing.Color.Transparent;
this.lblVisitUrl.Cursor = System.Windows.Forms.Cursors.Hand; this.lblVisitUrl.Cursor = System.Windows.Forms.Cursors.Hand;
this.lblVisitUrl.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblVisitUrl.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblVisitUrl.ForeColor = System.Drawing.Color.Blue; this.lblVisitUrl.ForeColor = System.Drawing.Color.Blue;
@ -100,6 +102,7 @@
// LblQQ_Qun // LblQQ_Qun
// //
this.LblQQ_Qun.AutoSize = true; this.LblQQ_Qun.AutoSize = true;
this.LblQQ_Qun.BackColor = System.Drawing.Color.Transparent;
this.LblQQ_Qun.Cursor = System.Windows.Forms.Cursors.Hand; this.LblQQ_Qun.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblQQ_Qun.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblQQ_Qun.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblQQ_Qun.ForeColor = System.Drawing.Color.Blue; this.LblQQ_Qun.ForeColor = System.Drawing.Color.Blue;
@ -122,6 +125,7 @@
// label5 // label5
// //
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Location = new System.Drawing.Point(193, 67); this.label5.Location = new System.Drawing.Point(193, 67);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(35, 12); this.label5.Size = new System.Drawing.Size(35, 12);
@ -141,6 +145,7 @@
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.label3.Location = new System.Drawing.Point(13, 297); this.label3.Location = new System.Drawing.Point(13, 297);
this.label3.Name = "label3"; this.label3.Name = "label3";
@ -151,6 +156,7 @@
// label6 // label6
// //
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(100, 90); this.label6.Location = new System.Drawing.Point(100, 90);
this.label6.Name = "label6"; this.label6.Name = "label6";
@ -163,7 +169,7 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(493, 318); this.ClientSize = new System.Drawing.Size(509, 336);
this.Controls.Add(this.label6); this.Controls.Add(this.label6);
this.Controls.Add(this.label3); this.Controls.Add(this.label3);
this.Controls.Add(this.pictureBox1); this.Controls.Add(this.pictureBox1);

View File

@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace Itrycn_Project namespace Itrycn_Project
{ {
public partial class FrmAbout : Form public partial class FrmAbout : RySkins.SKinForm
{ {
public FrmAbout() public FrmAbout()
{ {
@ -18,14 +18,14 @@ namespace Itrycn_Project
private void FrmAbout_Load(object sender, EventArgs e) private void FrmAbout_Load(object sender, EventArgs e)
{ {
lblTitle.Text = Soft_Info.Soft_Title + " V" + ryCommon.RySoft.VersionStr; lblTitle.Text = Soft_ConstInfo.Soft_Title + " V" + ryCommon.RySoft.VersionStr;
LblQQ_Qun.Text = Soft_Info.QQ_Qun; LblQQ_Qun.Text = Soft_ConstInfo.QQ_Qun;
if (Soft_Info.Soft_Url.Length == 0) { lblVisitUrl.Enabled = false; } if (Soft_ConstInfo.Soft_Url.Length == 0) { lblVisitUrl.Enabled = false; }
} }
private void LblVisitUrl_Click(object sender, EventArgs e) private void LblVisitUrl_Click(object sender, EventArgs e)
{ {
ryCommon.RyFiles.OpenUrl(Soft_Info.Soft_Url); ryCommon.RyFiles.OpenUrl(Soft_ConstInfo.Soft_Url);
} }
private void BtnCancel_Click(object sender, EventArgs e) private void BtnCancel_Click(object sender, EventArgs e)

View File

@ -31,20 +31,6 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmStart));
System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("144554545");
System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("12112");
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("1121");
System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("112");
System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("12");
System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem("2121");
System.Windows.Forms.ListViewItem listViewItem7 = new System.Windows.Forms.ListViewItem("2112");
System.Windows.Forms.ListViewItem listViewItem8 = new System.Windows.Forms.ListViewItem("1212");
System.Windows.Forms.ListViewItem listViewItem9 = new System.Windows.Forms.ListViewItem("2112");
System.Windows.Forms.ListViewItem listViewItem10 = new System.Windows.Forms.ListViewItem("1212");
System.Windows.Forms.ListViewItem listViewItem11 = new System.Windows.Forms.ListViewItem("2112");
System.Windows.Forms.ListViewItem listViewItem12 = new System.Windows.Forms.ListViewItem("1212");
System.Windows.Forms.ListViewItem listViewItem13 = new System.Windows.Forms.ListViewItem("1244");
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();
@ -55,17 +41,9 @@
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.rySearch1 = new ryControls.rySearch();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.iconViewEx1 = new ryControls.IconViewEx();
this.panel1 = new System.Windows.Forms.Panel();
this.MenuTray.SuspendLayout(); this.MenuTray.SuspendLayout();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.chromeTabControl1.SuspendLayout(); this.chromeTabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// notifyIcon1 // notifyIcon1
@ -100,9 +78,9 @@
// //
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(1, 27);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(789, 25); this.menuStrip1.Size = new System.Drawing.Size(787, 25);
this.menuStrip1.TabIndex = 2; this.menuStrip1.TabIndex = 2;
this.menuStrip1.Text = "menuStrip1"; this.menuStrip1.Text = "menuStrip1";
// //
@ -139,12 +117,12 @@
this.chromeTabControl1.Controls.Add(this.tabPage1); this.chromeTabControl1.Controls.Add(this.tabPage1);
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default; this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25); this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25);
this.chromeTabControl1.Location = new System.Drawing.Point(1, 28); this.chromeTabControl1.Location = new System.Drawing.Point(1, 55);
this.chromeTabControl1.Name = "chromeTabControl1"; this.chromeTabControl1.Name = "chromeTabControl1";
this.chromeTabControl1.SelectedIndex = 0; this.chromeTabControl1.SelectedIndex = 0;
this.chromeTabControl1.ShowAddButton = false; this.chromeTabControl1.ShowAddButton = false;
this.chromeTabControl1.ShowCloseButton = false; this.chromeTabControl1.ShowCloseButton = false;
this.chromeTabControl1.Size = new System.Drawing.Size(787, 506); this.chromeTabControl1.Size = new System.Drawing.Size(787, 533);
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.chromeTabControl1.TabContextMenuStrip = null; this.chromeTabControl1.TabContextMenuStrip = null;
this.chromeTabControl1.TabIndex = 0; this.chromeTabControl1.TabIndex = 0;
@ -152,106 +130,19 @@
// //
// tabPage1 // tabPage1
// //
this.tabPage1.Controls.Add(this.panel1);
this.tabPage1.Controls.Add(this.textBox1);
this.tabPage1.Controls.Add(this.button2);
this.tabPage1.Controls.Add(this.button1);
this.tabPage1.Controls.Add(this.iconViewEx1);
this.tabPage1.Location = new System.Drawing.Point(1, 29); this.tabPage1.Location = new System.Drawing.Point(1, 29);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(785, 476); this.tabPage1.Size = new System.Drawing.Size(785, 503);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "首页"; this.tabPage1.Text = "首页";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
// //
// rySearch1
//
this.rySearch1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
this.rySearch1.EmptyText = "";
this.rySearch1.Location = new System.Drawing.Point(25, 61);
this.rySearch1.Name = "rySearch1";
this.rySearch1.Size = new System.Drawing.Size(261, 41);
this.rySearch1.TabIndex = 4;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(447, 45);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(275, 21);
this.textBox1.TabIndex = 3;
//
// button2
//
this.button2.Location = new System.Drawing.Point(276, 31);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(112, 38);
this.button2.TabIndex = 2;
this.button2.Text = "button2";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(49, 31);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(112, 38);
this.button1.TabIndex = 1;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// iconViewEx1
//
this.iconViewEx1.BadgeListImage = ((System.Collections.Generic.List<System.Drawing.Image>)(resources.GetObject("iconViewEx1.BadgeListImage")));
this.iconViewEx1.HideSelection = false;
this.iconViewEx1.Icon = ((System.Drawing.Image)(resources.GetObject("iconViewEx1.Icon")));
this.iconViewEx1.IconSize = 64;
this.iconViewEx1.IsDrawGridLines = false;
this.iconViewEx1.IsDrawIcon = true;
this.iconViewEx1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
listViewItem1,
listViewItem2,
listViewItem3,
listViewItem4,
listViewItem5,
listViewItem6,
listViewItem7,
listViewItem8,
listViewItem9,
listViewItem10,
listViewItem11,
listViewItem12,
listViewItem13});
this.iconViewEx1.Location = new System.Drawing.Point(142, 107);
this.iconViewEx1.MultiSelect = false;
this.iconViewEx1.Name = "iconViewEx1";
this.iconViewEx1.OwnerDraw = true;
this.iconViewEx1.SelectedBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(195)))), ((int)(((byte)(101)))));
this.iconViewEx1.SelectedEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(236)))), ((int)(((byte)(181)))));
this.iconViewEx1.SelectedForeColor = System.Drawing.Color.Black;
this.iconViewEx1.SelectedStartBackColor = System.Drawing.Color.LightYellow;
this.iconViewEx1.Size = new System.Drawing.Size(451, 341);
this.iconViewEx1.TabIndex = 0;
this.iconViewEx1.TextHeight = 20;
this.iconViewEx1.TileSize = new System.Drawing.Size(100, 100);
this.iconViewEx1.UseCompatibleStateImageBehavior = false;
this.iconViewEx1.View = System.Windows.Forms.View.Tile;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Gainsboro;
this.panel1.Controls.Add(this.rySearch1);
this.panel1.Location = new System.Drawing.Point(73, 163);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(388, 237);
this.panel1.TabIndex = 5;
//
// FrmStart // FrmStart
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(789, 538); this.ClientSize = new System.Drawing.Size(789, 592);
this.Controls.Add(this.menuStrip1); this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.chromeTabControl1); this.Controls.Add(this.chromeTabControl1);
this.Name = "FrmStart"; this.Name = "FrmStart";
@ -264,9 +155,6 @@
this.menuStrip1.ResumeLayout(false); this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout(); this.menuStrip1.PerformLayout();
this.chromeTabControl1.ResumeLayout(false); this.chromeTabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -284,11 +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.IconViewEx iconViewEx1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox textBox1;
private ryControls.rySearch rySearch1;
private System.Windows.Forms.Panel panel1;
} }
} }

View File

@ -1,5 +1,6 @@
using Itrycn_Project; using Itrycn_Project;
using ryCommon; using ryCommon;
using ryCommonDb;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
@ -11,19 +12,19 @@ using System.Windows.Forms;
namespace Itrycn_Project2 namespace Itrycn_Project2
{ {
public partial class FrmStart : Form public partial class FrmStart : RySkins.SKinForm
{ {
string[] prog_args; readonly string[] prog_args;
public FrmStart(string[] args) public FrmStart(string[] args)
{ {
InitializeComponent(); InitializeComponent();
prog_args = args; prog_args = args;
//配置软件信息 //配置软件信息
notifyIcon1.Text = Soft_Info.Soft_Title; notifyIcon1.Text = Soft_ConstInfo.Soft_Title;
Text = Soft_Info.Soft_Title + " V" + RySoft.VersionStr; Text = Soft_ConstInfo.Soft_Title + " V" + RySoft.VersionStr;
if (!Soft_Info.ShowTray) { notifyIcon1.Visible = false; } if (!Soft_ConstInfo.ShowTray) { notifyIcon1.Visible = false; }
if (!Soft_Info.DonateVisabled) { ToolStripMenuItem.Text = "关于"; } if (!Soft_ConstInfo.DonateVisabled) { ToolStripMenuItem.Text = "关于"; }
if (Soft_Info.Soft_Url.Length == 0) { ToolStripMenuItem.PerformClick(); } if (Soft_ConstInfo.Soft_Url.Length == 0) { ToolStripMenuItem.PerformClick(); }
notifyIcon1.Icon = Icon; notifyIcon1.Icon = Icon;
} }
@ -43,29 +44,29 @@ namespace Itrycn_Project2
private void FrmStart_Shown(object sender, EventArgs e) private void FrmStart_Shown(object sender, EventArgs e)
{ {
ryCommon.Ini ini = new Ini(Soft_Info.UserDataFolder + "\\Win.dat"); ryCommon.Ini ini = new Ini(Soft_ConstInfo.UserDataFolder + "\\Win.dat");
ini.WriteIni(Soft_Info.Soft_Id, "hwnd", Handle.ToInt32()); ini.WriteIni(Soft_ConstInfo.Soft_Id, "hwnd", Handle.ToInt32());
if (prog_args.Length >= 1) if (prog_args.Length >= 1)
{ {
//如果是自启动,并且开启了右下角托盘图标,则隐藏自身。 //如果是自启动,并且开启了右下角托盘图标,则隐藏自身。
if (prog_args[0] == Soft_Info.Soft_Pram && Soft_Info.ShowTray) if (prog_args[0] == Soft_ConstInfo.Soft_Pram && Soft_ConstInfo.ShowTray)
this.Hide(); this.Hide();
} }
} }
private void FrmStart_FormClosing(object sender, FormClosingEventArgs e) private void FrmStart_FormClosing(object sender, FormClosingEventArgs e)
{ {
if (Soft_Info.ShowTray && Soft_Config.HideByCloseBtn && e.CloseReason== CloseReason.UserClosing) if (Soft_ConstInfo.ShowTray && Public_Config.HideByCloseBtn && e.CloseReason== CloseReason.UserClosing)
{ {
e.Cancel = true; e.Cancel = true;
this.Hide(); this.Hide();
notifyIcon1.ShowBalloonTip(3000, Soft_Info.Soft_Title, "软件已经最小化到此处,请右击托盘图标进行关闭。", ToolTipIcon.Info); notifyIcon1.ShowBalloonTip(3000, Soft_ConstInfo.Soft_Title, "软件已经最小化到此处,请右击托盘图标进行关闭。", ToolTipIcon.Info);
return; return;
} }
if (!Soft_Config.IsCanCloseForm) if (!Soft_MemInfo.IsCanCloseForm)
{ {
e.Cancel = true; e.Cancel = true;
MessageBox.Show("当前还有操作正在运行,请稍后关闭软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); RySkins.Msg.ShowMsg("当前还有操作正在运行,请稍后关闭软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
} }
} }
protected override void WndProc(ref System.Windows.Forms.Message msg) protected override void WndProc(ref System.Windows.Forms.Message msg)
@ -107,7 +108,7 @@ namespace Itrycn_Project2
private void ToolStripMenuItem_Click(object sender, EventArgs e) private void ToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (Soft_Info.DonateVisabled) if (Soft_ConstInfo.DonateVisabled)
{ {
FrmAbout frm = new FrmAbout(); FrmAbout frm = new FrmAbout();
frm.ShowDialog(); frm.ShowDialog();
@ -115,47 +116,39 @@ namespace Itrycn_Project2
} }
else else
{ {
MessageBox.Show(Soft_Info.AboutText.Replace("#softname#", Soft_Info.Soft_Title).Replace("#ver#", "V" + RySoft.VersionStr), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
RySkins.Msg.ShowMsg(Soft_ConstInfo.AboutText.Replace("#softname#", Soft_ConstInfo.Soft_Title).Replace("#ver#", "V" + RySoft.VersionStr), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
} }
} }
private void ToolStripMenuItem_Click(object sender, EventArgs e) private void ToolStripMenuItem_Click(object sender, EventArgs e)
{ {
ryCommon.RyFiles.OpenUrl(Soft_Info.Soft_Url); ryCommon.RyFiles.OpenUrl(Soft_ConstInfo.Soft_Url);
} }
private void FrmStart_Load(object sender, EventArgs e) private void FrmStart_Load(object sender, EventArgs e)
{ {
RyFiles.AddDropDrag(tabPage1.Handle); RyFiles.AddDropDrag(tabPage1.Handle);
Itrycn_Project.Itrycn_Db.CreateTable(); //Itrycn_Project.Itrycn_Db.CreateTable();
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Soft_Info.Update_Url); //var dbver = Itrycn_Db.GetDbVer();
//if(dbver==1) //初始版本,并是当前要求的数据库
//{
//}
//else
//{
// MessageBox.Show("不支持当前数据库版本,这可能是以下原因导致的:\r\n1.数据库已损坏;'\r\n2.当前数据库是由新版软件创建的(请更新软件后重试)。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
// Application.Exit();
// return;
//}
//IDbInterface db = new SQLiteDataProvider();
//if (db.ConnDb(@"E:\My Datas\毕方项目\C#\ryProcessManager\Bin\Debug\UserDb\MyDb.dat|ry3H3Db") == 1)
//{
//}
//db.Free();
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Soft_ConstInfo.Update_Url);
update.CheckUpdate(); update.CheckUpdate();
var dbver = Itrycn_Db.GetDbVer();
if(dbver==1) //初始版本,并是当前要求的数据库
{
}
else
{
MessageBox.Show("不支持当前数据库版本,这可能是以下原因导致的:\r\n1.数据库已损坏;'\r\n2.当前数据库是由新版软件创建的(请更新软件后重试)。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Application.Exit();
return;
}
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("这是一个测试", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void button2_Click(object sender, EventArgs e)
{
//var point= button1.PointToScreen(button1.Location);
// ryCommon.Auto.LeftClick(point.X+5, point.Y+5);
textBox1.Focus();
Auto.GetRect(Handle,out var size);
MessageBox.Show(size.ToString());
} }
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Itrycn_Project2
{
public partial class FrmTest : MGdu.WinFormUI.GMForm
{
public FrmTest()
{
InitializeComponent();
}
}
}

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<PublishUrlHistory />
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>zh-CN</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>

View File

@ -27,7 +27,7 @@
<BootstrapperEnabled>true</BootstrapperEnabled> <BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
@ -59,14 +59,11 @@
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
<Reference Include="XPTable">
<HintPath>..\..\Bin\Debug\CommonControls\.NET4\XPTable.dll</HintPath>
</Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="clsForm.cs" /> <Compile Include="clsForm.cs" />
<Compile Include="Config\Itrycn_Db.cs" /> <Compile Include="Config\Itrycn_Db.cs" />
<Compile Include="Config\Soft_Config.cs" /> <Compile Include="Config\Public_Config.cs" />
<Compile Include="DbOp\FrmAdd.cs"> <Compile Include="DbOp\FrmAdd.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -91,12 +88,6 @@
<Compile Include="FrmStart.Designer.cs"> <Compile Include="FrmStart.Designer.cs">
<DependentUpon>FrmStart.cs</DependentUpon> <DependentUpon>FrmStart.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmTest.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmTest.Designer.cs">
<DependentUpon>FrmTest.cs</DependentUpon>
</Compile>
<Compile Include="OTools\FrmScan.cs"> <Compile Include="OTools\FrmScan.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -118,6 +109,26 @@
<Compile Include="Config\Soft_Info.cs" /> <Compile Include="Config\Soft_Info.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SkinForms\FrmMessageBox.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SkinForms\FrmMessageBox.Designer.cs">
<DependentUpon>FrmMessageBox.cs</DependentUpon>
</Compile>
<Compile Include="SkinForms\Msg.cs" />
<Compile Include="SkinForms\SKinForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SkinForms\SKinForm.Designer.cs">
<DependentUpon>SKinForm.cs</DependentUpon>
</Compile>
<Compile Include="SkinForms\SkinMdiForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SkinForms\SkinMdiForm.Designer.cs">
<DependentUpon>SkinMdiForm.cs</DependentUpon>
</Compile>
<Compile Include="SkinForms\ThemeForm.cs" />
<EmbeddedResource Include="DbOp\FrmAdd.resx"> <EmbeddedResource Include="DbOp\FrmAdd.resx">
<DependentUpon>FrmAdd.cs</DependentUpon> <DependentUpon>FrmAdd.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@ -130,9 +141,6 @@
<EmbeddedResource Include="FrmStart.resx"> <EmbeddedResource Include="FrmStart.resx">
<DependentUpon>FrmStart.cs</DependentUpon> <DependentUpon>FrmStart.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmTest.resx">
<DependentUpon>FrmTest.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OTools\FrmScan.resx"> <EmbeddedResource Include="OTools\FrmScan.resx">
<DependentUpon>FrmScan.cs</DependentUpon> <DependentUpon>FrmScan.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@ -152,6 +160,15 @@
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
</Compile> </Compile>
<EmbeddedResource Include="SkinForms\FrmMessageBox.resx">
<DependentUpon>FrmMessageBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SkinForms\SKinForm.resx">
<DependentUpon>SKinForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SkinForms\SkinMdiForm.resx">
<DependentUpon>SkinMdiForm.cs</DependentUpon>
</EmbeddedResource>
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>
@ -175,10 +192,6 @@
<Project>{9eca3a84-8545-4c4d-84d6-d23e3bdf2d90}</Project> <Project>{9eca3a84-8545-4c4d-84d6-d23e3bdf2d90}</Project>
<Name>ryControlsV4</Name> <Name>ryControlsV4</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\RyPrint\RyPrint.csproj">
<Project>{B6784652-825A-482C-8A21-08E2539AF2BF}</Project>
<Name>RyPrint</Name>
</ProjectReference>
<ProjectReference Include="..\ryUpdate\ryUpdateV4.csproj"> <ProjectReference Include="..\ryUpdate\ryUpdateV4.csproj">
<Project>{11a63e24-0257-4c54-a109-f1a609a52a62}</Project> <Project>{11a63e24-0257-4c54-a109-f1a609a52a62}</Project>
<Name>ryUpdateV4</Name> <Name>ryUpdateV4</Name>

View File

@ -41,9 +41,28 @@
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.BtnScan = new ryControls.ButtonEx();
this.LvCbResult = new BrightIdeasSoftware.FastObjectListView();
this.OlvGameName = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.OlvFileName = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.OlvAddTime = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.TabLogs = new System.Windows.Forms.TabPage();
this.LvLogs = new BrightIdeasSoftware.FastObjectListView();
this.OlvLog = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.OlvLogTime = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.TsState = new System.Windows.Forms.ToolStripStatusLabel();
this.MenuLogs = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.MenuTray.SuspendLayout(); this.MenuTray.SuspendLayout();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.chromeTabControl1.SuspendLayout(); this.chromeTabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.LvCbResult)).BeginInit();
this.TabLogs.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.LvLogs)).BeginInit();
this.statusStrip1.SuspendLayout();
this.MenuLogs.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// notifyIcon1 // notifyIcon1
@ -78,9 +97,9 @@
// //
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(1, 27);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(789, 25); this.menuStrip1.Size = new System.Drawing.Size(802, 25);
this.menuStrip1.TabIndex = 2; this.menuStrip1.TabIndex = 2;
this.menuStrip1.Text = "menuStrip1"; this.menuStrip1.Text = "menuStrip1";
// //
@ -115,14 +134,15 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.chromeTabControl1.BackTabPageImage = null; this.chromeTabControl1.BackTabPageImage = null;
this.chromeTabControl1.Controls.Add(this.tabPage1); this.chromeTabControl1.Controls.Add(this.tabPage1);
this.chromeTabControl1.Controls.Add(this.TabLogs);
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default; this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25); this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25);
this.chromeTabControl1.Location = new System.Drawing.Point(1, 28); this.chromeTabControl1.Location = new System.Drawing.Point(1, 55);
this.chromeTabControl1.Name = "chromeTabControl1"; this.chromeTabControl1.Name = "chromeTabControl1";
this.chromeTabControl1.SelectedIndex = 0; this.chromeTabControl1.SelectedIndex = 0;
this.chromeTabControl1.ShowAddButton = false; this.chromeTabControl1.ShowAddButton = false;
this.chromeTabControl1.ShowCloseButton = false; this.chromeTabControl1.ShowCloseButton = false;
this.chromeTabControl1.Size = new System.Drawing.Size(787, 506); this.chromeTabControl1.Size = new System.Drawing.Size(802, 513);
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.chromeTabControl1.TabContextMenuStrip = null; this.chromeTabControl1.TabContextMenuStrip = null;
this.chromeTabControl1.TabIndex = 0; this.chromeTabControl1.TabIndex = 0;
@ -130,24 +150,160 @@
// //
// tabPage1 // tabPage1
// //
this.tabPage1.Controls.Add(this.BtnScan);
this.tabPage1.Controls.Add(this.LvCbResult);
this.tabPage1.Location = new System.Drawing.Point(1, 29); this.tabPage1.Location = new System.Drawing.Point(1, 29);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(785, 476); this.tabPage1.Size = new System.Drawing.Size(800, 483);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "首页"; this.tabPage1.Text = "首页";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
// //
// FrmStart // BtnScan
//
this.BtnScan.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnScan.Location = new System.Drawing.Point(3, 6);
this.BtnScan.Name = "BtnScan";
this.BtnScan.Size = new System.Drawing.Size(80, 35);
this.BtnScan.TabIndex = 85;
this.BtnScan.Text = "扫描";
this.BtnScan.UseVisualStyleBackColor = true;
this.BtnScan.Click += new System.EventHandler(this.BtnScan_Click);
//
// LvCbResult
//
this.LvCbResult.AllColumns.Add(this.OlvGameName);
this.LvCbResult.AllColumns.Add(this.OlvFileName);
this.LvCbResult.AllColumns.Add(this.OlvAddTime);
this.LvCbResult.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.LvCbResult.CellEditUseWholeCell = false;
this.LvCbResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.OlvGameName,
this.OlvFileName,
this.OlvAddTime});
this.LvCbResult.Cursor = System.Windows.Forms.Cursors.Default;
this.LvCbResult.EmptyListMsg = "当前列表没有任何项";
this.LvCbResult.FullRowSelect = true;
this.LvCbResult.HideSelection = false;
this.LvCbResult.Location = new System.Drawing.Point(3, 47);
this.LvCbResult.Name = "LvCbResult";
this.LvCbResult.RowHeight = 25;
this.LvCbResult.ShowGroups = false;
this.LvCbResult.ShowItemToolTips = true;
this.LvCbResult.Size = new System.Drawing.Size(794, 433);
this.LvCbResult.TabIndex = 84;
this.LvCbResult.UseCompatibleStateImageBehavior = false;
this.LvCbResult.UseFiltering = true;
this.LvCbResult.View = System.Windows.Forms.View.Details;
this.LvCbResult.VirtualMode = true;
//
// OlvGameName
//
this.OlvGameName.Text = "游戏名";
this.OlvGameName.Width = 200;
//
// OlvFileName
//
this.OlvFileName.Text = "文件名";
this.OlvFileName.Width = 180;
//
// OlvAddTime
//
this.OlvAddTime.Text = "提交时间";
this.OlvAddTime.Width = 200;
//
// TabLogs
//
this.TabLogs.Controls.Add(this.LvLogs);
this.TabLogs.Location = new System.Drawing.Point(1, 29);
this.TabLogs.Name = "TabLogs";
this.TabLogs.Padding = new System.Windows.Forms.Padding(3);
this.TabLogs.Size = new System.Drawing.Size(800, 464);
this.TabLogs.TabIndex = 1;
this.TabLogs.Text = "日志";
this.TabLogs.UseVisualStyleBackColor = true;
//
// LvLogs
//
this.LvLogs.AllColumns.Add(this.OlvLog);
this.LvLogs.AllColumns.Add(this.OlvLogTime);
this.LvLogs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.LvLogs.CellEditUseWholeCell = false;
this.LvLogs.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.OlvLog,
this.OlvLogTime});
this.LvLogs.Cursor = System.Windows.Forms.Cursors.Default;
this.LvLogs.EmptyListMsg = "当前列表没有任何项";
this.LvLogs.FullRowSelect = true;
this.LvLogs.HideSelection = false;
this.LvLogs.Location = new System.Drawing.Point(3, 3);
this.LvLogs.Name = "LvLogs";
this.LvLogs.RowHeight = 25;
this.LvLogs.ShowGroups = false;
this.LvLogs.ShowItemToolTips = true;
this.LvLogs.Size = new System.Drawing.Size(794, 458);
this.LvLogs.TabIndex = 85;
this.LvLogs.UseCompatibleStateImageBehavior = false;
this.LvLogs.UseFiltering = true;
this.LvLogs.View = System.Windows.Forms.View.Details;
this.LvLogs.VirtualMode = true;
//
// OlvLog
//
this.OlvLog.Text = "日志";
this.OlvLog.Width = 400;
//
// OlvLogTime
//
this.OlvLogTime.Text = "日志时间";
this.OlvLogTime.Width = 180;
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.TsState});
this.statusStrip1.Location = new System.Drawing.Point(1, 573);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(802, 22);
this.statusStrip1.TabIndex = 3;
this.statusStrip1.Text = "statusStrip1";
//
// TsState
//
this.TsState.Name = "TsState";
this.TsState.Size = new System.Drawing.Size(83, 17);
this.TsState.Text = "状态:准备就绪";
//
// MenuLogs
//
this.MenuLogs.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem});
this.MenuLogs.Name = "MenuLogs";
this.MenuLogs.Size = new System.Drawing.Size(149, 26);
//
// 复制日志信息ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "复制日志信息ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
this.ToolStripMenuItem.Text = "复制日志信息";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// FrmScan
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(789, 538); this.ClientSize = new System.Drawing.Size(804, 596);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.menuStrip1); this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.chromeTabControl1); this.Controls.Add(this.chromeTabControl1);
this.Name = "FrmStart"; this.Name = "FrmScan";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmStart"; this.Text = "扫描";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmStart_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmStart_FormClosing);
this.Load += new System.EventHandler(this.FrmStart_Load); this.Load += new System.EventHandler(this.FrmStart_Load);
this.Shown += new System.EventHandler(this.FrmStart_Shown); this.Shown += new System.EventHandler(this.FrmStart_Shown);
@ -155,6 +311,13 @@
this.menuStrip1.ResumeLayout(false); this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout(); this.menuStrip1.PerformLayout();
this.chromeTabControl1.ResumeLayout(false); this.chromeTabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.LvCbResult)).EndInit();
this.TabLogs.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.LvLogs)).EndInit();
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.MenuLogs.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -172,5 +335,18 @@
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 BrightIdeasSoftware.FastObjectListView LvCbResult;
private BrightIdeasSoftware.OLVColumn OlvGameName;
private BrightIdeasSoftware.OLVColumn OlvFileName;
private BrightIdeasSoftware.OLVColumn OlvAddTime;
private ryControls.ButtonEx BtnScan;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripStatusLabel TsState;
private System.Windows.Forms.TabPage TabLogs;
private BrightIdeasSoftware.FastObjectListView LvLogs;
private BrightIdeasSoftware.OLVColumn OlvLog;
private BrightIdeasSoftware.OLVColumn OlvLogTime;
private System.Windows.Forms.ContextMenuStrip MenuLogs;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
} }
} }

View File

@ -7,11 +7,12 @@ using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
namespace Itrycn_Project2 namespace Itrycn_Project2
{ {
public partial class FrmScan : Form public partial class FrmScan : RySkins.SKinForm
{ {
string[] prog_args; string[] prog_args;
public FrmScan(string[] args) public FrmScan(string[] args)
@ -19,12 +20,14 @@ namespace Itrycn_Project2
InitializeComponent(); InitializeComponent();
prog_args = args; prog_args = args;
//配置软件信息 //配置软件信息
notifyIcon1.Text = Soft_Info.Soft_Title; notifyIcon1.Text = Soft_ConstInfo.Soft_Title;
Text = Soft_Info.Soft_Title + " V" + RySoft.VersionStr; Text = Soft_ConstInfo.Soft_Title + " V" + RySoft.VersionStr;
if (!Soft_Info.ShowTray) { notifyIcon1.Visible = false; } if (!Soft_ConstInfo.ShowTray) { notifyIcon1.Visible = false; }
if (!Soft_Info.DonateVisabled) { ToolStripMenuItem.Text = "关于"; } if (!Soft_ConstInfo.DonateVisabled) { ToolStripMenuItem.Text = "关于"; }
if (Soft_Info.Soft_Url.Length == 0) { ToolStripMenuItem.PerformClick(); } if (Soft_ConstInfo.Soft_Url.Length == 0) { ToolStripMenuItem.PerformClick(); }
notifyIcon1.Icon = Icon; notifyIcon1.Icon = Icon;
OlvLog.AspectName = "LogText";
OlvLogTime.AspectName = "LogTime";
} }
private void ToolStripMenuItem_Click(object sender, EventArgs e) private void ToolStripMenuItem_Click(object sender, EventArgs e)
@ -43,26 +46,26 @@ namespace Itrycn_Project2
private void FrmStart_Shown(object sender, EventArgs e) private void FrmStart_Shown(object sender, EventArgs e)
{ {
ryCommon.Ini ini = new Ini(Soft_Info.UserDataFolder + "\\Win.dat"); ryCommon.Ini ini = new Ini(Soft_ConstInfo.UserDataFolder + "\\Win.dat");
ini.WriteIni(Soft_Info.Soft_Id, "hwnd", Handle.ToInt32()); ini.WriteIni(Soft_ConstInfo.Soft_Id, "hwnd", Handle.ToInt32());
if (prog_args.Length >= 1) if (prog_args.Length >= 1)
{ {
//如果是自启动,并且开启了右下角托盘图标,则隐藏自身。 //如果是自启动,并且开启了右下角托盘图标,则隐藏自身。
if (prog_args[0] == Soft_Info.Soft_Pram && Soft_Info.ShowTray) if (prog_args[0] == Soft_ConstInfo.Soft_Pram && Soft_ConstInfo.ShowTray)
this.Hide(); this.Hide();
} }
} }
private void FrmStart_FormClosing(object sender, FormClosingEventArgs e) private void FrmStart_FormClosing(object sender, FormClosingEventArgs e)
{ {
if (Soft_Info.ShowTray && Soft_Config.HideByCloseBtn && e.CloseReason== CloseReason.UserClosing) if (Soft_ConstInfo.ShowTray && Public_Config.HideByCloseBtn && e.CloseReason== CloseReason.UserClosing)
{ {
e.Cancel = true; e.Cancel = true;
this.Hide(); this.Hide();
notifyIcon1.ShowBalloonTip(3000, Soft_Info.Soft_Title, "软件已经最小化到此处,请右击托盘图标进行关闭。", ToolTipIcon.Info); notifyIcon1.ShowBalloonTip(3000, Soft_ConstInfo.Soft_Title, "软件已经最小化到此处,请右击托盘图标进行关闭。", ToolTipIcon.Info);
return; return;
} }
if (!Soft_Config.IsCanCloseForm) if (!Soft_MemInfo.IsCanCloseForm)
{ {
e.Cancel = true; e.Cancel = true;
MessageBox.Show("当前还有操作正在运行,请稍后关闭软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); MessageBox.Show("当前还有操作正在运行,请稍后关闭软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
@ -107,7 +110,7 @@ namespace Itrycn_Project2
private void ToolStripMenuItem_Click(object sender, EventArgs e) private void ToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (Soft_Info.DonateVisabled) if (Soft_ConstInfo.DonateVisabled)
{ {
FrmAbout frm = new FrmAbout(); FrmAbout frm = new FrmAbout();
frm.ShowDialog(); frm.ShowDialog();
@ -115,21 +118,80 @@ namespace Itrycn_Project2
} }
else else
{ {
MessageBox.Show(Soft_Info.AboutText.Replace("#softname#", Soft_Info.Soft_Title).Replace("#ver#", "V" + RySoft.VersionStr), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); RySkins.Msg.ShowMsg(Soft_ConstInfo.AboutText.Replace("#softname#", Soft_ConstInfo.Soft_Title).Replace("#ver#", "V" + RySoft.VersionStr), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
} }
} }
private void ToolStripMenuItem_Click(object sender, EventArgs e) private void ToolStripMenuItem_Click(object sender, EventArgs e)
{ {
ryCommon.RyFiles.OpenUrl(Soft_Info.Soft_Url); ryCommon.RyFiles.OpenUrl(Soft_ConstInfo.Soft_Url);
} }
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_ConstInfo.Update_Url);
update.CheckUpdate(); update.CheckUpdate();
} }
/// <summary>
/// 添加日志
/// </summary>
/// <param name="text"></param>
private void AddLogs(string text)
{
this.Invoke(new Action(() =>
{
LvLogs.AddObject(new LogInfo() { LogText = text, LogTime = DateTime.Now.ToString("yyyy-MM-dd dddd HH:mm:ss") });
TabLogs.Text = "日志("+LvLogs.GetItemCount()+")";
}));
}
bool IsRunning = false;
bool IsExit = false;
private void BtnScan_Click(object sender, EventArgs e)
{
if (IsRunning) { IsExit = true; return; }
IsRunning = true;
Soft_MemInfo.IsCanCloseForm = false;
BtnScan.Text = "停止";
LvCbResult.ClearObjects();
LvLogs.ClearObjects();
TabLogs.Text = "日志(" + LvLogs.GetItemCount() + ")";
TsState.Text = "状态:正在加载数据...";
OlvGameName.Text = "游戏名[" + LvCbResult.GetItemCount() + "]";
Thread th = new Thread(Start);
th.Start();
void Start()
{
//RyWeb.QuickWeb ry3h3 = new RyWeb.QuickWeb();
IsExit = false;
IsRunning = false;
Soft_MemInfo.IsCanCloseForm = true;
//将扫描的代码写在下面
//↑将扫描的代码写在上面
this.Invoke(new Action(() =>
{
//LvCbResult.AddObjects(list);
OlvGameName.Text = "游戏名[" + LvCbResult.GetItemCount() + "]";
TsState.Text = "状态:扫描完毕,共发现" + LvCbResult.GetItemCount() + "个.";
BtnScan.Text = "扫描";
}));
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (LvLogs.SelectedObject == null) { return; }
var item = (LogInfo)LvLogs.SelectedObject;
RyFiles.CopyToClip(item.LogText);
}
/// <summary>
/// 日志信息
/// </summary>
class LogInfo
{
public string LogText { get; set; }
public string LogTime { get; set; }
}
} }
} }

View File

@ -126,6 +126,12 @@
<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="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>366, 17</value>
</metadata>
<metadata name="MenuLogs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>487, 17</value>
</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>

View File

@ -42,7 +42,7 @@ namespace Itrycn
if (LoginSuccess) if (LoginSuccess)
{ {
#region #region
ryCommon.Ini ryIni = new Ini(Soft_Info.UserDataFolder + "\\Setting.dat"); ryCommon.Ini ryIni = new Ini(Soft_ConstInfo.UserDataFolder + "\\Setting.dat");
if (chkAutoLogin.Checked || chkRememberUserId.Checked) if (chkAutoLogin.Checked || chkRememberUserId.Checked)
{ {
ryIni.WriteIni("User", "id", LoginPram.UserId); ryIni.WriteIni("User", "id", LoginPram.UserId);
@ -77,12 +77,12 @@ namespace Itrycn
private void FrmLogin_Load(object sender, EventArgs e) private void FrmLogin_Load(object sender, EventArgs e)
{ {
lblTitle.Text = Soft_Info.Soft_Title; lblTitle.Text = Soft_ConstInfo.Soft_Title;
if (System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(Soft_Info.UserDataFolder))) if (System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(Soft_ConstInfo.UserDataFolder)))
{ {
System.IO.Directory.CreateDirectory(Soft_Info.UserDataFolder); System.IO.Directory.CreateDirectory(Soft_ConstInfo.UserDataFolder);
} }
ryCommon.Ini ryIni = new Ini(Soft_Info.UserDataFolder + "\\Setting.dat"); ryCommon.Ini ryIni = new Ini(Soft_ConstInfo.UserDataFolder + "\\Setting.dat");
txtUserId.Text=ryIni.ReadIni("User", "id", LoginPram.UserId); txtUserId.Text=ryIni.ReadIni("User", "id", LoginPram.UserId);
if(txtUserId.Text!="") if(txtUserId.Text!="")
{ chkRememberUserId.Checked = true; } { chkRememberUserId.Checked = true; }

View File

@ -22,17 +22,18 @@ namespace Itrycn_Project
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Soft_Info.UserDataFolder = ryCommon.RyFiles.GetRealPath(Soft_Info.UserDataFolder); Soft_ConstInfo.UserDataFolder = ryCommon.RyFiles.GetRealPath(Soft_ConstInfo.UserDataFolder);
run = new System.Threading.Mutex(true, Soft_Info.Soft_Id, out bool runone); Soft_ConstInfo.SysDataFolder = ryCommon.RyFiles.GetRealPath(Soft_ConstInfo.SysDataFolder);
run = new System.Threading.Mutex(true, Soft_ConstInfo.Soft_Id, out bool runone);
if (!runone) //已经运行了 if (!runone) //已经运行了
{ {
ryCommon.Ini ini = new ryCommon.Ini(Soft_Info.UserDataFolder + "\\Win.dat"); ryCommon.Ini ini = new ryCommon.Ini(Soft_ConstInfo.UserDataFolder + "\\Win.dat");
ryControls.Win32.SendMessage((IntPtr)ini.ReadIni(Soft_Info.Soft_Id, "hwnd", 0), 17189, 100, 100); ryControls.Win32.SendMessage((IntPtr)ini.ReadIni(Soft_ConstInfo.Soft_Id, "hwnd", 0), 17189, 100, 100);
} }
else else
{ {
//Application.Run(new FrmStart(args)); //Application.Run(new FrmStart(args));
Application.Run(new FrmTest()); Application.Run(new FrmStart(args));
} }
//FrmLogin frm = new FrmLogin(); //FrmLogin frm = new FrmLogin();
//if (frm.ShowDialog() == DialogResult.OK) //if (frm.ShowDialog() == DialogResult.OK)

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Itrycn_Project")] [assembly: AssemblyProduct("Itrycn_Project")]
[assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: : // 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.2103.1301")] [assembly: AssemblyVersion("1.0.2106.1201")]
[assembly: AssemblyFileVersion("1.0.2103.1301")] [assembly: AssemblyFileVersion("1.0.2106.1201")]

View File

@ -0,0 +1,97 @@

namespace RySkins
{
partial class FrmMessageBox
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMessageBox));
this.lblMsg = new ryControls.LabelTx();
this.btnCancel = new ryControls.ButtonEx();
this.btnYes = new ryControls.ButtonEx();
this.SuspendLayout();
//
// lblMsg
//
this.lblMsg.BackColor = System.Drawing.Color.Transparent;
this.lblMsg.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMsg.LineDistance = 5;
this.lblMsg.Location = new System.Drawing.Point(11, 39);
this.lblMsg.Name = "lblMsg";
this.lblMsg.Size = new System.Drawing.Size(339, 21);
this.lblMsg.TabIndex = 85;
this.lblMsg.Text = "提示";
this.lblMsg.TextChanged += new System.EventHandler(this.LblMsg_TextChanged);
//
// btnCancel
//
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnCancel.Location = new System.Drawing.Point(312, 180);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(65, 27);
this.btnCancel.TabIndex = 84;
this.btnCancel.Text = "取消";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
//
// btnYes
//
this.btnYes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnYes.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnYes.Location = new System.Drawing.Point(241, 180);
this.btnYes.Name = "btnYes";
this.btnYes.Size = new System.Drawing.Size(65, 27);
this.btnYes.TabIndex = 83;
this.btnYes.Text = "确定";
this.btnYes.UseVisualStyleBackColor = true;
this.btnYes.Click += new System.EventHandler(this.BtnYes_Click);
//
// FrmMessageBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(382, 211);
this.Controls.Add(this.lblMsg);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnYes);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmMessageBox";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.ResumeLayout(false);
}
#endregion
public ryControls.ButtonEx btnCancel;
public ryControls.ButtonEx btnYes;
public ryControls.LabelTx lblMsg;
}
}

View File

@ -0,0 +1,58 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace RySkins
{
public partial class FrmMessageBox : SKinForm
{
public FrmMessageBox()
{
InitializeComponent();
}
public MessageBoxButtons ResultDg { get; set; } = MessageBoxButtons.OKCancel;
private void BtnYes_Click(object sender, EventArgs e)
{
if (this.Modal)
{
switch (ResultDg)
{
case MessageBoxButtons.YesNo:
this.DialogResult = DialogResult.Yes;
break;
default:
this.DialogResult = DialogResult.OK;
break;
}
}
else
{
Close();
}
}
private void BtnCancel_Click(object sender, EventArgs e)
{
switch (ResultDg)
{
case MessageBoxButtons.YesNo:
this.DialogResult = DialogResult.No;
break;
default:
this.DialogResult = DialogResult.Cancel;
break;
}
}
private void LblMsg_TextChanged(object sender, EventArgs e)
{
lblMsg.UpdateInfo();
lblMsg.Refresh();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,104 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace RySkins
{
public static class Msg
{
/// <summary>
/// 显示对话框
/// </summary>
/// <param name="msgText"></param>
/// <param name="title"></param>
/// <returns></returns>
public static DialogResult ShowMsg(string msgText, string title)
{
return ShowMsg(msgText, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
/// <summary>
/// 显示对话框
/// </summary>
/// <param name="msgText"></param>
/// <param name="title"></param>
/// <param name="button"></param>
/// <returns></returns>
public static DialogResult ShowMsg(string msgText, string title, MessageBoxButtons button)
{
return ShowMsg(msgText, title, button, MessageBoxIcon.Information);
}
/// <summary>
/// 显示对话框
/// </summary>
/// <param name="msgText"></param>
/// <param name="title"></param>
/// <param name="button"></param>
/// <param name="Icon"></param>
/// <param name="defaultButton"></param>
/// <returns></returns>
public static DialogResult ShowMsg(string msgText, string title, MessageBoxButtons button, MessageBoxIcon Icon,MessageBoxDefaultButton defaultButton)
{
return ShowMsg(msgText, title, button, Icon);
}
/// <summary>
/// 显示对话框
/// </summary>
/// <param name="msgText"></param>
/// <param name="title"></param>
/// <param name="button"></param>
/// <param name="Icon"></param>
/// <returns></returns>
public static DialogResult ShowMsg(string msgText, string title, MessageBoxButtons button, MessageBoxIcon Icon)
{
#pragma warning disable CA2000 // 丢失范围之前释放对象
FrmMessageBox frm = new FrmMessageBox
{
Text = title
};
#pragma warning restore CA2000 // 丢失范围之前释放对象
frm.lblMsg.Text = msgText;
frm.lblMsg.UpdateInfo();
frm.ResultDg = button;
switch (button)
{
case MessageBoxButtons.OK:
frm.btnYes.Location = new System.Drawing.Point(frm.ClientSize.Width - frm.btnYes.Width - 8, frm.ClientSize.Height - frm.btnYes.Height - 8);
frm.btnCancel.Visible = false;
break;
case MessageBoxButtons.OKCancel:
case MessageBoxButtons.YesNo:
frm.btnCancel.Location = new System.Drawing.Point(frm.ClientSize.Width - frm.btnYes.Width - 8, frm.ClientSize.Height - frm.btnYes.Height - 8);
frm.btnYes.Location = new System.Drawing.Point(frm.btnCancel.Left - frm.btnYes.Width - 8, frm.btnCancel.Top);
break;
case MessageBoxButtons.RetryCancel:
frm.btnCancel.Location = new System.Drawing.Point(frm.ClientSize.Width - frm.btnYes.Width - 8, frm.ClientSize.Height - frm.btnYes.Height - 8);
frm.btnYes.Location = new System.Drawing.Point(frm.btnCancel.Left - frm.btnYes.Width - 8, frm.btnCancel.Top);
frm.btnYes.Text = "重试";
break;
default:
frm.btnYes.Location = new System.Drawing.Point(frm.ClientSize.Width - frm.btnYes.Width - 8, frm.ClientSize.Height - frm.btnYes.Height - 8);
frm.btnCancel.Visible = false;
break;
}
frm.TopMost = true;
var handle= WinAPI.User32.GetActiveWindow();
var have_owner = false;
for (int i = 0; i < Application.OpenForms.Count; i++)
{
if(Application.OpenForms[i].Handle==handle)
{
var owner = Application.OpenForms[i];
frm.Location = new System.Drawing.Point(owner.Left + (owner.Width - frm.Width) / 2, owner.Top + (owner.Height - frm.Height) / 2);
have_owner = true;
}
}
//WinAPI.User32.GetWindowRect(handle,out var rectangle);
//var title2= ryCommon.RyForm.GetWinText(handle);
//frm.Location = new System.Drawing.Point(rectangle.X + (rectangle.Width - frm.Width) / 2, rectangle.Y + (rectangle.Height - frm.Height) / 2);
if (!have_owner) { frm.StartPosition = FormStartPosition.CenterScreen; }
return frm.ShowDialog();
}
}
}

View File

@ -1,7 +1,7 @@
 
namespace Itrycn_Project2 namespace RySkins
{ {
partial class FrmTest partial class SKinForm
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -29,34 +29,21 @@ namespace Itrycn_Project2
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.buttonEx1 = new ryControls.ButtonEx();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonEx1 // SKinForm
// //
this.buttonEx1.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95))))); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.buttonEx1.Location = new System.Drawing.Point(320, 357); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.buttonEx1.Name = "buttonEx1"; this.ClientSize = new System.Drawing.Size(594, 521);
this.buttonEx1.Size = new System.Drawing.Size(75, 50);
this.buttonEx1.TabIndex = 0;
this.buttonEx1.Text = "buttonEx1";
this.buttonEx1.UseVisualStyleBackColor = true;
//
// FrmTest
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(403, 417);
this.Controls.Add(this.buttonEx1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.IconSize = new System.Drawing.Size(20, 20); this.Name = "SKinForm";
this.Name = "FrmTest"; this.Text = "SKinForm";
this.Text = "FrmTest"; this.Load += new System.EventHandler(this.SKinForm_Load);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
#endregion #endregion
private ryControls.ButtonEx buttonEx1;
} }
} }

View File

@ -0,0 +1,55 @@
using MGdu.WinFormUI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace RySkins
{
public partial class SKinForm : GMForm
{
public SKinForm()
{
InitializeComponent();
}
public SKinForm(string[] args)
{
InitializeComponent();
}
/// <summary>
/// 显示在父窗体中间,如果没有父窗体,则显示在显示器中间
/// </summary>
/// <param name="parent"></param>
public void ShowInCenter(Form parent)
{
this.StartPosition = FormStartPosition.Manual;
var screen = Screen.FromControl(this);
if (parent==null) //如果没有父窗体,则显示在显示器中间
{
Location = new Point((screen.WorkingArea.Width-Width)/2,(screen.WorkingArea.Height-Height)/2);
return;
}
var x = parent.Left+(parent.Width - Width) / 2;
var y =parent.Top+ (parent.Height - Height) / 2;
if((x+Width)> screen.WorkingArea.X+ screen.WorkingArea.Width)
{
x = screen.WorkingArea.X + screen.WorkingArea.Width - Width;
}
if ((y + Height) > screen.WorkingArea.Y + screen.WorkingArea.Height)
{
y = screen.WorkingArea.Y + screen.WorkingArea.Height - Height;
}
Location = new Point(x, y);
}
private void SKinForm_Load(object sender, EventArgs e)
{
if (!this.DesignMode)
{ base.XTheme = new ThemeForm(); }
//Opacity = 0.97;
}
}
}

View File

@ -0,0 +1,48 @@

namespace RySkins
{
partial class SkinMdiForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// SkinMdiForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(505, 444);
this.IsMdiContainer = true;
this.Name = "SkinMdiForm";
this.Text = "SkinMdiForm";
this.ResumeLayout(false);
}
#endregion
}
}

View File

@ -0,0 +1,203 @@
using MGdu.WinFormUI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace RySkins
{
public partial class SkinMdiForm : GMForm
{
/// <summary>
/// 顶部栏
/// </summary>
[Description("顶部栏")]
public Panel TopPanel { get; set; } = null;
public SkinMdiForm()
{
InitializeComponent();
InitMdiSkin();
}
#region
/// <summary>
/// 加载皮肤
/// </summary>
private void InitMdiSkin()
{
_mdiClient = FindMdiClient();
base.SizeChanged += new EventHandler((object sender, EventArgs e) =>
{
if (base.WindowState == FormWindowState.Maximized)
{
base.ControlBoxOffset = new Point(4, base.BorderWidth);
}
else
{
base.ControlBoxOffset = new Point(4, 1);
}
SetFormItemLocation(TopPanel);
});
base.Load += new EventHandler((object sender, EventArgs e) =>
{
base.XTheme = new ThemeForm();
base.XTheme.Mdi_TabMinWidth = 70;
base.XTheme.Mdi_TabNormalWidth = 100;
base.XTheme.Mdi_TabMaxWidth = 145;
base.XTheme.Mdi_ShowNewTabBtn = false;
base.XTheme.Mdi_AlwaysShowListAllBtn = false;
base.XTheme.Mdi_BarBottomRegionHeight = 0;
base.XTheme.Mdi_ShowTabCloseIcon = false;
base.XTheme.Mdi_TabShowBorder = false;
base.XTheme.Mdi_BarMargin = new Padding(6, 0, 100, 0);
base.XTheme.Mdi_TabActiveBackColorTop = Color.White;
base.XTheme.Mdi_TabActiveBackColorBottom = Color.FromArgb(248, 248, 248);
base.XTheme.Mdi_TabDeactiveBackColorTop = Color.FromArgb(230, 230, 230);
base.XTheme.Mdi_TabDeactiveBackColorBottom = Color.FromArgb(230, 230, 230);
//base.XTheme.Mdi_UseMsgToActivateChild
base.MdiNewTabButtonClick += new EventHandler(NewFormClick);
base.MdiTabCloseButtonClick += new EventHandler(ChildFormClose);
//base.XTheme.Mdi_TabTopSpace += 80;
if (_mdiClient != null)
{
_mdiClient.Dock = DockStyle.None;
_mdiClient.BackColor = Color.White;
}
});
base.MdiBarCreated += new EventHandler((object sender, EventArgs e) =>
{
SetFormItemLocation(TopPanel);
Application.DoEvents();
Thread th = new Thread(Start);
th.Start();
void Start()
{
Thread.Sleep(10);
this.Invoke(new Action(() =>
{
this.SuspendLayout();
for (int i = 0; i < MdiForms.Count; i++)
{
CreateNewChild(MdiForms[i]);
}
this.ResumeLayout(false);
//CreateNewChild(typeof(DbOp.FrmCaijiView));
//Application.DoEvents();
if (this.MdiChildren.Length > 0)
{
this.ActivateMdiChildForm(this.MdiChildren[0]);
}
}));
}
});
}
/// <summary>
/// 要初始化加载的Form列表
/// </summary>
public List<Form> MdiForms { get; set; } = new List<Form>();
/// <summary>
/// 创建子窗体
/// </summary>
/// <param name="form"></param>
public void CreateNewChild(Form form)
{
//form.SuspendLayout();
form.FormClosed += new FormClosedEventHandler(base.MdiChildClosed);
form.VisibleChanged += new EventHandler(base.MdiChildVisibleChange);
form.MdiParent = this;
//f.BackColor = Color.White;
form.FormBorderStyle = FormBorderStyle.SizableToolWindow;
form.SizeGripStyle = SizeGripStyle.Show;
form.WindowState = FormWindowState.Maximized;
form.Show();
// form.ResumeLayout(false);
//f.Focus();
}
MdiClient _mdiClient;
private int PanelTopHeight { get; set; } = 43;
private void NewFormClick(object sender, EventArgs e)
{
// CreateNewChild();
}
private void ChildFormClose(object sender, EventArgs e)
{
if (sender is Form f)
f.Close();
}
private MdiClient FindMdiClient()
{
MdiClient mdi = null;
foreach (Control c in Controls)
{
if ((mdi = c as MdiClient) != null)
{
break;
}
}
return mdi;
}
private void SetMdiBarLocation()
{
Padding newMargin = Padding.Empty;
//if (WindowState == FormWindowState.Maximized)
// newMargin = new Padding(BorderWidth, BorderWidth, BorderWidth, 0);
//else
//PnlMenu.Top = BorderWidth + base.XTheme.CaptionHeight;
newMargin = new Padding(BorderWidth, BorderWidth + base.XTheme.CaptionHeight + 0, BorderWidth, 0);
if (base.XTheme.Mdi_BarMargin != newMargin)
{
base.XTheme.Mdi_BarMargin = newMargin;
Invalidate();
}
}
private void SetPanelTopLocation(Panel PnlTop)
{
Point newLocation = new Point(base.MdiBarBounds.Left, base.MdiBarBounds.Bottom);
//if (panelTop.Location == newLocation)
// return;
//var size = new Size(base.MdiBarBounds.Width, PanelTopHeight);
//if (PnlTop != null)
//{
// PnlTop.Anchor = AnchorStyles.None;
// PnlTop.Location = newLocation;
// PnlTop.Size = size;
// PnlTop.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
//}
}
private void SetFormItemLocation(Panel PnlTop)
{
SetMdiBarLocation();
//SetPanelTopLocation(PnlTop);
SetMdiClientLocation(PnlTop);
}
private void SetMdiClientLocation(Panel PnlTop)
{
if (_mdiClient == null)
return;
Point newLocation = Point.Empty;
var size = ClientRectangle.Size;
if (PnlTop != null)
{
newLocation = new Point(PnlTop.Left, PnlTop.Bottom);
if (_mdiClient.Location == newLocation)
return;
int height = base.ClientSize.Height - newLocation.Y -
(base.ClientSize.Width - PnlTop.Width) / 2;
size = new Size(PnlTop.Width, height);
}
_mdiClient.Anchor = AnchorStyles.None;
_mdiClient.Location = newLocation;
_mdiClient.Size = size;
_mdiClient.Anchor =
AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
}
#endregion
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, 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="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<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>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: 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:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<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:sequence>
<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="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,44 @@
using MGdu.WinFormUI;
using MGdu.WinFormUI.MyGraphics;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace RySkins
{
public class ThemeForm : ThemeFormBase
{
/// <summary>
/// DevExpress风格皮肤
/// </summary>
public ThemeForm()
: base()
{
ThemeName = "Default";
ryControls.Skin.SkinCommon.ButtonSkin.BackColor = Color.DarkGreen;
CaptionBackColorTop = Color.DarkGreen;
CaptionBackColorBottom = Color.SeaGreen;
ryControls.Skin.SkinCommon.ButtonSkin.ColorGradient = true;
BorderWidth = 1;
//CaptionHeight = 30;
IconSize = new Size(22, 22);
//ControlBoxOffset = new Point(8, 8);
//ControlBoxSpace = 2;
SideResizeWidth = 4;
UseDefaultTopRoundingFormRegion = false;
RoundedStyle = RoundStyle.None;
FormBorderOutterColor = Color.Gray;
FormBorderInnerColor = Color.White;
SetClientInset = false;
ShowShadow = false;
CaptionTextCenter = false;
//CaptionTextColor = Color.FromArgb(102, 102, 102);
//FormBackColor = Color.White;
}
}
}

View File

@ -31,10 +31,10 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSetting)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSetting));
this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.ChkAutoRun = new System.Windows.Forms.CheckBox();
this.chkAutoLogin = new System.Windows.Forms.CheckBox(); this.chkAutoLogin = new System.Windows.Forms.CheckBox();
this.btnCancel = new ryControls.ButtonEx(); this.btnCancel = new ryControls.ButtonEx();
this.btnOK = new ryControls.ButtonEx(); this.btnOK = new ryControls.ButtonEx();
this.ChkAutoRun = new System.Windows.Forms.CheckBox();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -45,10 +45,10 @@
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Location = new System.Drawing.Point(2, 3); this.tabControl1.Location = new System.Drawing.Point(2, 30);
this.tabControl1.Name = "tabControl1"; this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(628, 430); this.tabControl1.Size = new System.Drawing.Size(628, 440);
this.tabControl1.TabIndex = 0; this.tabControl1.TabIndex = 0;
// //
// tabPage1 // tabPage1
@ -58,11 +58,21 @@
this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(620, 404); this.tabPage1.Size = new System.Drawing.Size(620, 414);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "普通"; this.tabPage1.Text = "普通";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
// //
// ChkAutoRun
//
this.ChkAutoRun.AutoSize = true;
this.ChkAutoRun.Location = new System.Drawing.Point(13, 34);
this.ChkAutoRun.Name = "ChkAutoRun";
this.ChkAutoRun.Size = new System.Drawing.Size(108, 16);
this.ChkAutoRun.TabIndex = 1;
this.ChkAutoRun.Text = "开机时启动软件";
this.ChkAutoRun.UseVisualStyleBackColor = true;
//
// chkAutoLogin // chkAutoLogin
// //
this.chkAutoLogin.AutoSize = true; this.chkAutoLogin.AutoSize = true;
@ -76,8 +86,8 @@
// btnCancel // btnCancel
// //
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnCancel.ForeColor = System.Drawing.Color.White; this.btnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnCancel.Location = new System.Drawing.Point(541, 443); this.btnCancel.Location = new System.Drawing.Point(541, 480);
this.btnCancel.Name = "btnCancel"; this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(79, 30); this.btnCancel.Size = new System.Drawing.Size(79, 30);
this.btnCancel.TabIndex = 22; this.btnCancel.TabIndex = 22;
@ -88,8 +98,8 @@
// btnOK // btnOK
// //
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.ForeColor = System.Drawing.Color.White; this.btnOK.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnOK.Location = new System.Drawing.Point(456, 443); this.btnOK.Location = new System.Drawing.Point(456, 480);
this.btnOK.Name = "btnOK"; this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(79, 30); this.btnOK.Size = new System.Drawing.Size(79, 30);
this.btnOK.TabIndex = 21; this.btnOK.TabIndex = 21;
@ -97,21 +107,11 @@
this.btnOK.UseVisualStyleBackColor = true; this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.BtnOK_Click); this.btnOK.Click += new System.EventHandler(this.BtnOK_Click);
// //
// ChkAutoRun
//
this.ChkAutoRun.AutoSize = true;
this.ChkAutoRun.Location = new System.Drawing.Point(13, 34);
this.ChkAutoRun.Name = "ChkAutoRun";
this.ChkAutoRun.Size = new System.Drawing.Size(108, 16);
this.ChkAutoRun.TabIndex = 1;
this.ChkAutoRun.Text = "开机时启动软件";
this.ChkAutoRun.UseVisualStyleBackColor = true;
//
// FrmSetting // FrmSetting
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(630, 485); this.ClientSize = new System.Drawing.Size(630, 522);
this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK); this.Controls.Add(this.btnOK);
this.Controls.Add(this.tabControl1); this.Controls.Add(this.tabControl1);

View File

@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace Itrycn_Project namespace Itrycn_Project
{ {
public partial class FrmSetting : Form public partial class FrmSetting : RySkins.SKinForm
{ {
public FrmSetting() public FrmSetting()
{ {
@ -30,17 +30,17 @@ namespace Itrycn_Project
{ {
mySetting.Save(); mySetting.Save();
ryCommon.RyRegedit.RegRoot = Microsoft.Win32.RegistryHive.CurrentUser; ryCommon.RyRegedit.RegRoot = Microsoft.Win32.RegistryHive.CurrentUser;
ryCommon.RyRegedit.SetAutoRun(ChkAutoRun.Checked, Soft_Info.Soft_Id, "\"" + Application.ExecutablePath.Replace("/", "\\") + "\" "+ Soft_Info.Soft_Pram); ryCommon.RyRegedit.SetAutoRun(ChkAutoRun.Checked, Soft_ConstInfo.Soft_Id, "\"" + Application.ExecutablePath.Replace("/", "\\") + "\" "+ Soft_ConstInfo.Soft_Pram);
DialogResult = DialogResult.OK; DialogResult = DialogResult.OK;
} }
ryControls.RySetting mySetting = new ryControls.RySetting(); ryControls.RySetting mySetting = new ryControls.RySetting();
private void FrmSetting_Load(object sender, EventArgs e) private void FrmSetting_Load(object sender, EventArgs e)
{ {
mySetting.FilePath = Soft_Info.UserDataFolder + "\\Setting.xml"; mySetting.FilePath = Soft_ConstInfo.UserDataFolder + "\\Setting.xml";
mySetting.Add("AutoLogin", chkAutoLogin,false); mySetting.Add("AutoLogin", chkAutoLogin,false);
mySetting.Read(); mySetting.Read();
ryCommon.RyRegedit.RegRoot = Microsoft.Win32.RegistryHive.CurrentUser; ryCommon.RyRegedit.RegRoot = Microsoft.Win32.RegistryHive.CurrentUser;
ChkAutoRun.Checked = ryCommon.RyRegedit.IsAutoRun(Soft_Info.Soft_Id, "\"" + Application.ExecutablePath.Replace("/", "\\") + "\" "+ Soft_Info.Soft_Pram); ChkAutoRun.Checked = ryCommon.RyRegedit.IsAutoRun(Soft_ConstInfo.Soft_Id, "\"" + Application.ExecutablePath.Replace("/", "\\") + "\" "+ Soft_ConstInfo.Soft_Pram);
} }
} }
} }

View File

@ -603,7 +603,7 @@ namespace ryCommon
public static int OpenFolderGotoFile(string FilePath) public static int OpenFolderGotoFile(string FilePath)
{ {
StringBuilder shortpath = new StringBuilder(260); StringBuilder shortpath = new StringBuilder(260);
int result = GetShortPathName(FilePath, shortpath, shortpath.Capacity); GetShortPathName(FilePath, shortpath, shortpath.Capacity);
return RunFile("explorer.exe", "/select,\""+ shortpath.ToString()+ "\""); return RunFile("explorer.exe", "/select,\""+ shortpath.ToString()+ "\"");
} }
/// <summary> /// <summary>
@ -836,13 +836,13 @@ namespace ryCommon
public static string GetFileSizeStr(long size) public static string GetFileSizeStr(long size)
{ {
if (size == -1) { return "未知"; } if (size == -1) { return "未知"; }
string s = ""; string s;
string[] u = new string[] { "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB", "NB", "DB" }; string[] u = new string[] { "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB", "NB", "DB" };
double i = size; double i = size;
int n = 0; int n = 0;
while (i > 1024) while (i > 1024)
{ {
i = i / 1024.0; i /= 1024.0;
n++; n++;
if (n == 4) break; if (n == 4) break;
} }
@ -909,7 +909,7 @@ namespace ryCommon
#endregion #endregion
return myImageCodecInfo; return myImageCodecInfo;
} }
private static EncoderParameters GetEncoderParameters(ryCommon.sType.ImageType type) private static EncoderParameters GetEncoderParameters()
{ {
System.Drawing.Imaging.Encoder myEncoder; System.Drawing.Imaging.Encoder myEncoder;
EncoderParameter myEncoderParameter; EncoderParameter myEncoderParameter;
@ -949,7 +949,7 @@ namespace ryCommon
/// <param name="type"></param> /// <param name="type"></param>
public static void SaveHighQualityImage(Bitmap m,string path,ryCommon.sType.ImageType type) public static void SaveHighQualityImage(Bitmap m,string path,ryCommon.sType.ImageType type)
{ {
m.Save(path, GetEncoderInfo(type), GetEncoderParameters(type)); m.Save(path, GetEncoderInfo(type), GetEncoderParameters());
} }
/// <summary> /// <summary>
/// 保存高质量不失真照片 /// 保存高质量不失真照片
@ -959,7 +959,7 @@ namespace ryCommon
/// <param name="type"></param> /// <param name="type"></param>
public static void SaveHighQualityImage(Bitmap m, MemoryStream ms, ryCommon.sType.ImageType type) public static void SaveHighQualityImage(Bitmap m, MemoryStream ms, ryCommon.sType.ImageType type)
{ {
m.Save(ms, GetEncoderInfo(type), GetEncoderParameters(type)); m.Save(ms, GetEncoderInfo(type), GetEncoderParameters());
} }
/// <summary> /// <summary>
/// 保存高质量不失真照片 /// 保存高质量不失真照片
@ -969,7 +969,7 @@ namespace ryCommon
/// <param name="type"></param> /// <param name="type"></param>
public static void SaveHighQualityImage(Image m, string path, ryCommon.sType.ImageType type) public static void SaveHighQualityImage(Image m, string path, ryCommon.sType.ImageType type)
{ {
m.Save(path, GetEncoderInfo(type), GetEncoderParameters(type)); m.Save(path, GetEncoderInfo(type), GetEncoderParameters());
} }
/// <summary> /// <summary>
/// 获取绝对路径 /// 获取绝对路径

View File

@ -54,6 +54,7 @@
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
@ -83,6 +84,11 @@
<Compile Include="MyDb\DbInterface.cs" /> <Compile Include="MyDb\DbInterface.cs" />
<Compile Include="MyDb\ryQuickSQL.cs" /> <Compile Include="MyDb\ryQuickSQL.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="SafeCheck\AES.cs" /> <Compile Include="SafeCheck\AES.cs" />
<Compile Include="SafeCheck\Base64.cs" /> <Compile Include="SafeCheck\Base64.cs" />
<Compile Include="SafeCheck\MD5Sha1.cs" /> <Compile Include="SafeCheck\MD5Sha1.cs" />
@ -104,8 +110,48 @@
<Compile Include="WinAPI\Structs.cs" /> <Compile Include="WinAPI\Structs.cs" />
<Compile Include="WinAPI\GDI32.cs" /> <Compile Include="WinAPI\GDI32.cs" />
<Compile Include="WinAPI\User32.cs" /> <Compile Include="WinAPI\User32.cs" />
<Compile Include="_SCREEN_CAPTURE\ColorBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="_SCREEN_CAPTURE\ColorBox.Designer.cs">
<DependentUpon>ColorBox.cs</DependentUpon>
</Compile>
<Compile Include="_SCREEN_CAPTURE\ColorBoxDesginer.cs" />
<Compile Include="_SCREEN_CAPTURE\FrmCapture.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="_SCREEN_CAPTURE\FrmCapture.Designer.cs">
<DependentUpon>FrmCapture.cs</DependentUpon>
</Compile>
<Compile Include="_SCREEN_CAPTURE\ImageProcessBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="_SCREEN_CAPTURE\ImageProcessBox.Designer.cs">
<DependentUpon>ImageProcessBox.cs</DependentUpon>
</Compile>
<Compile Include="_SCREEN_CAPTURE\MouseHook.cs" />
<Compile Include="_SCREEN_CAPTURE\ScreenCapture.cs" />
<Compile Include="_SCREEN_CAPTURE\ToolButton.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="_SCREEN_CAPTURE\ToolButton.Designer.cs">
<DependentUpon>ToolButton.cs</DependentUpon>
</Compile>
<Compile Include="_SCREEN_CAPTURE\ToolButtonDesigner.cs" />
<Compile Include="_SCREEN_CAPTURE\Win32.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="_SCREEN_CAPTURE\ColorBox.resx">
<DependentUpon>ColorBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="_SCREEN_CAPTURE\FrmCapture.resx">
<DependentUpon>FrmCapture.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup> </ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView> <ProjectView>ProjectFiles</ProjectView>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -6,11 +6,11 @@ using System.Runtime.InteropServices;
// 控制。更改这些特性值可修改 // 控制。更改这些特性值可修改
// 与程序集关联的信息。 // 与程序集关联的信息。
[assembly: AssemblyTitle("MyDb")] [assembly: AssemblyTitle("MyDb")]
[assembly: AssemblyDescription("基于乘黄V1架构")] [assembly: AssemblyDescription("基于乘黄V2架构")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("睿元网络工作室")] [assembly: AssemblyCompany("睿元网络工作室")]
[assembly: AssemblyProduct("MyDb")] [assembly: AssemblyProduct("MyDb")]
[assembly: AssemblyCopyright("Copyright © 2010-2017")] [assembly: AssemblyCopyright("Copyright © 2010-2021")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: : // 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.2102.1101")] [assembly: AssemblyVersion("3.0.2105.2201")]
[assembly: AssemblyFileVersion("2.1.2102.1101")] [assembly: AssemblyFileVersion("3.0.2105.2201")]

View File

@ -0,0 +1,213 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace MyDb.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MyDb.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap arrow {
get {
object obj = ResourceManager.GetObject("arrow", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap brush {
get {
object obj = ResourceManager.GetObject("brush", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap cancel {
get {
object obj = ResourceManager.GetObject("cancel", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap close {
get {
object obj = ResourceManager.GetObject("close", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap color {
get {
object obj = ResourceManager.GetObject("color", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap ellips {
get {
object obj = ResourceManager.GetObject("ellips", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap large {
get {
object obj = ResourceManager.GetObject("large", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap middle {
get {
object obj = ResourceManager.GetObject("middle", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap none {
get {
object obj = ResourceManager.GetObject("none", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap ok {
get {
object obj = ResourceManager.GetObject("ok", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap rect {
get {
object obj = ResourceManager.GetObject("rect", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap save {
get {
object obj = ResourceManager.GetObject("save", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap separator {
get {
object obj = ResourceManager.GetObject("separator", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap small {
get {
object obj = ResourceManager.GetObject("small", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap text {
get {
object obj = ResourceManager.GetObject("text", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@ -0,0 +1,166 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, 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="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<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>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: 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:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<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:sequence>
<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="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="arrow" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="brush" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\brush.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="cancel" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\cancel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="close" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="color" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\color.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ellips" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\ellips.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="large" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\large.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="middle" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\middle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="none" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\none.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ok" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\ok.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="rect" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\rect.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="save" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="separator" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\separator.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="small" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="text" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\_screen_capture\resources\text.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Some files were not shown because too many files have changed in this diff Show More