### 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]
hwnd=1191986
hwnd=1118096

View File

@ -1,4 +1,4 @@
<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" />
</root>

View File

@ -486,6 +486,12 @@
</summary>
<param name="e"></param>
</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)">
<summary>
@ -498,6 +504,12 @@
</summary>
<param name="e"></param>
</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@)">
<summary>
@ -3647,57 +3659,6 @@
使用代码编辑器修改此方法的内容。
</summary>
</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">
<summary>
@ -3797,6 +3758,57 @@
使用代码编辑器修改此方法的内容。
</summary>
</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">
<summary>
日控件
@ -6309,6 +6321,42 @@
</summary>
<returns></returns>
</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)">
<summary>
设置分页语句为MSSQL分页语句
@ -6327,6 +6375,15 @@
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</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)">
<summary>
设置分页语句为SQLite分页语句

File diff suppressed because it is too large Load Diff

View File

@ -486,6 +486,12 @@
</summary>
<param name="e"></param>
</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)">
<summary>
@ -498,6 +504,12 @@
</summary>
<param name="e"></param>
</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@)">
<summary>
@ -3647,57 +3659,6 @@
使用代码编辑器修改此方法的内容。
</summary>
</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">
<summary>
@ -3797,6 +3758,57 @@
使用代码编辑器修改此方法的内容。
</summary>
</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">
<summary>
日控件
@ -6309,6 +6321,42 @@
</summary>
<returns></returns>
</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)">
<summary>
设置分页语句为MSSQL分页语句
@ -6327,6 +6375,15 @@
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</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)">
<summary>
设置分页语句为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>
<param name="e"></param>
</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)">
<summary>
@ -498,6 +504,12 @@
</summary>
<param name="e"></param>
</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@)">
<summary>
@ -3647,57 +3659,6 @@
使用代码编辑器修改此方法的内容。
</summary>
</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">
<summary>
@ -3797,6 +3758,57 @@
使用代码编辑器修改此方法的内容。
</summary>
</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">
<summary>
日控件
@ -6309,6 +6321,42 @@
</summary>
<returns></returns>
</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)">
<summary>
设置分页语句为MSSQL分页语句
@ -6327,6 +6375,15 @@
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</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)">
<summary>
设置分页语句为SQLite分页语句

File diff suppressed because it is too large Load Diff

View File

@ -486,6 +486,12 @@
</summary>
<param name="e"></param>
</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)">
<summary>
@ -498,6 +504,12 @@
</summary>
<param name="e"></param>
</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@)">
<summary>
@ -3647,57 +3659,6 @@
使用代码编辑器修改此方法的内容。
</summary>
</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">
<summary>
@ -3797,6 +3758,57 @@
使用代码编辑器修改此方法的内容。
</summary>
</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">
<summary>
日控件
@ -6309,6 +6321,42 @@
</summary>
<returns></returns>
</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)">
<summary>
设置分页语句为MSSQL分页语句
@ -6327,6 +6375,15 @@
<param name="OrderBySQL">排序语句必须包含Order By;,如果不存在排序语句,请为空</param>
<returns></returns>
</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)">
<summary>
设置分页语句为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
- *.[修复]修复在win7上Gdu.WinformUI会报错的BUG。

View File

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

View File

@ -14,7 +14,7 @@ namespace Itrycn
{
public partial class Frmmain : Form
{
string[] prog_args;
readonly string[] prog_args;
public Frmmain(string[] args)
{
InitializeComponent();
@ -36,8 +36,9 @@ namespace Itrycn
};
parent.Nodes.Add(btn);
return btn;
}
Dictionary<Type, Form> dict_form = new Dictionary<Type, Form>();
}
readonly Dictionary<Type, Form> dict_form = new Dictionary<Type, Form>();
/// <summary>
/// 显示子窗体
/// </summary>
@ -262,12 +263,12 @@ namespace Itrycn
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;
}
private void lableX1_DoubleClick(object sender, EventArgs e)
private void LableX1_DoubleClick(object sender, EventArgs e)
{
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)
{
DataProvider mydb = new DataProvider();
IDbInterface db = CreateDataProvider(dataType);
if (db.ConnDb(ConnStr) == 1)
{
#region 1
RyQuickSQL mySQL = new RyQuickSQL("1");
mySQL.AddField("", "");
RyQuickSQL mySQL = new RyQuickSQL("test1");
//mySQL.AddField("", "");
mySQL.AddField("addTime", DateTime.Now);
mySQL.AddField("editTime", DateTime.Now);
db.CreateDb(mySQL);
@ -64,7 +63,6 @@ namespace Itrycn_Project
/// <returns>返回大于0的数,表示设置成功,否则表示失败</returns>
private static int SetSetting(string name ,string info)
{
DataProvider mydb = new DataProvider();
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
{

View File

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

View File

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

View File

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

View File

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

@ -1,210 +1,218 @@
namespace Itrycn_Project.DbOp
{
partial class FrmView
{
/// <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.components = new System.ComponentModel.Container();
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.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.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
//
// 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(12, 12);
this.rySearch1.Name = "rySearch1";
this.rySearch1.Size = new System.Drawing.Size(329, 24);
this.rySearch1.TabIndex = 28;
this.rySearch1.OnSearch += new System.EventHandler(this.RySearch1_OnSearch);
//
// table1
//
this.table1.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.table1.ColumnModel = this.columnModel1;
this.table1.ContextMenuStrip = this.contextMenuStrip1;
this.table1.EditStartAction = XPTable.Editors.EditStartAction.SingleClick;
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
//
this.tableModel1.RowHeight = 25;
//
// ctlMyPage1
//
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.Name = "ctlMyPage1";
this.ctlMyPage1.PageSize = 50;
this.ctlMyPage1.RecordCount = 0;
this.ctlMyPage1.Size = new System.Drawing.Size(506, 26);
this.ctlMyPage1.SQLText = "";
this.ctlMyPage1.SQLText2 = "";
this.ctlMyPage1.T_FirstCaption = "首页";
this.ctlMyPage1.T_LastCaption = "末页";
this.ctlMyPage1.T_NextCaption = "下一页";
this.ctlMyPage1.T_Parameters = null;
this.ctlMyPage1.T_PreCaption = "上一页";
this.ctlMyPage1.T_SkipCaption = "跳到";
this.ctlMyPage1.T_TipCaption = "{pageindex}/{pagecount} 页,共 {recordcount} 条记录,每页 {pagesize} 条";
this.ctlMyPage1.TabIndex = 30;
this.ctlMyPage1.OnPageChange += new System.EventHandler(this.CtlMyPage1_OnPageChange);
//
// btnDel
//
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.Location = new System.Drawing.Point(978, 12);
this.btnDel.Name = "btnDel";
this.btnDel.Size = new System.Drawing.Size(62, 24);
this.btnDel.TabIndex = 40;
this.btnDel.Text = "删除";
this.btnDel.UseVisualStyleBackColor = true;
this.btnDel.Click += new System.EventHandler(this.BtnDel_Click);
//
// btnEdit
//
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.Location = new System.Drawing.Point(910, 12);
this.btnEdit.Name = "btnEdit";
this.btnEdit.Size = new System.Drawing.Size(62, 24);
this.btnEdit.TabIndex = 39;
this.btnEdit.Text = "修改";
this.btnEdit.UseVisualStyleBackColor = true;
this.btnEdit.Click += new System.EventHandler(this.BtnEdit_Click);
//
// btnAdd
//
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.Location = new System.Drawing.Point(842, 12);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(62, 24);
this.btnAdd.TabIndex = 38;
this.btnAdd.Text = "添加";
this.btnAdd.UseVisualStyleBackColor = true;
this.btnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 70);
//
// 添加数据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);
//
// 修改数据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);
//
// 删除数据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
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1052, 625);
this.Controls.Add(this.btnDel);
this.Controls.Add(this.btnEdit);
this.Controls.Add(this.btnAdd);
this.Controls.Add(this.ctlMyPage1);
this.Controls.Add(this.table1);
this.Controls.Add(this.rySearch1);
this.Name = "FrmView";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "浏览";
this.Load += new System.EventHandler(this.FrmView_Load);
((System.ComponentModel.ISupportInitialize)(this.table1)).EndInit();
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private ryControls.rySearch rySearch1;
private XPTable.Models.Table table1;
private MyPage.ctlMyPage ctlMyPage1;
private XPTable.Models.TableModel tableModel1;
private XPTable.Models.ColumnModel columnModel1;
private ryControls.ButtonEx btnDel;
private ryControls.ButtonEx btnEdit;
private ryControls.ButtonEx btnAdd;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
namespace Itrycn_Project.DbOp
{
partial class FrmView
{
/// <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.components = new System.ComponentModel.Container();
this.rySearch1 = new ryControls.rySearch();
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.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();
((System.ComponentModel.ISupportInitialize)(this.LvCbResult)).BeginInit();
this.SuspendLayout();
//
// rySearch1
//
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.Location = new System.Drawing.Point(12, 30);
this.rySearch1.Name = "rySearch1";
this.rySearch1.Size = new System.Drawing.Size(329, 24);
this.rySearch1.TabIndex = 28;
this.rySearch1.OnSearch += new System.EventHandler(this.RySearch1_OnSearch);
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 70);
//
// 添加数据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);
//
// 删除数据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
//
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, 637);
this.ctlMyPage1.Name = "ctlMyPage1";
this.ctlMyPage1.PageSize = 50;
this.ctlMyPage1.RecordCount = 0;
this.ctlMyPage1.Size = new System.Drawing.Size(506, 26);
this.ctlMyPage1.SQLText = "";
this.ctlMyPage1.SQLText2 = "";
this.ctlMyPage1.T_FirstCaption = "首页";
this.ctlMyPage1.T_LastCaption = "末页";
this.ctlMyPage1.T_NextCaption = "下一页";
this.ctlMyPage1.T_Parameters = null;
this.ctlMyPage1.T_PreCaption = "上一页";
this.ctlMyPage1.T_SkipCaption = "跳到";
this.ctlMyPage1.T_TipCaption = "{pageindex}/{pagecount} 页,共 {recordcount} 条记录,每页 {pagesize} 条";
this.ctlMyPage1.TabIndex = 30;
this.ctlMyPage1.OnPageChange += new System.EventHandler(this.CtlMyPage1_OnPageChange);
//
// btnDel
//
this.btnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnDel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnDel.Location = new System.Drawing.Point(978, 30);
this.btnDel.Name = "btnDel";
this.btnDel.Size = new System.Drawing.Size(62, 24);
this.btnDel.TabIndex = 40;
this.btnDel.Text = "删除";
this.btnDel.UseVisualStyleBackColor = true;
this.btnDel.Click += new System.EventHandler(this.BtnDel_Click);
//
// btnEdit
//
this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnEdit.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnEdit.Location = new System.Drawing.Point(910, 30);
this.btnEdit.Name = "btnEdit";
this.btnEdit.Size = new System.Drawing.Size(62, 24);
this.btnEdit.TabIndex = 39;
this.btnEdit.Text = "修改";
this.btnEdit.UseVisualStyleBackColor = true;
this.btnEdit.Click += new System.EventHandler(this.BtnEdit_Click);
//
// btnAdd
//
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnAdd.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnAdd.Location = new System.Drawing.Point(842, 30);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(62, 24);
this.btnAdd.TabIndex = 38;
this.btnAdd.Text = "添加";
this.btnAdd.UseVisualStyleBackColor = true;
this.btnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
//
// LvCbResult
//
this.LvCbResult.AllColumns.Add(this.OlvName);
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.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;
//
// OlvName
//
this.OlvName.Text = "名称";
this.OlvName.Width = 200;
//
// OlvAddTime
//
this.OlvAddTime.Text = "时间";
this.OlvAddTime.Width = 200;
//
// FrmView
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1052, 667);
this.Controls.Add(this.LvCbResult);
this.Controls.Add(this.btnDel);
this.Controls.Add(this.btnEdit);
this.Controls.Add(this.btnAdd);
this.Controls.Add(this.ctlMyPage1);
this.Controls.Add(this.rySearch1);
this.Name = "FrmView";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "浏览";
this.Load += new System.EventHandler(this.FrmView_Load);
this.contextMenuStrip1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.LvCbResult)).EndInit();
this.ResumeLayout(false);
}
#endregion
private ryControls.rySearch rySearch1;
private MyPage.ctlMyPage ctlMyPage1;
private ryControls.ButtonEx btnDel;
private ryControls.ButtonEx btnEdit;
private ryControls.ButtonEx btnAdd;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
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

@ -1,129 +1,123 @@
<?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>
<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">
<value>269, 21</value>
</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>
<?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>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>269, 21</value>
</metadata>
</root>

View File

@ -28,165 +28,171 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAbout));
this.pnlTopLogo = new System.Windows.Forms.Panel();
this.lblTitle = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lblVisitUrl = new System.Windows.Forms.Label();
this.LblQQ_Qun = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label3 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.pnlTopLogo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pnlTopLogo
//
this.pnlTopLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
this.pnlTopLogo.Controls.Add(this.lblTitle);
this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlTopLogo.Location = new System.Drawing.Point(0, 0);
this.pnlTopLogo.Name = "pnlTopLogo";
this.pnlTopLogo.Size = new System.Drawing.Size(493, 59);
this.pnlTopLogo.TabIndex = 8;
//
// lblTitle
//
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTitle.ForeColor = System.Drawing.Color.White;
this.lblTitle.Location = new System.Drawing.Point(12, 22);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(110, 16);
this.lblTitle.TabIndex = 0;
this.lblTitle.Text = "睿元管理系统";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 67);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 12);
this.label1.TabIndex = 9;
this.label1.Text = "官网:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(53, 67);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(0, 12);
this.label2.TabIndex = 10;
//
// lblVisitUrl
//
this.lblVisitUrl.AutoSize = true;
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.ForeColor = System.Drawing.Color.Blue;
this.lblVisitUrl.Location = new System.Drawing.Point(53, 67);
this.lblVisitUrl.Name = "lblVisitUrl";
this.lblVisitUrl.Size = new System.Drawing.Size(77, 12);
this.lblVisitUrl.TabIndex = 11;
this.lblVisitUrl.Text = "立即访问官网";
this.lblVisitUrl.Click += new System.EventHandler(this.LblVisitUrl_Click);
//
// LblQQ_Qun
//
this.LblQQ_Qun.AutoSize = true;
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.ForeColor = System.Drawing.Color.Blue;
this.LblQQ_Qun.Location = new System.Drawing.Point(234, 67);
this.LblQQ_Qun.Name = "LblQQ_Qun";
this.LblQQ_Qun.Size = new System.Drawing.Size(59, 12);
this.LblQQ_Qun.TabIndex = 14;
this.LblQQ_Qun.Text = "183161992";
this.toolTip1.SetToolTip(this.LblQQ_Qun, "点击复制");
this.LblQQ_Qun.Click += new System.EventHandler(this.LblQQ_Qun_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(234, 67);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(0, 12);
this.label4.TabIndex = 13;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(193, 67);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(35, 12);
this.label5.TabIndex = 12;
this.label5.Text = "QQ群:";
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(85, 105);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(319, 174);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox1.TabIndex = 17;
this.pictureBox1.TabStop = false;
//
// label3
//
this.label3.AutoSize = true;
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.Name = "label3";
this.label3.Size = new System.Drawing.Size(365, 12);
this.label3.TabIndex = 18;
this.label3.Text = "注:本软件永久免费,您可以任意分发分享本软件,但不得破解本软件";
//
// label6
//
this.label6.AutoSize = true;
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.Name = "label6";
this.label6.Size = new System.Drawing.Size(285, 12);
this.label6.TabIndex = 19;
this.label6.Text = "支持微信或支付宝进行捐助,您可以捐助任意金额";
//
// FrmAbout
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(493, 318);
this.Controls.Add(this.label6);
this.Controls.Add(this.label3);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.LblQQ_Qun);
this.Controls.Add(this.label4);
this.Controls.Add(this.label5);
this.Controls.Add(this.lblVisitUrl);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pnlTopLogo);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "FrmAbout";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "关于";
this.Load += new System.EventHandler(this.FrmAbout_Load);
this.pnlTopLogo.ResumeLayout(false);
this.pnlTopLogo.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAbout));
this.pnlTopLogo = new System.Windows.Forms.Panel();
this.lblTitle = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lblVisitUrl = new System.Windows.Forms.Label();
this.LblQQ_Qun = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label3 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.pnlTopLogo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pnlTopLogo
//
this.pnlTopLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
this.pnlTopLogo.Controls.Add(this.lblTitle);
this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlTopLogo.Location = new System.Drawing.Point(1, 27);
this.pnlTopLogo.Name = "pnlTopLogo";
this.pnlTopLogo.Size = new System.Drawing.Size(507, 59);
this.pnlTopLogo.TabIndex = 8;
//
// lblTitle
//
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTitle.ForeColor = System.Drawing.Color.White;
this.lblTitle.Location = new System.Drawing.Point(12, 22);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(110, 16);
this.lblTitle.TabIndex = 0;
this.lblTitle.Text = "睿元管理系统";
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Location = new System.Drawing.Point(12, 67);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 12);
this.label1.TabIndex = 9;
this.label1.Text = "官网:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(53, 67);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(0, 12);
this.label2.TabIndex = 10;
//
// lblVisitUrl
//
this.lblVisitUrl.AutoSize = true;
this.lblVisitUrl.BackColor = System.Drawing.Color.Transparent;
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.ForeColor = System.Drawing.Color.Blue;
this.lblVisitUrl.Location = new System.Drawing.Point(53, 67);
this.lblVisitUrl.Name = "lblVisitUrl";
this.lblVisitUrl.Size = new System.Drawing.Size(77, 12);
this.lblVisitUrl.TabIndex = 11;
this.lblVisitUrl.Text = "立即访问官网";
this.lblVisitUrl.Click += new System.EventHandler(this.LblVisitUrl_Click);
//
// LblQQ_Qun
//
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.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.Location = new System.Drawing.Point(234, 67);
this.LblQQ_Qun.Name = "LblQQ_Qun";
this.LblQQ_Qun.Size = new System.Drawing.Size(59, 12);
this.LblQQ_Qun.TabIndex = 14;
this.LblQQ_Qun.Text = "183161992";
this.toolTip1.SetToolTip(this.LblQQ_Qun, "点击复制");
this.LblQQ_Qun.Click += new System.EventHandler(this.LblQQ_Qun_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(234, 67);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(0, 12);
this.label4.TabIndex = 13;
//
// label5
//
this.label5.AutoSize = true;
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Location = new System.Drawing.Point(193, 67);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(35, 12);
this.label5.TabIndex = 12;
this.label5.Text = "QQ群:";
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(85, 105);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(319, 174);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox1.TabIndex = 17;
this.pictureBox1.TabStop = false;
//
// label3
//
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.Location = new System.Drawing.Point(13, 297);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(365, 12);
this.label3.TabIndex = 18;
this.label3.Text = "注:本软件永久免费,您可以任意分发分享本软件,但不得破解本软件";
//
// label6
//
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.Location = new System.Drawing.Point(100, 90);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(285, 12);
this.label6.TabIndex = 19;
this.label6.Text = "支持微信或支付宝进行捐助,您可以捐助任意金额";
//
// FrmAbout
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(509, 336);
this.Controls.Add(this.label6);
this.Controls.Add(this.label3);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.LblQQ_Qun);
this.Controls.Add(this.label4);
this.Controls.Add(this.label5);
this.Controls.Add(this.lblVisitUrl);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pnlTopLogo);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "FrmAbout";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "关于";
this.Load += new System.EventHandler(this.FrmAbout_Load);
this.pnlTopLogo.ResumeLayout(false);
this.pnlTopLogo.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -31,20 +31,6 @@
private void InitializeComponent()
{
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.MenuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -55,17 +41,9 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.chromeTabControl1 = new ryControls.ChromeTabControl();
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.menuStrip1.SuspendLayout();
this.chromeTabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// notifyIcon1
@ -100,9 +78,9 @@
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
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.Size = new System.Drawing.Size(789, 25);
this.menuStrip1.Size = new System.Drawing.Size(787, 25);
this.menuStrip1.TabIndex = 2;
this.menuStrip1.Text = "menuStrip1";
//
@ -139,12 +117,12 @@
this.chromeTabControl1.Controls.Add(this.tabPage1);
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
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.SelectedIndex = 0;
this.chromeTabControl1.ShowAddButton = 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.TabContextMenuStrip = null;
this.chromeTabControl1.TabIndex = 0;
@ -152,106 +130,19 @@
//
// 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.Name = "tabPage1";
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.Text = "首页";
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
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
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.chromeTabControl1);
this.Name = "FrmStart";
@ -264,9 +155,6 @@
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.chromeTabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
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 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 ryCommon;
using ryCommonDb;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@ -11,19 +12,19 @@ using System.Windows.Forms;
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)
{
InitializeComponent();
prog_args = args;
//配置软件信息
notifyIcon1.Text = Soft_Info.Soft_Title;
Text = Soft_Info.Soft_Title + " V" + RySoft.VersionStr;
if (!Soft_Info.ShowTray) { notifyIcon1.Visible = false; }
if (!Soft_Info.DonateVisabled) { ToolStripMenuItem.Text = "关于"; }
if (Soft_Info.Soft_Url.Length == 0) { ToolStripMenuItem.PerformClick(); }
notifyIcon1.Text = Soft_ConstInfo.Soft_Title;
Text = Soft_ConstInfo.Soft_Title + " V" + RySoft.VersionStr;
if (!Soft_ConstInfo.ShowTray) { notifyIcon1.Visible = false; }
if (!Soft_ConstInfo.DonateVisabled) { ToolStripMenuItem.Text = "关于"; }
if (Soft_ConstInfo.Soft_Url.Length == 0) { ToolStripMenuItem.PerformClick(); }
notifyIcon1.Icon = Icon;
}
@ -43,29 +44,29 @@ namespace Itrycn_Project2
private void FrmStart_Shown(object sender, EventArgs e)
{
ryCommon.Ini ini = new Ini(Soft_Info.UserDataFolder + "\\Win.dat");
ini.WriteIni(Soft_Info.Soft_Id, "hwnd", Handle.ToInt32());
ryCommon.Ini ini = new Ini(Soft_ConstInfo.UserDataFolder + "\\Win.dat");
ini.WriteIni(Soft_ConstInfo.Soft_Id, "hwnd", Handle.ToInt32());
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();
}
}
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;
this.Hide();
notifyIcon1.ShowBalloonTip(3000, Soft_Info.Soft_Title, "软件已经最小化到此处,请右击托盘图标进行关闭。", ToolTipIcon.Info);
notifyIcon1.ShowBalloonTip(3000, Soft_ConstInfo.Soft_Title, "软件已经最小化到此处,请右击托盘图标进行关闭。", ToolTipIcon.Info);
return;
}
if (!Soft_Config.IsCanCloseForm)
if (!Soft_MemInfo.IsCanCloseForm)
{
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)
@ -107,7 +108,7 @@ namespace Itrycn_Project2
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (Soft_Info.DonateVisabled)
if (Soft_ConstInfo.DonateVisabled)
{
FrmAbout frm = new FrmAbout();
frm.ShowDialog();
@ -115,47 +116,39 @@ namespace Itrycn_Project2
}
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)
{
ryCommon.RyFiles.OpenUrl(Soft_Info.Soft_Url);
ryCommon.RyFiles.OpenUrl(Soft_ConstInfo.Soft_Url);
}
private void FrmStart_Load(object sender, EventArgs e)
{
RyFiles.AddDropDrag(tabPage1.Handle);
Itrycn_Project.Itrycn_Db.CreateTable();
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Soft_Info.Update_Url);
//Itrycn_Project.Itrycn_Db.CreateTable();
//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();
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>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
@ -59,14 +59,11 @@
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="XPTable">
<HintPath>..\..\Bin\Debug\CommonControls\.NET4\XPTable.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="clsForm.cs" />
<Compile Include="Config\Itrycn_Db.cs" />
<Compile Include="Config\Soft_Config.cs" />
<Compile Include="Config\Public_Config.cs" />
<Compile Include="DbOp\FrmAdd.cs">
<SubType>Form</SubType>
</Compile>
@ -91,12 +88,6 @@
<Compile Include="FrmStart.Designer.cs">
<DependentUpon>FrmStart.cs</DependentUpon>
</Compile>
<Compile Include="FrmTest.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmTest.Designer.cs">
<DependentUpon>FrmTest.cs</DependentUpon>
</Compile>
<Compile Include="OTools\FrmScan.cs">
<SubType>Form</SubType>
</Compile>
@ -118,6 +109,26 @@
<Compile Include="Config\Soft_Info.cs" />
<Compile Include="Program.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">
<DependentUpon>FrmAdd.cs</DependentUpon>
</EmbeddedResource>
@ -130,9 +141,6 @@
<EmbeddedResource Include="FrmStart.resx">
<DependentUpon>FrmStart.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmTest.resx">
<DependentUpon>FrmTest.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OTools\FrmScan.resx">
<DependentUpon>FrmScan.cs</DependentUpon>
</EmbeddedResource>
@ -152,6 +160,15 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</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">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
@ -175,10 +192,6 @@
<Project>{9eca3a84-8545-4c4d-84d6-d23e3bdf2d90}</Project>
<Name>ryControlsV4</Name>
</ProjectReference>
<ProjectReference Include="..\RyPrint\RyPrint.csproj">
<Project>{B6784652-825A-482C-8A21-08E2539AF2BF}</Project>
<Name>RyPrint</Name>
</ProjectReference>
<ProjectReference Include="..\ryUpdate\ryUpdateV4.csproj">
<Project>{11a63e24-0257-4c54-a109-f1a609a52a62}</Project>
<Name>ryUpdateV4</Name>

View File

@ -1,176 +1,352 @@
namespace Itrycn_Project2
{
partial class FrmScan
{
/// <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.components = new System.ComponentModel.Container();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.MenuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.退ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.chromeTabControl1 = new ryControls.ChromeTabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.MenuTray.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.chromeTabControl1.SuspendLayout();
this.SuspendLayout();
//
// notifyIcon1
//
this.notifyIcon1.ContextMenuStrip = this.MenuTray;
this.notifyIcon1.Visible = true;
this.notifyIcon1.DoubleClick += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// MenuTray
//
this.MenuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.退ToolStripMenuItem});
this.MenuTray.Name = "MenuTray";
this.MenuTray.Size = new System.Drawing.Size(137, 48);
//
// 显示主窗体ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "显示主窗体ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(136, 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(136, 22);
this.退ToolStripMenuItem.Text = "退出软件";
this.退ToolStripMenuItem.Click += new System.EventHandler(this.退ToolStripMenuItem_Click);
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(789, 25);
this.menuStrip1.TabIndex = 2;
this.menuStrip1.Text = "menuStrip1";
//
// 关于ToolStripMenuItem
//
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "关于ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
this.ToolStripMenuItem.Text = "关于";
//
// 打开官网ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "打开官网ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(136, 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(136, 22);
this.ToolStripMenuItem.Text = "关于和捐助";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// chromeTabControl1
//
this.chromeTabControl1.AllowDragTab = false;
this.chromeTabControl1.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.chromeTabControl1.BackTabPageImage = null;
this.chromeTabControl1.Controls.Add(this.tabPage1);
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25);
this.chromeTabControl1.Location = new System.Drawing.Point(1, 28);
this.chromeTabControl1.Name = "chromeTabControl1";
this.chromeTabControl1.SelectedIndex = 0;
this.chromeTabControl1.ShowAddButton = false;
this.chromeTabControl1.ShowCloseButton = false;
this.chromeTabControl1.Size = new System.Drawing.Size(787, 506);
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.chromeTabControl1.TabContextMenuStrip = null;
this.chromeTabControl1.TabIndex = 0;
this.chromeTabControl1.TabMaxWidth = 100;
//
// tabPage1
//
this.tabPage1.Location = new System.Drawing.Point(1, 29);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(785, 476);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "首页";
this.tabPage1.UseVisualStyleBackColor = true;
//
// FrmStart
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(789, 538);
this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.chromeTabControl1);
this.Name = "FrmStart";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmStart";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmStart_FormClosing);
this.Load += new System.EventHandler(this.FrmStart_Load);
this.Shown += new System.EventHandler(this.FrmStart_Shown);
this.MenuTray.ResumeLayout(false);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.chromeTabControl1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private ryControls.ChromeTabControl chromeTabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.ContextMenuStrip MenuTray;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem 退ToolStripMenuItem;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
namespace Itrycn_Project2
{
partial class FrmScan
{
/// <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.components = new System.ComponentModel.Container();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.MenuTray = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.退ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.chromeTabControl1 = new ryControls.ChromeTabControl();
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.menuStrip1.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();
//
// notifyIcon1
//
this.notifyIcon1.ContextMenuStrip = this.MenuTray;
this.notifyIcon1.Visible = true;
this.notifyIcon1.DoubleClick += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// MenuTray
//
this.MenuTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.退ToolStripMenuItem});
this.MenuTray.Name = "MenuTray";
this.MenuTray.Size = new System.Drawing.Size(137, 48);
//
// 显示主窗体ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "显示主窗体ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(136, 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(136, 22);
this.退ToolStripMenuItem.Text = "退出软件";
this.退ToolStripMenuItem.Click += new System.EventHandler(this.退ToolStripMenuItem_Click);
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(1, 27);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(802, 25);
this.menuStrip1.TabIndex = 2;
this.menuStrip1.Text = "menuStrip1";
//
// 关于ToolStripMenuItem
//
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "关于ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
this.ToolStripMenuItem.Text = "关于";
//
// 打开官网ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "打开官网ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(136, 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(136, 22);
this.ToolStripMenuItem.Text = "关于和捐助";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// chromeTabControl1
//
this.chromeTabControl1.AllowDragTab = false;
this.chromeTabControl1.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.chromeTabControl1.BackTabPageImage = null;
this.chromeTabControl1.Controls.Add(this.tabPage1);
this.chromeTabControl1.Controls.Add(this.TabLogs);
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25);
this.chromeTabControl1.Location = new System.Drawing.Point(1, 55);
this.chromeTabControl1.Name = "chromeTabControl1";
this.chromeTabControl1.SelectedIndex = 0;
this.chromeTabControl1.ShowAddButton = false;
this.chromeTabControl1.ShowCloseButton = false;
this.chromeTabControl1.Size = new System.Drawing.Size(802, 513);
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.chromeTabControl1.TabContextMenuStrip = null;
this.chromeTabControl1.TabIndex = 0;
this.chromeTabControl1.TabMaxWidth = 100;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.BtnScan);
this.tabPage1.Controls.Add(this.LvCbResult);
this.tabPage1.Location = new System.Drawing.Point(1, 29);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(800, 483);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "首页";
this.tabPage1.UseVisualStyleBackColor = true;
//
// 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.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(804, 596);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.chromeTabControl1);
this.Name = "FrmScan";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "扫描";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmStart_FormClosing);
this.Load += new System.EventHandler(this.FrmStart_Load);
this.Shown += new System.EventHandler(this.FrmStart_Shown);
this.MenuTray.ResumeLayout(false);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.chromeTabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
((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.PerformLayout();
}
#endregion
private ryControls.ChromeTabControl chromeTabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.ContextMenuStrip MenuTray;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem 退ToolStripMenuItem;
private System.Windows.Forms.MenuStrip menuStrip1;
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

@ -1,135 +1,197 @@
using Itrycn_Project;
using ryCommon;
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 FrmScan : Form
{
string[] prog_args;
public FrmScan(string[] args)
{
InitializeComponent();
prog_args = args;
//配置软件信息
notifyIcon1.Text = Soft_Info.Soft_Title;
Text = Soft_Info.Soft_Title + " V" + RySoft.VersionStr;
if (!Soft_Info.ShowTray) { notifyIcon1.Visible = false; }
if (!Soft_Info.DonateVisabled) { ToolStripMenuItem.Text = "关于"; }
if (Soft_Info.Soft_Url.Length == 0) { ToolStripMenuItem.PerformClick(); }
notifyIcon1.Icon = Icon;
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Normal;
var topmost = this.TopMost;
this.TopMost = true;
this.Show();
this.TopMost = topmost;
}
private void 退ToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void FrmStart_Shown(object sender, EventArgs e)
{
ryCommon.Ini ini = new Ini(Soft_Info.UserDataFolder + "\\Win.dat");
ini.WriteIni(Soft_Info.Soft_Id, "hwnd", Handle.ToInt32());
if (prog_args.Length >= 1)
{
//如果是自启动,并且开启了右下角托盘图标,则隐藏自身。
if (prog_args[0] == Soft_Info.Soft_Pram && Soft_Info.ShowTray)
this.Hide();
}
}
private void FrmStart_FormClosing(object sender, FormClosingEventArgs e)
{
if (Soft_Info.ShowTray && Soft_Config.HideByCloseBtn && e.CloseReason== CloseReason.UserClosing)
{
e.Cancel = true;
this.Hide();
notifyIcon1.ShowBalloonTip(3000, Soft_Info.Soft_Title, "软件已经最小化到此处,请右击托盘图标进行关闭。", ToolTipIcon.Info);
return;
}
if (!Soft_Config.IsCanCloseForm)
{
e.Cancel = true;
MessageBox.Show("当前还有操作正在运行,请稍后关闭软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
protected override void WndProc(ref System.Windows.Forms.Message msg)
{
switch (msg.Msg)
{
case 17189: //处理消息
{
#region
switch (msg.WParam.ToInt32())
{
case 100://
#region
if ((int)msg.LParam.ToInt32() == 100)
{
this.Show();
this.WindowState = FormWindowState.Normal;
this.Top = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2;
this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2;
//RyForm.SetActiveWindow(Handle);
RyForm.BringToTop(Handle);
ToolStripMenuItem.PerformClick();
this.BringToFront();
this.Select();
this.Focus();
RyForm.BringToTop(Handle);
}
#endregion
break;
}
#endregion
}
break;
default:
base.WndProc(ref msg);//调用基类函数处理非自定义消息。
break;
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (Soft_Info.DonateVisabled)
{
FrmAbout frm = new FrmAbout();
frm.ShowDialog();
frm.Dispose();
}
else
{
MessageBox.Show(Soft_Info.AboutText.Replace("#softname#", Soft_Info.Soft_Title).Replace("#ver#", "V" + RySoft.VersionStr), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
ryCommon.RyFiles.OpenUrl(Soft_Info.Soft_Url);
}
private void FrmStart_Load(object sender, EventArgs e)
{
//Itrycn_Project.Itrycn_Db.CreateTable();
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Soft_Info.Update_Url);
update.CheckUpdate();
}
}
}
using Itrycn_Project;
using ryCommon;
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 Itrycn_Project2
{
public partial class FrmScan : RySkins.SKinForm
{
string[] prog_args;
public FrmScan(string[] args)
{
InitializeComponent();
prog_args = args;
//配置软件信息
notifyIcon1.Text = Soft_ConstInfo.Soft_Title;
Text = Soft_ConstInfo.Soft_Title + " V" + RySoft.VersionStr;
if (!Soft_ConstInfo.ShowTray) { notifyIcon1.Visible = false; }
if (!Soft_ConstInfo.DonateVisabled) { ToolStripMenuItem.Text = "关于"; }
if (Soft_ConstInfo.Soft_Url.Length == 0) { ToolStripMenuItem.PerformClick(); }
notifyIcon1.Icon = Icon;
OlvLog.AspectName = "LogText";
OlvLogTime.AspectName = "LogTime";
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Normal;
var topmost = this.TopMost;
this.TopMost = true;
this.Show();
this.TopMost = topmost;
}
private void 退ToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void FrmStart_Shown(object sender, EventArgs e)
{
ryCommon.Ini ini = new Ini(Soft_ConstInfo.UserDataFolder + "\\Win.dat");
ini.WriteIni(Soft_ConstInfo.Soft_Id, "hwnd", Handle.ToInt32());
if (prog_args.Length >= 1)
{
//如果是自启动,并且开启了右下角托盘图标,则隐藏自身。
if (prog_args[0] == Soft_ConstInfo.Soft_Pram && Soft_ConstInfo.ShowTray)
this.Hide();
}
}
private void FrmStart_FormClosing(object sender, FormClosingEventArgs e)
{
if (Soft_ConstInfo.ShowTray && Public_Config.HideByCloseBtn && e.CloseReason== CloseReason.UserClosing)
{
e.Cancel = true;
this.Hide();
notifyIcon1.ShowBalloonTip(3000, Soft_ConstInfo.Soft_Title, "软件已经最小化到此处,请右击托盘图标进行关闭。", ToolTipIcon.Info);
return;
}
if (!Soft_MemInfo.IsCanCloseForm)
{
e.Cancel = true;
MessageBox.Show("当前还有操作正在运行,请稍后关闭软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
protected override void WndProc(ref System.Windows.Forms.Message msg)
{
switch (msg.Msg)
{
case 17189: //处理消息
{
#region
switch (msg.WParam.ToInt32())
{
case 100://
#region
if ((int)msg.LParam.ToInt32() == 100)
{
this.Show();
this.WindowState = FormWindowState.Normal;
this.Top = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2;
this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2;
//RyForm.SetActiveWindow(Handle);
RyForm.BringToTop(Handle);
ToolStripMenuItem.PerformClick();
this.BringToFront();
this.Select();
this.Focus();
RyForm.BringToTop(Handle);
}
#endregion
break;
}
#endregion
}
break;
default:
base.WndProc(ref msg);//调用基类函数处理非自定义消息。
break;
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (Soft_ConstInfo.DonateVisabled)
{
FrmAbout frm = new FrmAbout();
frm.ShowDialog();
frm.Dispose();
}
else
{
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)
{
ryCommon.RyFiles.OpenUrl(Soft_ConstInfo.Soft_Url);
}
private void FrmStart_Load(object sender, EventArgs e)
{
//Itrycn_Project.Itrycn_Db.CreateTable();
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Soft_ConstInfo.Update_Url);
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

@ -1,132 +1,138 @@
<?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>
<metadata name="notifyIcon1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="MenuTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>135, 17</value>
</metadata>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>246, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>54</value>
</metadata>
<?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>
<metadata name="notifyIcon1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="MenuTray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>135, 17</value>
</metadata>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>246, 17</value>
</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">
<value>54</value>
</metadata>
</root>

View File

@ -42,7 +42,7 @@ namespace Itrycn
if (LoginSuccess)
{
#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)
{
ryIni.WriteIni("User", "id", LoginPram.UserId);
@ -77,12 +77,12 @@ namespace Itrycn
private void FrmLogin_Load(object sender, EventArgs e)
{
lblTitle.Text = Soft_Info.Soft_Title;
if (System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(Soft_Info.UserDataFolder)))
lblTitle.Text = Soft_ConstInfo.Soft_Title;
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);
if(txtUserId.Text!="")
{ chkRememberUserId.Checked = true; }

View File

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

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Itrycn_Project")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.2103.1301")]
[assembly: AssemblyFileVersion("1.0.2103.1301")]
[assembly: AssemblyVersion("1.0.2106.1201")]
[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>
/// Required designer variable.
@ -29,34 +29,21 @@ namespace Itrycn_Project2
/// </summary>
private void InitializeComponent()
{
this.buttonEx1 = new ryControls.ButtonEx();
this.SuspendLayout();
//
// buttonEx1
// SKinForm
//
this.buttonEx1.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.buttonEx1.Location = new System.Drawing.Point(320, 357);
this.buttonEx1.Name = "buttonEx1";
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.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(594, 521);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.IconSize = new System.Drawing.Size(20, 20);
this.Name = "FrmTest";
this.Text = "FrmTest";
this.Name = "SKinForm";
this.Text = "SKinForm";
this.Load += new System.EventHandler(this.SKinForm_Load);
this.ResumeLayout(false);
}
#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

@ -28,104 +28,104 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSetting));
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.chkAutoLogin = new System.Windows.Forms.CheckBox();
this.btnCancel = new ryControls.ButtonEx();
this.btnOK = new ryControls.ButtonEx();
this.ChkAutoRun = new System.Windows.Forms.CheckBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.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.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Location = new System.Drawing.Point(2, 3);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(628, 430);
this.tabControl1.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.ChkAutoRun);
this.tabPage1.Controls.Add(this.chkAutoLogin);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(620, 404);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "普通";
this.tabPage1.UseVisualStyleBackColor = true;
//
// chkAutoLogin
//
this.chkAutoLogin.AutoSize = true;
this.chkAutoLogin.Location = new System.Drawing.Point(13, 12);
this.chkAutoLogin.Name = "chkAutoLogin";
this.chkAutoLogin.Size = new System.Drawing.Size(264, 16);
this.chkAutoLogin.TabIndex = 0;
this.chkAutoLogin.Text = "下次启动软件进行自动登陆(重启软件后生效)";
this.chkAutoLogin.UseVisualStyleBackColor = true;
//
// btnCancel
//
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.Location = new System.Drawing.Point(541, 443);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(79, 30);
this.btnCancel.TabIndex = 22;
this.btnCancel.Text = "取消";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
//
// btnOK
//
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.Location = new System.Drawing.Point(456, 443);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(79, 30);
this.btnOK.TabIndex = 21;
this.btnOK.Text = "保存";
this.btnOK.UseVisualStyleBackColor = true;
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
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(630, 485);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.tabControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmSetting";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "设置";
this.Load += new System.EventHandler(this.FrmSetting_Load);
this.Resize += new System.EventHandler(this.FrmSetting_Resize);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.ResumeLayout(false);
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSetting));
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.ChkAutoRun = new System.Windows.Forms.CheckBox();
this.chkAutoLogin = new System.Windows.Forms.CheckBox();
this.btnCancel = new ryControls.ButtonEx();
this.btnOK = new ryControls.ButtonEx();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.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.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Location = new System.Drawing.Point(2, 30);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(628, 440);
this.tabControl1.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.ChkAutoRun);
this.tabPage1.Controls.Add(this.chkAutoLogin);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(620, 414);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "普通";
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
//
this.chkAutoLogin.AutoSize = true;
this.chkAutoLogin.Location = new System.Drawing.Point(13, 12);
this.chkAutoLogin.Name = "chkAutoLogin";
this.chkAutoLogin.Size = new System.Drawing.Size(264, 16);
this.chkAutoLogin.TabIndex = 0;
this.chkAutoLogin.Text = "下次启动软件进行自动登陆(重启软件后生效)";
this.chkAutoLogin.UseVisualStyleBackColor = true;
//
// 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(541, 480);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(79, 30);
this.btnCancel.TabIndex = 22;
this.btnCancel.Text = "取消";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
//
// btnOK
//
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.Location = new System.Drawing.Point(456, 480);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(79, 30);
this.btnOK.TabIndex = 21;
this.btnOK.Text = "保存";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.BtnOK_Click);
//
// FrmSetting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(630, 522);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.tabControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmSetting";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "设置";
this.Load += new System.EventHandler(this.FrmSetting_Load);
this.Resize += new System.EventHandler(this.FrmSetting_Resize);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.ResumeLayout(false);
}
#endregion

View File

@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace Itrycn_Project
{
public partial class FrmSetting : Form
public partial class FrmSetting : RySkins.SKinForm
{
public FrmSetting()
{
@ -30,17 +30,17 @@ namespace Itrycn_Project
{
mySetting.Save();
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;
}
ryControls.RySetting mySetting = new ryControls.RySetting();
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.Read();
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

@ -1,197 +1,197 @@
<?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.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALu+nQCUlIQAfXx1WoaF
eteGhXrXhoV614WEetN7enNGh4d7AHNxbgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdFjcAHRY3AB0WNwAdFjcAHRY3AAAAAAA4MkgAZGFlAFpX
XguNjH+2lZWE/5WVhP+VlYT/lZWE/4uKfZ8pIj8EVFFbACkjPwAAAAAAHRY3AB0WNwAdFjcAHRY3AB0W
NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHRY3AJiYhgB2dXAAkZCBAGZkZgAzLkUAFQ0yABQM
MQCoqZAAf352WpOTg/eVlYT/lZWE/5WVhP+VlYT/kpGC7nt5c0WQkIEAAAAAAA8ILgAyLEUAaWZoAIWE
egBhXmIAY2BkAB0WNwAAAAAAAAAAAAAAAAAAAAAAAAAAAB0WNwCkpY4AeHZxAGNgZBlzcW5XYV5iKCAZ
OQj///8A////AG5sazaOjX/XlZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/jIt+yGdlZyno7bkA///2ABkS
NAdiX2MqcG1sSExIVQlgXWIAYl9jAB0WNwAAAAAAAAAAAAAAAAAdFjcAo6SNAHh2cQBdWmAXh4Z7qZKR
gvuMjH7ihYR5tX59dpN/fXaUjIx+2pWVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/i4p9z3x6
dIZ9fHWKhIN5so2Mf+KQkIHzgH93fCkiPwZfXGEAYV5jAB0WNwAAAAAAAAAAAAAAEwB/fnYAYF1iGIaG
e6mUlIP/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lJSD/5SUhP+VlYT/lZWE/5WVhP+SkoL3gH52ejgzSQddWmAAAAAAAAAAAAAAAAAAYl9jAAIA
JgGIiHyOlJSD/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+SkoL3g4J4YJmahwAxK0QAAAAAAAAA
AAB6eHIAoqOMAJOTg3mVlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhPuSkYJXl5eFAD45
TAAAAAAAAAAAAIB+dgCRkYEAj4+ANJSUhO6VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lJSD/5SUg/+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lJSD2o2N
fxyNjX8ARUBQAAAAAAAAAAAAHRY3AIeGewCIh3sTk5OD0ZWVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+UlIP/lpaF/5ubi/+fn4//n5+P/5qaiv+VlYT/lJSD/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+TkoKzeXdyBXx6dAAAAAAAAAAAAAAAAAAjHTsAcG5sAHd2cQqSkYLDlZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lZWE/6Kikv+0tKf/vr6y/8HBtf/BwbX/vb2x/7KypP+fn4//lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lZWE/5CQgaH///8AJyE+AB0WNwAAAAAAQj1PACkiPgCMjH4Ac3FuMZGRgeKVlYT/lZWE/5WV
hP+VlYT/lZWE/5aWhf+rq53/wcG1/8XFufzExLjZxMS4t8TEuLvExLjgxcW5/7+/s/+np5f/lZWE/5WV
hP+VlYT/lZWE/5WVhP+VlYT/j46Ay2ViZRt5d3IAAAAaADAqQwByb20AAAAAAG1qajuKin3FlZWE/5WV
hP+VlYT/lZWE/5WVhP+VlYT/qama/8PDt//ExLjmw8O4bcPDtxvDw7cGw8O3B8PDtyPDw7iCxMS48cHB
tf+jo5T/lJSD/5WVhP+VlYT/lZWE/5WVhP+UlIP+h4Z7rmRhZCj5/8QAZ2VnAGdlZzN+fXWIjo6A5pWV
hP+VlYT/lZWE/5WVhP+VlYT/lZWE/5ycjP++vrH/xMS47sLCt1LGx7oAw8O3AMPDtwDDw7cAw8O3AAAA
AADCwrdvxcW5+bm5rP+YmIj/lZWE/5WVhP+VlYT/lZWE/5WVhP+UlIT/jIt+2Hp4c3RhXmMkjYx/3pSU
g/+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+UlIP/qama/8TEuP/CwraakpCRAby7sgDAwLUAAAAAACAZ
OQDBwbUAvr2zALm4rwvCwre6w8O3/6OjlP+UlIP/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/k5OD/4uK
fbuTk4PwlZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+zs6X/xMS4+728slPCwrcAv7+0AAAA
AAAAAAAAAAAAAAAAAADb3MoAzc2/AL6+tHbExLj/rKyd/5SUg/+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/kpKC0Zybi+2fno3/n52N/p+djf6fnY3+n52N/p+djf6fnY3+n56N/rm4q//Dw7j2tbWtQLu7
sQAhGjoAAAAAAAAAAAAAAAAAAAAAAFVQYgDGxroAubmwYcTEuP+zs6X/np2M/p+djf6fnY3+n52N/p+d
jf6fnY3+n52N/p+ejf+bmovPpKKR8aakk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/ubiq/8PD
uPyysapaxMS4AJybmQAdFjcAAAAAAAAAAAAdFjcA////AO7w2QC2tq19xMS4/7W0pf+mpJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqST/6OgkdOkopKgpqST6aakk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
kv+zsqP/xMS4/7a2rqhFQFYHcW14AGhkcQAdFjcAHRY3AIyKjQCIhooAgH2EFLu6scXDw7f/r62e/6ak
kv+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJPlpKKRiqalkwSlo5M1pqSTp6akk/qmpJP/pqST/6ak
k/+mpJP/pqST/6qomP/AwLP/wcC29aOin2kAAAACjYuOAFlVZgBfW2oAmpmYAC8pRQirqaSGw8O3/L29
r/+oppX/pqST/6akk/+mpJP/pqST/6akk/+mpJP2pqSTmaWjky2oppQDpKKSAKakkwCjoZEJpaOSgaak
k/qmpJP/pqST/6akk/+mpJP/pqST/7Kxov/Dw7f/vr608KakoYyBfoQyXFhoFWFdaxeIhYk8q6qkn8HA
tfjCwrX/r62e/6akk/+mpJP/pqST/6akk/+mpJP/pqST86WjkmyioJAEpqOTAKSikgCal4sApaOSAJ6c
jgCZlooSpKKSzqakk/+mpJP/pqST/6akk/+mpJP/p6WU/7SzpP/Cwrb/w8O3/7q6seq0s6vRtLSs1Ly8
su/ExLj/wcG0/7GvoP+mpJP/pqST/6akk/+mpJP/pqST/6akk/+joZGrj4yEBKGfkAClo5IAjYuCAAAA
AAAdFjcAgHx5AIJ/ewuioJDEpqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/66snP+6uav/wcCz/8PD
tv/Dw7b/wMCz/7i3qf+sqpr/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6Cdj5f//+8AAAAOAAAA
AAAAAAAAAAAAAB0WNwCLiIEAioeAHaKgkdumpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
lP+pqJf/rKqa/6yqmv+pp5f/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/oJ6Ptmhk
agdtaW0AHRY3AAAAAAAAAAAA/P3NAKOhkQCTkIZLpKKS96akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/+ioJDhiYZ/Jo6LgwAdFjcAAAAAAAAAAABhXGUA////AJyajJOmpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJP/pqST/6Wjkv6YlopdqKaUAB0WNwAAAAAAAAAAAIB9egDS0rEApKKSUqakk+empJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqSTwqOhkSWoppUAHRY3AAAAAAAAAAAAhIF8AJqYiwCoppQApaOSTqak
k+SmpJP/pqST/6akk/empJPnpqST5qakk/umpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/mmpJPkpqST6aakk/mmpJP/pqST/6akk8KkopImpaOSAK+tmQAdFjcAAAAAAAAAAAAAAAAAoqCQAKKg
kACqqJUApaOSTaakk7+mpJOHpqSTR6akkyampJMkpaOTdaakk/OmpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJPnpaOTYKakkyKmpJMppqSTTqakk5OmpJOspKKSJ6akkwCwr5oAm5mMAAAAAAAAAAAAAAAAAAAA
AAAAAAAAop+QAKKgkAD///8ApaOSDKimlQCmpJMApqSTAKWjkgCNioIBpaOShqakk/+mpJP/pqST/6ak
k/+mpJP/pqST+aSikmeqqJYApaOTAKakkwCmpJMAm5mMAKSikgimpJMAsK+aAJuZjAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAoqCRAKOhkQClo5IApaOSAKSikgB1cnIAo6GRAKKgkQChn5AZpaOSzqak
k/+mpJP/pqST/6akk/+lo5KynpyOCqGfkAChn5AAlZKHAKWjkgClo5IApKKSAJ+djgCcmo0AAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdFjcA////AK6s
mACkopJ2pqST+Kakk/ampJP2pqST8qOhkVWnpZMAqKaUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAA/+AH//BAAg/gAAAHwAAAA4AAAAGAAAABgAAAAYAAAAGAAAABgAAAA4AA
AAEAAAAAAAAAAAAAAAAAAQAAAAPAAAADwAAAAYAAAAAAAAAAAAAAAAAAAAAAAIAAAAOAAAABgAAAAYAA
AAGAAAABgAAAAcAAAAPgAAAH8AAAD//AB/8=
</value>
</data>
<?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.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALu+nQCUlIQAfXx1WoaF
eteGhXrXhoV614WEetN7enNGh4d7AHNxbgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdFjcAHRY3AB0WNwAdFjcAHRY3AAAAAAA4MkgAZGFlAFpX
XguNjH+2lZWE/5WVhP+VlYT/lZWE/4uKfZ8pIj8EVFFbACkjPwAAAAAAHRY3AB0WNwAdFjcAHRY3AB0W
NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHRY3AJiYhgB2dXAAkZCBAGZkZgAzLkUAFQ0yABQM
MQCoqZAAf352WpOTg/eVlYT/lZWE/5WVhP+VlYT/kpGC7nt5c0WQkIEAAAAAAA8ILgAyLEUAaWZoAIWE
egBhXmIAY2BkAB0WNwAAAAAAAAAAAAAAAAAAAAAAAAAAAB0WNwCkpY4AeHZxAGNgZBlzcW5XYV5iKCAZ
OQj///8A////AG5sazaOjX/XlZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/jIt+yGdlZyno7bkA///2ABkS
NAdiX2MqcG1sSExIVQlgXWIAYl9jAB0WNwAAAAAAAAAAAAAAAAAdFjcAo6SNAHh2cQBdWmAXh4Z7qZKR
gvuMjH7ihYR5tX59dpN/fXaUjIx+2pWVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/i4p9z3x6
dIZ9fHWKhIN5so2Mf+KQkIHzgH93fCkiPwZfXGEAYV5jAB0WNwAAAAAAAAAAAAAAEwB/fnYAYF1iGIaG
e6mUlIP/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lJSD/5SUhP+VlYT/lZWE/5WVhP+SkoL3gH52ejgzSQddWmAAAAAAAAAAAAAAAAAAYl9jAAIA
JgGIiHyOlJSD/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+SkoL3g4J4YJmahwAxK0QAAAAAAAAA
AAB6eHIAoqOMAJOTg3mVlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhPuSkYJXl5eFAD45
TAAAAAAAAAAAAIB+dgCRkYEAj4+ANJSUhO6VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lJSD/5SUg/+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lJSD2o2N
fxyNjX8ARUBQAAAAAAAAAAAAHRY3AIeGewCIh3sTk5OD0ZWVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+UlIP/lpaF/5ubi/+fn4//n5+P/5qaiv+VlYT/lJSD/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+TkoKzeXdyBXx6dAAAAAAAAAAAAAAAAAAjHTsAcG5sAHd2cQqSkYLDlZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lZWE/6Kikv+0tKf/vr6y/8HBtf/BwbX/vb2x/7KypP+fn4//lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/lZWE/5CQgaH///8AJyE+AB0WNwAAAAAAQj1PACkiPgCMjH4Ac3FuMZGRgeKVlYT/lZWE/5WV
hP+VlYT/lZWE/5aWhf+rq53/wcG1/8XFufzExLjZxMS4t8TEuLvExLjgxcW5/7+/s/+np5f/lZWE/5WV
hP+VlYT/lZWE/5WVhP+VlYT/j46Ay2ViZRt5d3IAAAAaADAqQwByb20AAAAAAG1qajuKin3FlZWE/5WV
hP+VlYT/lZWE/5WVhP+VlYT/qama/8PDt//ExLjmw8O4bcPDtxvDw7cGw8O3B8PDtyPDw7iCxMS48cHB
tf+jo5T/lJSD/5WVhP+VlYT/lZWE/5WVhP+UlIP+h4Z7rmRhZCj5/8QAZ2VnAGdlZzN+fXWIjo6A5pWV
hP+VlYT/lZWE/5WVhP+VlYT/lZWE/5ycjP++vrH/xMS47sLCt1LGx7oAw8O3AMPDtwDDw7cAw8O3AAAA
AADCwrdvxcW5+bm5rP+YmIj/lZWE/5WVhP+VlYT/lZWE/5WVhP+UlIT/jIt+2Hp4c3RhXmMkjYx/3pSU
g/+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+UlIP/qama/8TEuP/CwraakpCRAby7sgDAwLUAAAAAACAZ
OQDBwbUAvr2zALm4rwvCwre6w8O3/6OjlP+UlIP/lZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/k5OD/4uK
fbuTk4PwlZWE/5WVhP+VlYT/lZWE/5WVhP+VlYT/lZWE/5WVhP+zs6X/xMS4+728slPCwrcAv7+0AAAA
AAAAAAAAAAAAAAAAAADb3MoAzc2/AL6+tHbExLj/rKyd/5SUg/+VlYT/lZWE/5WVhP+VlYT/lZWE/5WV
hP+VlYT/kpKC0Zybi+2fno3/n52N/p+djf6fnY3+n52N/p+djf6fnY3+n56N/rm4q//Dw7j2tbWtQLu7
sQAhGjoAAAAAAAAAAAAAAAAAAAAAAFVQYgDGxroAubmwYcTEuP+zs6X/np2M/p+djf6fnY3+n52N/p+d
jf6fnY3+n52N/p+ejf+bmovPpKKR8aakk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/ubiq/8PD
uPyysapaxMS4AJybmQAdFjcAAAAAAAAAAAAdFjcA////AO7w2QC2tq19xMS4/7W0pf+mpJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqST/6OgkdOkopKgpqST6aakk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
kv+zsqP/xMS4/7a2rqhFQFYHcW14AGhkcQAdFjcAHRY3AIyKjQCIhooAgH2EFLu6scXDw7f/r62e/6ak
kv+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJPlpKKRiqalkwSlo5M1pqSTp6akk/qmpJP/pqST/6ak
k/+mpJP/pqST/6qomP/AwLP/wcC29aOin2kAAAACjYuOAFlVZgBfW2oAmpmYAC8pRQirqaSGw8O3/L29
r/+oppX/pqST/6akk/+mpJP/pqST/6akk/+mpJP2pqSTmaWjky2oppQDpKKSAKakkwCjoZEJpaOSgaak
k/qmpJP/pqST/6akk/+mpJP/pqST/7Kxov/Dw7f/vr608KakoYyBfoQyXFhoFWFdaxeIhYk8q6qkn8HA
tfjCwrX/r62e/6akk/+mpJP/pqST/6akk/+mpJP/pqST86WjkmyioJAEpqOTAKSikgCal4sApaOSAJ6c
jgCZlooSpKKSzqakk/+mpJP/pqST/6akk/+mpJP/p6WU/7SzpP/Cwrb/w8O3/7q6seq0s6vRtLSs1Ly8
su/ExLj/wcG0/7GvoP+mpJP/pqST/6akk/+mpJP/pqST/6akk/+joZGrj4yEBKGfkAClo5IAjYuCAAAA
AAAdFjcAgHx5AIJ/ewuioJDEpqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/66snP+6uav/wcCz/8PD
tv/Dw7b/wMCz/7i3qf+sqpr/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6Cdj5f//+8AAAAOAAAA
AAAAAAAAAAAAAB0WNwCLiIEAioeAHaKgkdumpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
lP+pqJf/rKqa/6yqmv+pp5f/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/oJ6Ptmhk
agdtaW0AHRY3AAAAAAAAAAAA/P3NAKOhkQCTkIZLpKKS96akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/+ioJDhiYZ/Jo6LgwAdFjcAAAAAAAAAAABhXGUA////AJyajJOmpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJP/pqST/6Wjkv6YlopdqKaUAB0WNwAAAAAAAAAAAIB9egDS0rEApKKSUqakk+empJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJP/pqST/6akk/+mpJP/pqSTwqOhkSWoppUAHRY3AAAAAAAAAAAAhIF8AJqYiwCoppQApaOSTqak
k+SmpJP/pqST/6akk/empJPnpqST5qakk/umpJP/pqST/6akk/+mpJP/pqST/6akk/+mpJP/pqST/6ak
k/mmpJPkpqST6aakk/mmpJP/pqST/6akk8KkopImpaOSAK+tmQAdFjcAAAAAAAAAAAAAAAAAoqCQAKKg
kACqqJUApaOSTaakk7+mpJOHpqSTR6akkyampJMkpaOTdaakk/OmpJP/pqST/6akk/+mpJP/pqST/6ak
k/+mpJPnpaOTYKakkyKmpJMppqSTTqakk5OmpJOspKKSJ6akkwCwr5oAm5mMAAAAAAAAAAAAAAAAAAAA
AAAAAAAAop+QAKKgkAD///8ApaOSDKimlQCmpJMApqSTAKWjkgCNioIBpaOShqakk/+mpJP/pqST/6ak
k/+mpJP/pqST+aSikmeqqJYApaOTAKakkwCmpJMAm5mMAKSikgimpJMAsK+aAJuZjAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAoqCRAKOhkQClo5IApaOSAKSikgB1cnIAo6GRAKKgkQChn5AZpaOSzqak
k/+mpJP/pqST/6akk/+lo5KynpyOCqGfkAChn5AAlZKHAKWjkgClo5IApKKSAJ+djgCcmo0AAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdFjcA////AK6s
mACkopJ2pqST+Kakk/ampJP2pqST8qOhkVWnpZMAqKaUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAA/+AH//BAAg/gAAAHwAAAA4AAAAGAAAABgAAAAYAAAAGAAAABgAAAA4AA
AAEAAAAAAAAAAAAAAAAAAQAAAAPAAAADwAAAAYAAAAAAAAAAAAAAAAAAAAAAAIAAAAOAAAABgAAAAYAA
AAGAAAABgAAAAcAAAAPgAAAH8AAAD//AB/8=
</value>
</data>
</root>

View File

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

View File

@ -54,6 +54,7 @@
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
@ -83,6 +84,11 @@
<Compile Include="MyDb\DbInterface.cs" />
<Compile Include="MyDb\ryQuickSQL.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\Base64.cs" />
<Compile Include="SafeCheck\MD5Sha1.cs" />
@ -104,8 +110,48 @@
<Compile Include="WinAPI\Structs.cs" />
<Compile Include="WinAPI\GDI32.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 />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.

View File

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

View File

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

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