### 2020-12-27 dev更新
------ #### ryControls V2.1.2012.2701 - *.[改进]IconViewEx控件选中背景颜色支持渐变。 - *.[改进]支持设置IconViewEx控件选中字体颜色。
This commit is contained in:
parent
6e8d41e3d4
commit
6bc527a8a2
Binary file not shown.
Binary file not shown.
Binary file not shown.
4864
Bin/Debug/CommonControls/.NET4 示例/MyDb.xml
Normal file
4864
Bin/Debug/CommonControls/.NET4 示例/MyDb.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,2 +1,2 @@
|
|||
[Money_Op]
|
||||
hwnd=3151110
|
||||
hwnd=3411152
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<root>
|
||||
<list id="LastUpdateTime" Value="2020/12/18 11:36:12" />
|
||||
<list id="LastUpdateTime" Value="2020/12/27 16:40:03" />
|
||||
<list id="UpdateAfterTime" Value="0" />
|
||||
</root>
|
||||
Binary file not shown.
|
|
@ -859,6 +859,18 @@
|
|||
热键文本框
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.HotkeyTextBox.Finalize">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.HotkeyTextBox.PreFilterMessage(System.Windows.Forms.Message@)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="m"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryControls.HotkeyTextBox.OnSizeChanged(System.EventArgs)">
|
||||
<summary>
|
||||
在控件大小变化时发生
|
||||
|
|
@ -931,6 +943,118 @@
|
|||
使用代码编辑器修改此方法的内容。
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:ryControls.IconViewEx">
|
||||
<summary>
|
||||
图标列表控件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.#ctor">
|
||||
<summary>
|
||||
图标列表控件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.IconSize">
|
||||
<summary>
|
||||
图标大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.TextHeight">
|
||||
<summary>
|
||||
文本显示高度(从底部算起)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.Icon">
|
||||
<summary>
|
||||
默认图标
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.IsDrawIcon">
|
||||
<summary>
|
||||
是否显示图标
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.IsDrawGridLines">
|
||||
<summary>
|
||||
是否显示网格线
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.OnDrawItem(System.Windows.Forms.DrawListViewItemEventArgs)">
|
||||
<summary>
|
||||
画项
|
||||
</summary>
|
||||
<param name="e"></param>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.SelectedStartBackColor">
|
||||
<summary>
|
||||
选择项的背景开始颜色
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.SelectedEndBackColor">
|
||||
<summary>
|
||||
选择项的背景结束颜色
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.SelectedBorderColor">
|
||||
<summary>
|
||||
选择项的边框颜色
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.SelectedForeColor">
|
||||
<summary>
|
||||
选择项的字体颜色
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.DrawSelectedBackground(System.Windows.Forms.DrawListViewItemEventArgs,System.Drawing.Graphics,System.Drawing.Rectangle)">
|
||||
<summary>
|
||||
重绘选中时背景
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.DrawIcon(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Image,System.Drawing.Color)">
|
||||
<summary>
|
||||
重绘图标
|
||||
</summary>
|
||||
<param name="g"></param>
|
||||
<param name="r">区域大小</param>
|
||||
<param name="image"></param>
|
||||
<param name="backColor"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.DrawText(System.Windows.Forms.DrawListViewItemEventArgs,System.Drawing.Graphics,System.Drawing.Rectangle,System.Int32)">
|
||||
<summary>
|
||||
重绘文本
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.GetFormatFlags(System.Windows.Forms.HorizontalAlignment)">
|
||||
<summary>
|
||||
获取文本对齐
|
||||
</summary>
|
||||
</member>
|
||||
<member name="E:ryControls.IconViewEx.HScroll">
|
||||
<summary>
|
||||
水平滚动条滚动事件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="E:ryControls.IconViewEx.VScroll">
|
||||
<summary>
|
||||
垂直滚动条滚动事件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.WndProc(System.Windows.Forms.Message@)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="m"></param>
|
||||
</member>
|
||||
<member name="T:ryControls.Interface.IItemInfo">
|
||||
<summary>
|
||||
列表项
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.Interface.IItemInfo.Image">
|
||||
<summary>
|
||||
图标
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:ryControls.MsgLink">
|
||||
<summary>
|
||||
|
||||
|
|
@ -1624,6 +1748,11 @@
|
|||
优先使用默认皮肤
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.rySearch.ColorGradient">
|
||||
<summary>
|
||||
背景色是否渐变
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.rySearch.BaseColor">
|
||||
<summary>
|
||||
按钮基础背景色
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
4864
Bin/Debug/CommonControls/.NET4/MyDb.xml
Normal file
4864
Bin/Debug/CommonControls/.NET4/MyDb.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -859,6 +859,18 @@
|
|||
热键文本框
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.HotkeyTextBox.Finalize">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.HotkeyTextBox.PreFilterMessage(System.Windows.Forms.Message@)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="m"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryControls.HotkeyTextBox.OnSizeChanged(System.EventArgs)">
|
||||
<summary>
|
||||
在控件大小变化时发生
|
||||
|
|
@ -931,6 +943,118 @@
|
|||
使用代码编辑器修改此方法的内容。
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:ryControls.IconViewEx">
|
||||
<summary>
|
||||
图标列表控件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.#ctor">
|
||||
<summary>
|
||||
图标列表控件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.IconSize">
|
||||
<summary>
|
||||
图标大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.TextHeight">
|
||||
<summary>
|
||||
文本显示高度(从底部算起)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.Icon">
|
||||
<summary>
|
||||
默认图标
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.IsDrawIcon">
|
||||
<summary>
|
||||
是否显示图标
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.IsDrawGridLines">
|
||||
<summary>
|
||||
是否显示网格线
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.OnDrawItem(System.Windows.Forms.DrawListViewItemEventArgs)">
|
||||
<summary>
|
||||
画项
|
||||
</summary>
|
||||
<param name="e"></param>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.SelectedStartBackColor">
|
||||
<summary>
|
||||
选择项的背景开始颜色
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.SelectedEndBackColor">
|
||||
<summary>
|
||||
选择项的背景结束颜色
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.SelectedBorderColor">
|
||||
<summary>
|
||||
选择项的边框颜色
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.IconViewEx.SelectedForeColor">
|
||||
<summary>
|
||||
选择项的字体颜色
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.DrawSelectedBackground(System.Windows.Forms.DrawListViewItemEventArgs,System.Drawing.Graphics,System.Drawing.Rectangle)">
|
||||
<summary>
|
||||
重绘选中时背景
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.DrawIcon(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Image,System.Drawing.Color)">
|
||||
<summary>
|
||||
重绘图标
|
||||
</summary>
|
||||
<param name="g"></param>
|
||||
<param name="r">区域大小</param>
|
||||
<param name="image"></param>
|
||||
<param name="backColor"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.DrawText(System.Windows.Forms.DrawListViewItemEventArgs,System.Drawing.Graphics,System.Drawing.Rectangle,System.Int32)">
|
||||
<summary>
|
||||
重绘文本
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.GetFormatFlags(System.Windows.Forms.HorizontalAlignment)">
|
||||
<summary>
|
||||
获取文本对齐
|
||||
</summary>
|
||||
</member>
|
||||
<member name="E:ryControls.IconViewEx.HScroll">
|
||||
<summary>
|
||||
水平滚动条滚动事件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="E:ryControls.IconViewEx.VScroll">
|
||||
<summary>
|
||||
垂直滚动条滚动事件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.IconViewEx.WndProc(System.Windows.Forms.Message@)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="m"></param>
|
||||
</member>
|
||||
<member name="T:ryControls.Interface.IItemInfo">
|
||||
<summary>
|
||||
列表项
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.Interface.IItemInfo.Image">
|
||||
<summary>
|
||||
图标
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:ryControls.MsgLink">
|
||||
<summary>
|
||||
|
||||
|
|
@ -1624,6 +1748,11 @@
|
|||
优先使用默认皮肤
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.rySearch.ColorGradient">
|
||||
<summary>
|
||||
背景色是否渐变
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ryControls.rySearch.BaseColor">
|
||||
<summary>
|
||||
按钮基础背景色
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1900,6 +1900,13 @@
|
|||
<param name="handle"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.RyFiles.AdminDragEnable(System.IntPtr)">
|
||||
<summary>
|
||||
使管理员方式运行时支持拖放
|
||||
</summary>
|
||||
<param name="handle"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.RyFiles.SaveHighQualityImage(System.Drawing.Bitmap,System.String,ryCommon.sType.ImageType)">
|
||||
<summary>
|
||||
保存高质量不失真照片
|
||||
|
|
@ -2684,6 +2691,12 @@
|
|||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ElevatedDragDropManager.AdminDragEnable(System.IntPtr)">
|
||||
<summary>
|
||||
使管理员方式运行时支持拖放
|
||||
</summary>
|
||||
<param name="hWnd"></param>
|
||||
</member>
|
||||
<member name="M:ElevatedDragDropManager.EnableDragDrop(System.IntPtr)">
|
||||
<summary>
|
||||
使支持拖放属性
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1900,6 +1900,13 @@
|
|||
<param name="handle"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.RyFiles.AdminDragEnable(System.IntPtr)">
|
||||
<summary>
|
||||
使管理员方式运行时支持拖放
|
||||
</summary>
|
||||
<param name="handle"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.RyFiles.SaveHighQualityImage(System.Drawing.Bitmap,System.String,ryCommon.sType.ImageType)">
|
||||
<summary>
|
||||
保存高质量不失真照片
|
||||
|
|
@ -2684,6 +2691,12 @@
|
|||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ElevatedDragDropManager.AdminDragEnable(System.IntPtr)">
|
||||
<summary>
|
||||
使管理员方式运行时支持拖放
|
||||
</summary>
|
||||
<param name="hWnd"></param>
|
||||
</member>
|
||||
<member name="M:ElevatedDragDropManager.EnableDragDrop(System.IntPtr)">
|
||||
<summary>
|
||||
使支持拖放属性
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19
CHANGELOG.md
19
CHANGELOG.md
|
|
@ -1,4 +1,21 @@
|
|||
### 2020-12-19 dev 更新
|
||||
### 2020-12-27 dev更新
|
||||
------
|
||||
#### ryControls V2.1.2012.2701
|
||||
- *.[改进]IconViewEx控件选中背景颜色支持渐变。
|
||||
- *.[改进]支持设置IconViewEx控件选中字体颜色。
|
||||
|
||||
### 2020-12-21 dev 更新
|
||||
------
|
||||
#### ryControls V2.1.2012.1801
|
||||
- *.[新增]新增IconViewEx控件,可以显示图标
|
||||
- *.[新增]rySearch控件新增ColorGradient按钮渐变属性。
|
||||
- *.[修复]rySearch控件修复UseDefSkin属性无效的BUG。
|
||||
- *.[修复]修复ButtonEx按钮渐变可能导致边角颜色不统一的BUG。
|
||||
|
||||
#### MyDb V2.1.2012.2001
|
||||
- *.[新增]RyFiles和ElevatedDragDropManager类新增AdminDragEnable函数,表示在管理员模式下支持拖放操作。
|
||||
|
||||
### 2020-12-19 dev 更新
|
||||
------
|
||||
#### MyDb V2.1.2012.1901
|
||||
- *.[新增]Hosts类AddHosts函数新增支持判断是否需要更新hosts文件(不写入)。
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,128 +1,128 @@
|
|||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using static ryCommonDb.DataProvider;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
public static class Itrycn_Db
|
||||
{
|
||||
public static string SQLConnStr = "<app>\\UserDb\\myDb.dat|";
|
||||
public static ryCommonDb.DataProvider.DataProviderType dataType = ryCommonDb.DataProvider.DataProviderType.SQLiteDataProvider;
|
||||
public static IDbInterface CreateDataProvider()
|
||||
{
|
||||
return CreateDataProvider(dataType);
|
||||
}
|
||||
|
||||
public static IDbInterface CreateDataProvider(DataProviderType dataProviderType)
|
||||
{
|
||||
switch (dataProviderType)
|
||||
{
|
||||
//case DataProviderType.OdbcDataProvider:
|
||||
// return new OdbcDataProvider();
|
||||
//case DataProviderType.OleDbDataProvider:
|
||||
// return new OleDbDataProvider();
|
||||
//case DataProviderType.OracleDataProvider:
|
||||
// return new OracleDataProvider();
|
||||
case DataProviderType.SQLiteDataProvider:
|
||||
return new SQLiteDataProvider();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
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("", "");
|
||||
mySQL.AddField("addTime", DateTime.Now);
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
db.CreateDb(mySQL);
|
||||
#endregion
|
||||
//
|
||||
#region 设置表
|
||||
mySQL.Clear();
|
||||
mySQL.TableName = "Setting";
|
||||
mySQL.AddField("name", "");
|
||||
mySQL.AddField("info", "");
|
||||
db.CreateDb(mySQL);
|
||||
#endregion
|
||||
}
|
||||
db.Free();
|
||||
}
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using static ryCommonDb.DataProvider;
|
||||
|
||||
namespace Itrycn_Project
|
||||
{
|
||||
public static class Itrycn_Db
|
||||
{
|
||||
public static string SQLConnStr = "<app>\\UserDb\\myDb.dat|";
|
||||
public static ryCommonDb.DataProvider.DataProviderType dataType = ryCommonDb.DataProvider.DataProviderType.SQLiteDataProvider;
|
||||
public static IDbInterface CreateDataProvider()
|
||||
{
|
||||
return CreateDataProvider(dataType);
|
||||
}
|
||||
|
||||
public static IDbInterface CreateDataProvider(DataProviderType dataProviderType)
|
||||
{
|
||||
switch (dataProviderType)
|
||||
{
|
||||
//case DataProviderType.OdbcDataProvider:
|
||||
// return new OdbcDataProvider();
|
||||
//case DataProviderType.OleDbDataProvider:
|
||||
// return new OleDbDataProvider();
|
||||
//case DataProviderType.OracleDataProvider:
|
||||
// return new OracleDataProvider();
|
||||
case DataProviderType.SQLiteDataProvider:
|
||||
return new SQLiteDataProvider();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
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("", "");
|
||||
mySQL.AddField("addTime", DateTime.Now);
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
db.CreateDb(mySQL);
|
||||
#endregion
|
||||
//
|
||||
#region 设置表
|
||||
mySQL.Clear();
|
||||
mySQL.TableName = "Setting";
|
||||
mySQL.AddField("name", "");
|
||||
mySQL.AddField("info", "");
|
||||
db.CreateDb(mySQL);
|
||||
#endregion
|
||||
}
|
||||
db.Free();
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存设置
|
||||
/// </summary>
|
||||
/// <returns>返回大于0的数,表示设置成功,否则表示失败</returns>
|
||||
/// <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)
|
||||
{
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
RyQuickSQL mySQL = new RyQuickSQL("Setting");
|
||||
mySQL.AddField("name", name);
|
||||
mySQL.AddField("info", info);
|
||||
var result = db.ExecuteNonQuery(mySQL.GetUpdateSQL() + " where name='" + name + "'", mySQL);
|
||||
mySQL.AddField("name", name);
|
||||
mySQL.AddField("info", info);
|
||||
var result = db.ExecuteNonQuery(mySQL.GetUpdateSQL() + " where name='" + name + "'", mySQL);
|
||||
if (result == 0)
|
||||
{
|
||||
result=db.ExecuteNonQuery(mySQL.GetInsertSQL(), mySQL);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
db.Free();
|
||||
return -1000;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
///获取设置
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <returns></returns>
|
||||
private static string GetSetting(string name, string defValue)
|
||||
{
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
var result = defValue;
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
DataSet ds = db.ReadData("select * from Setting where name='"+ name + "'");
|
||||
if (mydb.HaveData(ds))
|
||||
{
|
||||
DataRow reader = ds.Tables[0].Rows[0];
|
||||
#region 读取信息
|
||||
result = reader["Name"].ToString();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
DataProvider mydb = new DataProvider();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
var result = defValue;
|
||||
if (db.ConnDb(Itrycn_Db.SQLConnStr) == 1)
|
||||
{
|
||||
DataSet ds = db.ReadData("select * from Setting where name='"+ name + "'");
|
||||
if (mydb.HaveData(ds))
|
||||
{
|
||||
DataRow reader = ds.Tables[0].Rows[0];
|
||||
#region 读取信息
|
||||
result = reader["Name"].ToString();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取数据库版本
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <returns></returns>
|
||||
public static int GetDbVer()
|
||||
{
|
||||
return GetSetting("dbVer","1").ToInt();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 设置数据库版本
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <returns></returns>
|
||||
public static int SetDbVer(int DbVer)
|
||||
{
|
||||
return SetSetting("dbVer", DbVer.ToString());
|
||||
}
|
||||
public static void CreateTable()
|
||||
{
|
||||
CreateTable(dataType, SQLConnStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void CreateTable()
|
||||
{
|
||||
CreateTable(dataType, SQLConnStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
68
Source/Itrycn_Project2/FrmStart.Designer.cs
generated
68
Source/Itrycn_Project2/FrmStart.Designer.cs
generated
|
|
@ -31,6 +31,20 @@
|
|||
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();
|
||||
|
|
@ -41,9 +55,12 @@
|
|||
this.捐助ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.chromeTabControl1 = new ryControls.ChromeTabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.iconViewEx1 = new ryControls.IconViewEx();
|
||||
this.hotkeyTextBox1 = new ryControls.HotkeyTextBox();
|
||||
this.MenuTray.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.chromeTabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// notifyIcon1
|
||||
|
|
@ -130,6 +147,8 @@
|
|||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.hotkeyTextBox1);
|
||||
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);
|
||||
|
|
@ -138,6 +157,52 @@
|
|||
this.tabPage1.Text = "首页";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// iconViewEx1
|
||||
//
|
||||
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(161, 88);
|
||||
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.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;
|
||||
//
|
||||
// hotkeyTextBox1
|
||||
//
|
||||
this.hotkeyTextBox1.BackColor = System.Drawing.Color.White;
|
||||
this.hotkeyTextBox1.HotKey = "0+0";
|
||||
this.hotkeyTextBox1.Location = new System.Drawing.Point(85, 124);
|
||||
this.hotkeyTextBox1.Name = "hotkeyTextBox1";
|
||||
this.hotkeyTextBox1.Size = new System.Drawing.Size(278, 44);
|
||||
this.hotkeyTextBox1.T_Key = System.Windows.Forms.Keys.None;
|
||||
this.hotkeyTextBox1.T_Modifiers = 0;
|
||||
this.hotkeyTextBox1.TabIndex = 1;
|
||||
//
|
||||
// FrmStart
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
|
|
@ -155,6 +220,7 @@
|
|||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.chromeTabControl1.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
|
@ -172,5 +238,7 @@
|
|||
private System.Windows.Forms.ToolStripMenuItem 关于ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 捐助ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 打开官网ToolStripMenuItem;
|
||||
private ryControls.IconViewEx iconViewEx1;
|
||||
private ryControls.HotkeyTextBox hotkeyTextBox1;
|
||||
}
|
||||
}
|
||||
|
|
@ -127,6 +127,7 @@ namespace Itrycn_Project2
|
|||
|
||||
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);
|
||||
update.CheckUpdate();
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -96,9 +96,9 @@ public class ElevatedDragDropManager : IMessageFilter
|
|||
private const uint WM_COPYDATA = 0x4a;
|
||||
|
||||
private const uint WM_COPYGLOBALDATA = 0x49;
|
||||
private readonly bool IsVistaOrHigher = Environment.OSVersion.Version.Major >= 6;
|
||||
public readonly static bool IsVistaOrHigher = Environment.OSVersion.Version.Major >= 6;
|
||||
|
||||
private readonly bool Is7OrHigher = (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor >= 1) || Environment.OSVersion.Version.Major > 6;
|
||||
public readonly static bool Is7OrHigher = (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor >= 1) || Environment.OSVersion.Version.Major > 6;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
|
@ -107,6 +107,27 @@ public class ElevatedDragDropManager : IMessageFilter
|
|||
Application.AddMessageFilter(this);
|
||||
}
|
||||
/// <summary>
|
||||
/// 使管理员方式运行时支持拖放
|
||||
/// </summary>
|
||||
/// <param name="hWnd"></param>
|
||||
public static void AdminDragEnable(IntPtr hWnd)
|
||||
{
|
||||
if (Is7OrHigher)
|
||||
{
|
||||
CHANGEFILTERSTRUCT changeStruct = new CHANGEFILTERSTRUCT();
|
||||
changeStruct.cbSize = Convert.ToUInt32(Marshal.SizeOf(typeof(CHANGEFILTERSTRUCT)));
|
||||
ChangeWindowMessageFilterEx(hWnd, WM_DROPFILES, ChangeWindowMessageFilterExAction.Allow, ref changeStruct);
|
||||
ChangeWindowMessageFilterEx(hWnd, WM_COPYDATA, ChangeWindowMessageFilterExAction.Allow, ref changeStruct);
|
||||
ChangeWindowMessageFilterEx(hWnd, WM_COPYGLOBALDATA, ChangeWindowMessageFilterExAction.Allow, ref changeStruct);
|
||||
}
|
||||
else if (IsVistaOrHigher)
|
||||
{
|
||||
ChangeWindowMessageFilter(WM_DROPFILES, ChangeWindowMessageFilterFlags.Add);
|
||||
ChangeWindowMessageFilter(WM_COPYDATA, ChangeWindowMessageFilterFlags.Add);
|
||||
ChangeWindowMessageFilter(WM_COPYGLOBALDATA, ChangeWindowMessageFilterFlags.Add);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 使支持拖放属性
|
||||
/// </summary>
|
||||
/// <param name="hWnd"></param>
|
||||
|
|
|
|||
|
|
@ -1,120 +1,120 @@
|
|||
using ryCommon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ryCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// Hosts操作类
|
||||
/// </summary>
|
||||
public static class Hosts
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取并转换hosts内容
|
||||
/// </summary>
|
||||
/// <param name="content">hosts内容</param>
|
||||
/// <returns></returns>
|
||||
public static List<HostInfo> GetHosts(string content)
|
||||
{
|
||||
var list = new List<HostInfo>();
|
||||
var from_list = content.Replace("\r", "").Replace("\t", " ").Split('\n');
|
||||
for (int i = 0; i < from_list.Length; i++)
|
||||
{
|
||||
var item = from_list[i].Trim();
|
||||
if (item.IndexOfEx("#") == 0) { list.Add(new HostInfo() { Comment=item }); continue; }
|
||||
int pos = item.IndexOfEx(" ");
|
||||
if (pos <= 0) {
|
||||
if (item.StartsWith("!", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
list.Add(new HostInfo() { IP = "", Domain = item.Substring(1), IsDel = true });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
var ip = item.Substring(0, pos);//ip
|
||||
bool isDel = false;
|
||||
if(ip.StartsWith("!", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
isDel = true;ip = ip.Substring(1);
|
||||
}
|
||||
var domain = item.Substring(pos + 1).Trim();//域名
|
||||
list.Add(new HostInfo() {IP=ip,Domain=domain,IsDel=isDel });
|
||||
}
|
||||
return list;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取hosts并转换hosts内容
|
||||
/// </summary>
|
||||
/// <param name="list">hosts内容</param>
|
||||
/// <returns></returns>
|
||||
public static List<HostInfo> GetHosts()
|
||||
{
|
||||
var hosts_path = ryCommon.RyFiles.GetRealPath("<sys>\\drivers\\etc\\hosts");
|
||||
var content = ryCommon.RyFiles.ReadAllText(hosts_path).Trim();
|
||||
return GetHosts(content);
|
||||
using ryCommon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ryCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// Hosts操作类
|
||||
/// </summary>
|
||||
public static class Hosts
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取并转换hosts内容
|
||||
/// </summary>
|
||||
/// <param name="content">hosts内容</param>
|
||||
/// <returns></returns>
|
||||
public static List<HostInfo> GetHosts(string content)
|
||||
{
|
||||
var list = new List<HostInfo>();
|
||||
var from_list = content.Replace("\r", "").Replace("\t", " ").Split('\n');
|
||||
for (int i = 0; i < from_list.Length; i++)
|
||||
{
|
||||
var item = from_list[i].Trim();
|
||||
if (item.IndexOfEx("#") == 0) { list.Add(new HostInfo() { Comment=item }); continue; }
|
||||
int pos = item.IndexOfEx(" ");
|
||||
if (pos <= 0) {
|
||||
if (item.StartsWith("!", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
list.Add(new HostInfo() { IP = "", Domain = item.Substring(1), IsDel = true });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
var ip = item.Substring(0, pos);//ip
|
||||
bool isDel = false;
|
||||
if(ip.StartsWith("!", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
isDel = true;ip = ip.Substring(1);
|
||||
}
|
||||
var domain = item.Substring(pos + 1).Trim();//域名
|
||||
list.Add(new HostInfo() {IP=ip,Domain=domain,IsDel=isDel });
|
||||
}
|
||||
return list;
|
||||
}
|
||||
/// <summary>
|
||||
/// 追加内容到hosts里
|
||||
/// </summary>
|
||||
/// <param name="list">要追加的内容列表,每一行为ip 域名的格式</param>
|
||||
/// <summary>
|
||||
/// 获取hosts并转换hosts内容
|
||||
/// </summary>
|
||||
/// <param name="list">hosts内容</param>
|
||||
/// <returns></returns>
|
||||
public static List<HostInfo> GetHosts()
|
||||
{
|
||||
var hosts_path = ryCommon.RyFiles.GetRealPath("<sys>\\drivers\\etc\\hosts");
|
||||
var content = ryCommon.RyFiles.ReadAllText(hosts_path).Trim();
|
||||
return GetHosts(content);
|
||||
}
|
||||
/// <summary>
|
||||
/// 追加内容到hosts里
|
||||
/// </summary>
|
||||
/// <param name="list">要追加的内容列表,每一行为ip 域名的格式</param>
|
||||
/// <returns>0表示无需新增,-1表示添加失败,1表示追加成功</returns>
|
||||
public static int AddHosts(string list)
|
||||
{
|
||||
return AddHosts(list,true);
|
||||
}
|
||||
/// <summary>
|
||||
/// write为true,追加内容到hosts里;为false,判断是否需要追加
|
||||
/// </summary>
|
||||
/// <param name="list">要追加的内容列表,每一行为ip 域名的格式</param>
|
||||
/// <param name="write">是否要写入,如果为false,则只判断是否需要追加,而不写入Hosts文件</param>
|
||||
/// <returns>0表示无需新增,-1表示添加失败,1表示追加成功</returns>
|
||||
public static int AddHosts(string list,bool write)
|
||||
{
|
||||
var hosts_path= ryCommon.RyFiles.GetRealPath("<sys>\\drivers\\etc\\hosts");
|
||||
var content = ryCommon.RyFiles.ReadAllText(hosts_path).Trim();
|
||||
var from_list = GetHosts(content);
|
||||
var _list = GetHosts(list);
|
||||
bool isAdd = false;//是否有增加数据到hosts里
|
||||
for (int i = 0; i < _list.Count; i++)
|
||||
{
|
||||
bool HaveRecord = false;
|
||||
for (int m = from_list.Count-1; m>0; m--) //去host文件里查找是否已含有该内容
|
||||
{
|
||||
if (from_list[m].Comment.Length > 0) { continue; }
|
||||
if(_list[i].Domain.ToLower()== from_list[m].Domain.ToLower())
|
||||
{
|
||||
if (_list[i].IP.Length == 0 && _list[i].IsDel)
|
||||
{
|
||||
from_list.RemoveAt(m);
|
||||
HaveRecord = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_list[i].IP != from_list[m].IP) //如果同样域名对应的ip不一样,则删除该项,然后再插入新的ip
|
||||
{
|
||||
from_list.RemoveAt(m);
|
||||
HaveRecord = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_list[i].IsDel) //如果ip和网址一致,并且标注为删除,则删除
|
||||
{
|
||||
from_list.RemoveAt(m);
|
||||
}
|
||||
HaveRecord = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!HaveRecord)
|
||||
{
|
||||
isAdd = true;
|
||||
from_list.Add(_list[i]);
|
||||
}
|
||||
}
|
||||
if (isAdd)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// write为true,追加内容到hosts里;为false,判断是否需要追加
|
||||
/// </summary>
|
||||
/// <param name="list">要追加的内容列表,每一行为ip 域名的格式</param>
|
||||
/// <param name="write">是否要写入,如果为false,则只判断是否需要追加,而不写入Hosts文件</param>
|
||||
/// <returns>0表示无需新增,-1表示添加失败,1表示追加成功</returns>
|
||||
public static int AddHosts(string list,bool write)
|
||||
{
|
||||
var hosts_path= ryCommon.RyFiles.GetRealPath("<sys>\\drivers\\etc\\hosts");
|
||||
var content = ryCommon.RyFiles.ReadAllText(hosts_path).Trim();
|
||||
var from_list = GetHosts(content);
|
||||
var _list = GetHosts(list);
|
||||
bool isAdd = false;//是否有增加数据到hosts里
|
||||
for (int i = 0; i < _list.Count; i++)
|
||||
{
|
||||
bool HaveRecord = false;
|
||||
for (int m = from_list.Count-1; m>0; m--) //去host文件里查找是否已含有该内容
|
||||
{
|
||||
if (from_list[m].Comment.Length > 0) { continue; }
|
||||
if(_list[i].Domain.ToLower()== from_list[m].Domain.ToLower())
|
||||
{
|
||||
if (_list[i].IP.Length == 0 && _list[i].IsDel)
|
||||
{
|
||||
from_list.RemoveAt(m);
|
||||
HaveRecord = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_list[i].IP != from_list[m].IP) //如果同样域名对应的ip不一样,则删除该项,然后再插入新的ip
|
||||
{
|
||||
from_list.RemoveAt(m);
|
||||
HaveRecord = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_list[i].IsDel) //如果ip和网址一致,并且标注为删除,则删除
|
||||
{
|
||||
from_list.RemoveAt(m);
|
||||
}
|
||||
HaveRecord = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!HaveRecord)
|
||||
{
|
||||
isAdd = true;
|
||||
from_list.Add(_list[i]);
|
||||
}
|
||||
}
|
||||
if (isAdd)
|
||||
{
|
||||
if (write)
|
||||
{
|
||||
try
|
||||
|
|
@ -138,114 +138,114 @@ namespace ryCommon
|
|||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{ return 0; }
|
||||
return 1;
|
||||
}
|
||||
/// <summary>
|
||||
/// 追加内容到hosts里
|
||||
/// </summary>
|
||||
/// <param name="item">要追加的内容</param>
|
||||
/// <returns>0表示无需新增,-1表示添加失败,1表示追加成功</returns>
|
||||
public static int AddHosts(HostInfo item)
|
||||
{
|
||||
return AddHosts(item.IP + "\t" + item.Domain);
|
||||
}
|
||||
/// <summary>
|
||||
/// 追加内容到hosts里
|
||||
/// </summary>
|
||||
/// <param name="ip">ip地址</param>
|
||||
/// <param name="domain">域名</param>
|
||||
/// <returns>0表示无需新增,-1表示添加失败,1表示追加成功</returns>
|
||||
public static int AddHosts(string ip,string domain)
|
||||
{
|
||||
return AddHosts(ip + "\t" + domain);
|
||||
}
|
||||
/// <summary>
|
||||
/// 从hosts文件里删除内容
|
||||
/// </summary>
|
||||
/// <param name="item">要删除的内容</param>
|
||||
/// <returns>0表示无需删除,-1表示添加失败,1表示删除成功</returns>
|
||||
public static int DelHosts(HostInfo item)
|
||||
{
|
||||
var hosts_path = ryCommon.RyFiles.GetRealPath("<sys>\\drivers\\etc\\hosts");
|
||||
var content = ryCommon.RyFiles.ReadAllText(hosts_path).Trim();
|
||||
var from_list = GetHosts(content);
|
||||
bool IsDel = false;
|
||||
for (int i = from_list.Count-1; i>=0; i++)
|
||||
{
|
||||
if(from_list[i].IP==item.IP && from_list[i].Domain.ToLower()==item.Domain.ToLower())
|
||||
{
|
||||
from_list.RemoveAt(i);
|
||||
IsDel = true;
|
||||
}
|
||||
else if (item.IP.Length==0 && from_list[i].Domain.ToLower() == item.Domain.ToLower())
|
||||
{
|
||||
from_list.RemoveAt(i);
|
||||
IsDel = true;
|
||||
}
|
||||
}
|
||||
var text = "";
|
||||
for (int i = 0; i < from_list.Count; i++)
|
||||
{
|
||||
if (text.Length > 0) { text += "\r\n"; }
|
||||
if(from_list[i].Comment.Length>0)
|
||||
{
|
||||
text += from_list[i].Comment;
|
||||
}
|
||||
else
|
||||
{
|
||||
text += from_list[i].IP+"\t"+ from_list[i].Domain;
|
||||
}
|
||||
}
|
||||
if (IsDel)
|
||||
{
|
||||
try
|
||||
{
|
||||
ryCommon.RyFiles.WriteAllText(hosts_path, text, Encoding.UTF8);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{ return 0; }
|
||||
return 1;
|
||||
}
|
||||
/// <summary>
|
||||
/// 从hosts文件里删除内容
|
||||
/// </summary>
|
||||
/// <param name="ip">ip地址</param>
|
||||
/// <param name="domain">域名</param>
|
||||
/// <returns>0表示无需删除,-1表示添加失败,1表示删除成功</returns>
|
||||
public static int DelHosts(string ip, string domain)
|
||||
{
|
||||
return DelHosts(new HostInfo() {IP=ip,Domain=domain });
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Host信息
|
||||
/// </summary>
|
||||
public class HostInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// IP
|
||||
/// </summary>
|
||||
public string IP { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 域名
|
||||
/// </summary>
|
||||
public string Domain { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 注释
|
||||
/// </summary>
|
||||
public string Comment { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 是否要删除
|
||||
/// </summary>
|
||||
public bool IsDel { get; set; } = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{ return 0; }
|
||||
return 1;
|
||||
}
|
||||
/// <summary>
|
||||
/// 追加内容到hosts里
|
||||
/// </summary>
|
||||
/// <param name="item">要追加的内容</param>
|
||||
/// <returns>0表示无需新增,-1表示添加失败,1表示追加成功</returns>
|
||||
public static int AddHosts(HostInfo item)
|
||||
{
|
||||
return AddHosts(item.IP + "\t" + item.Domain);
|
||||
}
|
||||
/// <summary>
|
||||
/// 追加内容到hosts里
|
||||
/// </summary>
|
||||
/// <param name="ip">ip地址</param>
|
||||
/// <param name="domain">域名</param>
|
||||
/// <returns>0表示无需新增,-1表示添加失败,1表示追加成功</returns>
|
||||
public static int AddHosts(string ip,string domain)
|
||||
{
|
||||
return AddHosts(ip + "\t" + domain);
|
||||
}
|
||||
/// <summary>
|
||||
/// 从hosts文件里删除内容
|
||||
/// </summary>
|
||||
/// <param name="item">要删除的内容</param>
|
||||
/// <returns>0表示无需删除,-1表示添加失败,1表示删除成功</returns>
|
||||
public static int DelHosts(HostInfo item)
|
||||
{
|
||||
var hosts_path = ryCommon.RyFiles.GetRealPath("<sys>\\drivers\\etc\\hosts");
|
||||
var content = ryCommon.RyFiles.ReadAllText(hosts_path).Trim();
|
||||
var from_list = GetHosts(content);
|
||||
bool IsDel = false;
|
||||
for (int i = from_list.Count-1; i>=0; i++)
|
||||
{
|
||||
if(from_list[i].IP==item.IP && from_list[i].Domain.ToLower()==item.Domain.ToLower())
|
||||
{
|
||||
from_list.RemoveAt(i);
|
||||
IsDel = true;
|
||||
}
|
||||
else if (item.IP.Length==0 && from_list[i].Domain.ToLower() == item.Domain.ToLower())
|
||||
{
|
||||
from_list.RemoveAt(i);
|
||||
IsDel = true;
|
||||
}
|
||||
}
|
||||
var text = "";
|
||||
for (int i = 0; i < from_list.Count; i++)
|
||||
{
|
||||
if (text.Length > 0) { text += "\r\n"; }
|
||||
if(from_list[i].Comment.Length>0)
|
||||
{
|
||||
text += from_list[i].Comment;
|
||||
}
|
||||
else
|
||||
{
|
||||
text += from_list[i].IP+"\t"+ from_list[i].Domain;
|
||||
}
|
||||
}
|
||||
if (IsDel)
|
||||
{
|
||||
try
|
||||
{
|
||||
ryCommon.RyFiles.WriteAllText(hosts_path, text, Encoding.UTF8);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{ return 0; }
|
||||
return 1;
|
||||
}
|
||||
/// <summary>
|
||||
/// 从hosts文件里删除内容
|
||||
/// </summary>
|
||||
/// <param name="ip">ip地址</param>
|
||||
/// <param name="domain">域名</param>
|
||||
/// <returns>0表示无需删除,-1表示添加失败,1表示删除成功</returns>
|
||||
public static int DelHosts(string ip, string domain)
|
||||
{
|
||||
return DelHosts(new HostInfo() {IP=ip,Domain=domain });
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Host信息
|
||||
/// </summary>
|
||||
public class HostInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// IP
|
||||
/// </summary>
|
||||
public string IP { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 域名
|
||||
/// </summary>
|
||||
public string Domain { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 注释
|
||||
/// </summary>
|
||||
public string Comment { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 是否要删除
|
||||
/// </summary>
|
||||
public bool IsDel { get; set; } = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -885,6 +885,15 @@ namespace ryCommon
|
|||
return ElevatedDragDropManager.Instance;
|
||||
}
|
||||
/// <summary>
|
||||
/// 使管理员方式运行时支持拖放
|
||||
/// </summary>
|
||||
/// <param name="handle"></param>
|
||||
/// <returns></returns>
|
||||
public static void AdminDragEnable(IntPtr handle)
|
||||
{
|
||||
ElevatedDragDropManager.AdminDragEnable(handle);
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存高质量不失真照片
|
||||
/// </summary>
|
||||
/// <param name="m"></param>
|
||||
|
|
|
|||
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.1.2012.1901")]
|
||||
[assembly: AssemblyFileVersion("2.1.2012.1901")]
|
||||
[assembly: AssemblyVersion("2.1.2012.2001")]
|
||||
[assembly: AssemblyFileVersion("2.1.2012.2001")]
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -701,7 +701,7 @@ namespace ryControls
|
|||
// rectTop.Width = (int)(rect.Width * basePosition);
|
||||
}
|
||||
using (GraphicsPath pathTop = Drawing.CreatePath(
|
||||
rectTop, roundWidth, RoundStyle.Top, false))
|
||||
rectTop, roundWidth, style, false))
|
||||
{
|
||||
if (ColorGradient)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace ryControls
|
|||
/// <summary>
|
||||
/// 热键文本框
|
||||
/// </summary>
|
||||
public partial class HotkeyTextBox : UserControl
|
||||
public partial class HotkeyTextBox : UserControl,IMessageFilter
|
||||
{
|
||||
Keys m_Modifiers =Keys.None;
|
||||
Keys m_Key =Keys.None;
|
||||
|
|
@ -29,9 +29,30 @@ namespace ryControls
|
|||
TxtHotKey.KeyDown += TxtHotKey_KeyDown;
|
||||
TxtHotKey.KeyUp += TxtHotKey_KeyUp;
|
||||
TxtHotKey.Top = (Height - TxtHotKey.Height) / 2;
|
||||
|
||||
//Application.AddMessageFilter(this);
|
||||
base.BackColor = Color.White;
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
~HotkeyTextBox()
|
||||
{
|
||||
// Application.RemoveMessageFilter(this);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="m"></param>
|
||||
/// <returns></returns>
|
||||
public bool PreFilterMessage(ref Message m)
|
||||
{
|
||||
//if (m.Msg == 0x0100)
|
||||
//{
|
||||
// var key=(Keys)(m.WParam.ToInt32());
|
||||
// return false;
|
||||
//}
|
||||
return false;
|
||||
}
|
||||
/// <summary>
|
||||
/// 在控件大小变化时发生
|
||||
/// </summary>
|
||||
|
|
|
|||
19
Source/ryControls/Controls/List/IItemInfo.cs
Normal file
19
Source/ryControls/Controls/List/IItemInfo.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ryControls.Interface
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表项
|
||||
/// </summary>
|
||||
public interface IItemInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
Image Image { get; set; }
|
||||
}
|
||||
}
|
||||
318
Source/ryControls/Controls/List/IconViewEx.cs
Normal file
318
Source/ryControls/Controls/List/IconViewEx.cs
Normal file
|
|
@ -0,0 +1,318 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ryControls
|
||||
{
|
||||
/// <summary>
|
||||
/// 图标列表控件
|
||||
/// </summary>
|
||||
public class IconViewEx : ListView
|
||||
{
|
||||
private ColumnHeader columnHeader1;
|
||||
/// <summary>
|
||||
/// 图标列表控件
|
||||
/// </summary>
|
||||
public IconViewEx() :
|
||||
base()
|
||||
{
|
||||
// 开启双缓冲
|
||||
this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
|
||||
this.OwnerDraw = true;//用于启用重绘
|
||||
this.View = View.Tile;
|
||||
this.TileSize = new Size(100,100);
|
||||
this.MultiSelect = false;
|
||||
}
|
||||
private int iconsize = 64;
|
||||
/// <summary>
|
||||
/// 图标大小
|
||||
/// </summary>
|
||||
[Description("图标大小")]
|
||||
public int IconSize {
|
||||
get { return iconsize; }
|
||||
set
|
||||
{
|
||||
if(value>14 && value<=512)
|
||||
{
|
||||
iconsize = value;
|
||||
}
|
||||
else { iconsize = 64; }
|
||||
}
|
||||
}
|
||||
private int textheight = 20;
|
||||
/// <summary>
|
||||
/// 文本显示高度(从底部算起)
|
||||
/// </summary>
|
||||
[Description("文本显示高度(从底部算起)")]
|
||||
public int TextHeight
|
||||
{
|
||||
get { return textheight; }
|
||||
set
|
||||
{
|
||||
if (value > 5 && value <= 100)
|
||||
{
|
||||
textheight = value;
|
||||
}
|
||||
else { textheight = 20; }
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 默认图标
|
||||
/// </summary>
|
||||
[Description("默认图标")]
|
||||
public Image Icon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否显示图标
|
||||
/// </summary>
|
||||
[Description("是否显示图标")]
|
||||
public bool IsDrawIcon { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否显示网格线
|
||||
/// </summary>
|
||||
[Description("是否显示网格线")]
|
||||
public bool IsDrawGridLines { get; set; }
|
||||
/// <summary>
|
||||
/// 画项
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnDrawItem(DrawListViewItemEventArgs e)
|
||||
{
|
||||
Rectangle r = e.Bounds;
|
||||
Graphics g = e.Graphics;
|
||||
|
||||
DrawSelectedBackground(e, g, r);
|
||||
|
||||
int paddingHeight = 0;
|
||||
if (IsDrawIcon)
|
||||
{
|
||||
var soft = (Interface.IItemInfo)e.Item.Tag;
|
||||
if (soft == null || soft.Image == null)
|
||||
{ paddingHeight = this.DrawIcon(g, r, this.Icon, e.Item.BackColor).Height; }
|
||||
else
|
||||
{
|
||||
paddingHeight = this.DrawIcon(g, r, soft.Image, e.Item.BackColor).Height;
|
||||
}
|
||||
}
|
||||
|
||||
//if (IsDrawGridLines)
|
||||
//{
|
||||
// using (Pen pen = new Pen(Color.Gray))
|
||||
// {
|
||||
// g.DrawRectangle(pen, r.X, r.Y, r.Width, r.Height + 1);//高度加1使横向线条重叠
|
||||
// }
|
||||
//}
|
||||
|
||||
if (!string.IsNullOrEmpty(e.Item.Text))
|
||||
{
|
||||
this.DrawText(e, g, r, paddingHeight);
|
||||
}
|
||||
}
|
||||
private Color _SelectedStartBackColor = Color.FromArgb(255, 251, 237);
|
||||
/// <summary>
|
||||
/// 选择项的背景开始颜色
|
||||
/// </summary>
|
||||
[Description("选择项的背景开始颜色")]
|
||||
public Color SelectedStartBackColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _SelectedStartBackColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
_SelectedStartBackColor = value;
|
||||
this.Refresh();
|
||||
}
|
||||
}
|
||||
private Color _SelectedEndBackColor = Color.FromArgb(255, 236, 181);
|
||||
/// <summary>
|
||||
/// 选择项的背景结束颜色
|
||||
/// </summary>
|
||||
[Description("选择项的背景结束颜色")]
|
||||
public Color SelectedEndBackColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _SelectedEndBackColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
_SelectedEndBackColor = value;
|
||||
this.Refresh();
|
||||
}
|
||||
}
|
||||
private Color _SelectedBorderColor = Color.FromArgb(229, 195, 101);
|
||||
/// <summary>
|
||||
/// 选择项的边框颜色
|
||||
/// </summary>
|
||||
[Description("选择项的边框颜色")]
|
||||
public Color SelectedBorderColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _SelectedBorderColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
_SelectedBorderColor = value;
|
||||
this.Refresh();
|
||||
}
|
||||
}
|
||||
private Color _SelectedForeColor = Color.Black;
|
||||
/// <summary>
|
||||
/// 选择项的字体颜色
|
||||
/// </summary>
|
||||
[Description("选择项的字体颜色")]
|
||||
public Color SelectedForeColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _SelectedForeColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
_SelectedForeColor = value;
|
||||
this.Refresh();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 重绘选中时背景
|
||||
/// </summary>
|
||||
private void DrawSelectedBackground(DrawListViewItemEventArgs e, Graphics g, Rectangle r)
|
||||
{
|
||||
if (e.Item.Selected)
|
||||
{
|
||||
//渐变画刷
|
||||
LinearGradientBrush brush = new LinearGradientBrush(e.Bounds, _SelectedStartBackColor,
|
||||
_SelectedEndBackColor, LinearGradientMode.Vertical);
|
||||
//填充区域
|
||||
//Rectangle borderRect = new Rectangle(r, e.Bounds.Y, e.Bounds.Width - 5, e.Bounds.Height - 2);
|
||||
e.Graphics.FillRectangle(brush, r);
|
||||
brush.Dispose();
|
||||
////画边框
|
||||
Pen pen = new Pen(_SelectedBorderColor);
|
||||
Rectangle borderRect = r;
|
||||
borderRect.Width--;
|
||||
borderRect.Height--;
|
||||
e.Graphics.DrawRectangle(pen, borderRect);
|
||||
pen.Dispose();
|
||||
//using (SolidBrush brush = new SolidBrush(_SelectedBackColor))
|
||||
//{
|
||||
// g.FillRectangle(brush, r);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重绘图标
|
||||
/// </summary>
|
||||
/// <param name="g"></param>
|
||||
/// <param name="r">区域大小</param>
|
||||
/// <param name="image"></param>
|
||||
/// <param name="backColor"></param>
|
||||
/// <returns></returns>
|
||||
private Size DrawIcon(Graphics g, Rectangle r, Image image, Color backColor)
|
||||
{
|
||||
var x = r.X + ((r.Width - iconsize) / 2);
|
||||
var y = r.Y + ((r.Height - textheight - iconsize) / 2);
|
||||
Rectangle imageBounds = new Rectangle(new Point(x,y), new Size(iconsize, iconsize));
|
||||
if (image.Width > image.Height)
|
||||
{
|
||||
imageBounds.Height =(int)((image.Height/(double)image.Width)* imageBounds.Width);
|
||||
y += ((iconsize - imageBounds.Height) / 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
x += ((iconsize - imageBounds.Width) / 2);
|
||||
imageBounds.Width = (int)((image.Width / (double)image.Height) * imageBounds.Height);
|
||||
}
|
||||
imageBounds.X = x;
|
||||
imageBounds.Y = y;
|
||||
//imageBounds.X = r.X + (r.Width - imageBounds.Width) / 2;
|
||||
//使图标不会紧贴着每一列的左上角
|
||||
//imageBounds.X += 1;
|
||||
//imageBounds.Y += 1;
|
||||
|
||||
g.DrawImage(image, imageBounds);
|
||||
return imageBounds.Size;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重绘文本
|
||||
/// </summary>
|
||||
private void DrawText(DrawListViewItemEventArgs e, Graphics g, Rectangle r, int paddingHeight)
|
||||
{
|
||||
TextFormatFlags flags = GetFormatFlags(HorizontalAlignment.Center);
|
||||
var r1 = new Rectangle(r.Location, r.Size)
|
||||
{
|
||||
Y = r.Y + r.Height- textheight,//重绘图标时,文本右移
|
||||
Height = textheight
|
||||
};
|
||||
TextRenderer.DrawText(
|
||||
g,
|
||||
e.Item.Text,
|
||||
e.Item.Font,
|
||||
r1,
|
||||
e.Item.Selected ? SelectedForeColor : e.Item.ForeColor,
|
||||
flags);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取文本对齐
|
||||
/// </summary>
|
||||
private TextFormatFlags GetFormatFlags(
|
||||
HorizontalAlignment align)
|
||||
{
|
||||
TextFormatFlags flags =
|
||||
TextFormatFlags.EndEllipsis |
|
||||
TextFormatFlags.VerticalCenter;
|
||||
|
||||
switch (align)
|
||||
{
|
||||
case HorizontalAlignment.Center:
|
||||
flags |= TextFormatFlags.HorizontalCenter;
|
||||
break;
|
||||
case HorizontalAlignment.Right:
|
||||
flags |= TextFormatFlags.Right;
|
||||
break;
|
||||
case HorizontalAlignment.Left:
|
||||
flags |= TextFormatFlags.Left;
|
||||
break;
|
||||
}
|
||||
|
||||
return flags;
|
||||
}
|
||||
const int WM_HSCROLL = 0x0114;
|
||||
const int WM_VSCROLL = 0x0115;
|
||||
/// <summary>
|
||||
/// 水平滚动条滚动事件
|
||||
/// </summary>
|
||||
[Description("水平滚动条滚动事件")]
|
||||
public event EventHandler HScroll;
|
||||
/// <summary>
|
||||
/// 垂直滚动条滚动事件
|
||||
/// </summary>
|
||||
[Description("垂直滚动条滚动事件")]
|
||||
public event EventHandler VScroll;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="m"></param>
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
if (m.Msg == WM_HSCROLL)
|
||||
{
|
||||
HScroll?.Invoke(this, new EventArgs());
|
||||
}
|
||||
else if (m.Msg == WM_VSCROLL)
|
||||
{
|
||||
VScroll?.Invoke(this, new EventArgs());
|
||||
}
|
||||
base.WndProc(ref m);
|
||||
}
|
||||
}
|
||||
}
|
||||
123
Source/ryControls/Controls/List/IconViewEx.resx
Normal file
123
Source/ryControls/Controls/List/IconViewEx.resx
Normal file
|
|
@ -0,0 +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="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
127
Source/ryControls/Controls/rySearch.Designer.cs
generated
127
Source/ryControls/Controls/rySearch.Designer.cs
generated
|
|
@ -31,69 +31,70 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(rySearch));
|
||||
this.txtSearch = new System.Windows.Forms.TextBox();
|
||||
this.btnSearch = new ryControls.ButtonEx();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txtSearch
|
||||
//
|
||||
this.txtSearch.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.txtSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
|
||||
this.txtSearch.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.txtSearch.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.txtSearch.ForeColor = System.Drawing.Color.Silver;
|
||||
this.txtSearch.Location = new System.Drawing.Point(0, 4);
|
||||
this.txtSearch.Name = "txtSearch";
|
||||
this.txtSearch.Size = new System.Drawing.Size(240, 16);
|
||||
this.txtSearch.TabIndex = 3;
|
||||
this.txtSearch.TabStop = false;
|
||||
this.txtSearch.Click += new System.EventHandler(this.TxtSearch_Click);
|
||||
this.txtSearch.TextChanged += new System.EventHandler(this.TxtSearch_TextChanged);
|
||||
this.txtSearch.DoubleClick += new System.EventHandler(this.TxtSearch_DoubleClick);
|
||||
this.txtSearch.Enter += new System.EventHandler(this.TxtSearch_Enter);
|
||||
this.txtSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TxtSearch_KeyDown);
|
||||
this.txtSearch.Leave += new System.EventHandler(this.TxtSearch_Leave);
|
||||
//
|
||||
// btnSearch
|
||||
//
|
||||
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSearch.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
|
||||
this.btnSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnSearch.Image")));
|
||||
this.btnSearch.ImageHeight = 14;
|
||||
this.btnSearch.ImageWidth = 14;
|
||||
this.btnSearch.Location = new System.Drawing.Point(246, 4);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Radius = 12;
|
||||
this.btnSearch.RoundStyle = ryControls.RoundStyle.Right;
|
||||
this.btnSearch.Size = new System.Drawing.Size(36, 23);
|
||||
this.btnSearch.TabIndex = 4;
|
||||
this.btnSearch.TabStop = false;
|
||||
this.btnSearch.UseVisualStyleBackColor = true;
|
||||
this.btnSearch.Click += new System.EventHandler(this.BtnSearch_Click);
|
||||
//
|
||||
// rySearch
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
|
||||
this.Controls.Add(this.btnSearch);
|
||||
this.Controls.Add(this.txtSearch);
|
||||
this.Name = "rySearch";
|
||||
this.Size = new System.Drawing.Size(282, 30);
|
||||
this.Load += new System.EventHandler(this.RySearch_Load);
|
||||
this.FontChanged += new System.EventHandler(this.RySearch_FontChanged);
|
||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.RySearch_Paint);
|
||||
this.Enter += new System.EventHandler(this.RySearch_Enter);
|
||||
this.Leave += new System.EventHandler(this.RySearch_Leave);
|
||||
this.Resize += new System.EventHandler(this.RySearch_Resize);
|
||||
this.ImeModeChanged += new System.EventHandler(this.RySearch_ImeModeChanged);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(rySearch));
|
||||
this.txtSearch = new System.Windows.Forms.TextBox();
|
||||
this.btnSearch = new ryControls.ButtonEx();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txtSearch
|
||||
//
|
||||
this.txtSearch.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.txtSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
|
||||
this.txtSearch.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.txtSearch.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.txtSearch.ForeColor = System.Drawing.Color.Silver;
|
||||
this.txtSearch.Location = new System.Drawing.Point(0, 4);
|
||||
this.txtSearch.Name = "txtSearch";
|
||||
this.txtSearch.Size = new System.Drawing.Size(240, 16);
|
||||
this.txtSearch.TabIndex = 3;
|
||||
this.txtSearch.TabStop = false;
|
||||
this.txtSearch.Click += new System.EventHandler(this.TxtSearch_Click);
|
||||
this.txtSearch.TextChanged += new System.EventHandler(this.TxtSearch_TextChanged);
|
||||
this.txtSearch.DoubleClick += new System.EventHandler(this.TxtSearch_DoubleClick);
|
||||
this.txtSearch.Enter += new System.EventHandler(this.TxtSearch_Enter);
|
||||
this.txtSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TxtSearch_KeyDown);
|
||||
this.txtSearch.Leave += new System.EventHandler(this.TxtSearch_Leave);
|
||||
//
|
||||
// btnSearch
|
||||
//
|
||||
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSearch.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
|
||||
this.btnSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnSearch.Image")));
|
||||
this.btnSearch.ImageHeight = 14;
|
||||
this.btnSearch.ImageWidth = 14;
|
||||
this.btnSearch.Location = new System.Drawing.Point(246, 4);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Radius = 12;
|
||||
this.btnSearch.RoundStyle = ryControls.RoundStyle.Right;
|
||||
this.btnSearch.Size = new System.Drawing.Size(36, 23);
|
||||
this.btnSearch.SpliteButtonWidth = 0;
|
||||
this.btnSearch.TabIndex = 4;
|
||||
this.btnSearch.TabStop = false;
|
||||
this.btnSearch.UseVisualStyleBackColor = true;
|
||||
this.btnSearch.Click += new System.EventHandler(this.BtnSearch_Click);
|
||||
//
|
||||
// rySearch
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
|
||||
this.Controls.Add(this.btnSearch);
|
||||
this.Controls.Add(this.txtSearch);
|
||||
this.Name = "rySearch";
|
||||
this.Size = new System.Drawing.Size(282, 30);
|
||||
this.Load += new System.EventHandler(this.RySearch_Load);
|
||||
this.FontChanged += new System.EventHandler(this.RySearch_FontChanged);
|
||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.RySearch_Paint);
|
||||
this.Enter += new System.EventHandler(this.RySearch_Enter);
|
||||
this.Leave += new System.EventHandler(this.RySearch_Leave);
|
||||
this.Resize += new System.EventHandler(this.RySearch_Resize);
|
||||
this.ImeModeChanged += new System.EventHandler(this.RySearch_ImeModeChanged);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
|
|
@ -1,304 +1,323 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using ryControls;
|
||||
using ryControls.Skin;
|
||||
|
||||
namespace ryControls
|
||||
{
|
||||
[DefaultEvent("OnSearch")]
|
||||
public partial class rySearch : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 在搜索时激发
|
||||
/// </summary>
|
||||
[Description("在搜索时激发")]
|
||||
public event EventHandler OnSearch;
|
||||
/// <summary>
|
||||
/// 文本变化时激发
|
||||
/// </summary>
|
||||
[Description("文本变化时激发")]
|
||||
public new event EventHandler OnTextChanged;
|
||||
/// <summary>
|
||||
/// 文本变化时激发
|
||||
/// </summary>
|
||||
[Description("文本变化时激发")]
|
||||
public new event EventHandler TextChanged;
|
||||
/// <summary>
|
||||
/// 双击时激发
|
||||
/// </summary>
|
||||
[Description("双击时激发")]
|
||||
public new event EventHandler DoubleClick;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public rySearch()
|
||||
{
|
||||
InitializeComponent();
|
||||
txtSearch.Font = Font;
|
||||
txtSearch.ImeMode = ImeMode;
|
||||
|
||||
base.GotFocus += RySearch_GotFocus;
|
||||
}
|
||||
|
||||
private void RySearch_GotFocus(object sender, EventArgs e)
|
||||
{
|
||||
txtSearch.Focus();
|
||||
txtSearch.Select();
|
||||
txtSearch.SelectionLength = 0;
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public new void Select()
|
||||
{
|
||||
//txtSearch.Select();
|
||||
txtSearch.Focus();
|
||||
}
|
||||
private string _EmptyText = "";
|
||||
/// <summary>
|
||||
/// 文本为空时的显示效果
|
||||
/// </summary>
|
||||
private void EmptyShow()
|
||||
{
|
||||
if (_text == "")
|
||||
{
|
||||
if (!txtSearch.Focused)
|
||||
{
|
||||
txtSearch.Font = Font;
|
||||
txtSearch.ForeColor = Color.FromArgb(175, 185, 200);
|
||||
isProcUse = true; txtSearch.Text = EmptyText; isProcUse = false;
|
||||
txtSearch.Select(0, 1);
|
||||
txtSearch.Select(0, 0);
|
||||
}
|
||||
else
|
||||
{ HaveTextShow(); txtSearch.Text = ""; }
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 文本不选中
|
||||
/// </summary>
|
||||
public void TextUnSelected()
|
||||
{
|
||||
txtSearch.Select(0, 0);
|
||||
}
|
||||
/// <summary>
|
||||
/// 有内容时的显示效果
|
||||
/// </summary>
|
||||
private void HaveTextShow()
|
||||
{
|
||||
txtSearch.Font = Font;
|
||||
txtSearch.ForeColor = Color.Black;
|
||||
}
|
||||
/// <summary>
|
||||
/// 当文本框为空时,显示的内容。
|
||||
/// </summary>
|
||||
[Description("当文本框为空时,显示的内容。")]
|
||||
public string EmptyText
|
||||
{
|
||||
get { return _EmptyText; }
|
||||
set {
|
||||
_EmptyText = value;
|
||||
EmptyShow();
|
||||
}
|
||||
}
|
||||
private Font _font = new Font("宋体",9);
|
||||
/// <summary>
|
||||
/// 字体
|
||||
/// </summary>
|
||||
public override Font Font
|
||||
{
|
||||
get
|
||||
{
|
||||
return _font;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_font = value;
|
||||
txtSearch.Font = value;
|
||||
btnSearch.Font = value;
|
||||
}
|
||||
}
|
||||
private bool _UseDefSkin = true;
|
||||
/// <summary>
|
||||
///优先使用默认皮肤
|
||||
/// </summary>
|
||||
[Description("优先使用默认皮肤")]
|
||||
[DefaultValue(typeof(bool), "true")]
|
||||
public bool UseDefSkin
|
||||
{
|
||||
get
|
||||
{
|
||||
return _UseDefSkin;
|
||||
}
|
||||
set
|
||||
{
|
||||
_UseDefSkin = value;
|
||||
base.Invalidate();
|
||||
}
|
||||
}
|
||||
private Color _baseColor = Color.FromArgb(12, 125, 182);//基颜色
|
||||
/// <summary>
|
||||
///按钮基础背景色
|
||||
/// </summary>
|
||||
[Description("按钮基础背景色")]
|
||||
[DefaultValue(typeof(Color), "12, 125, 182")]
|
||||
public Color BaseColor
|
||||
{
|
||||
get
|
||||
{
|
||||
if (SkinCommon.UseDefSkin && UseDefSkin)
|
||||
{
|
||||
return SkinCommon.ButtonSkin.BackColor;
|
||||
}
|
||||
return _baseColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
_baseColor = value;
|
||||
if (SkinCommon.UseDefSkin && UseDefSkin)
|
||||
{
|
||||
btnSearch.BaseColor = SkinCommon.ButtonSkin.BackColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
btnSearch.BaseColor = _baseColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
private string _text = "";
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public override string Text
|
||||
{
|
||||
get
|
||||
{
|
||||
return _text;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_text = value;
|
||||
if(_text=="")
|
||||
{
|
||||
EmptyShow();
|
||||
}
|
||||
else
|
||||
{
|
||||
HaveTextShow(); txtSearch.Text = _text;
|
||||
txtSearch.Select(0, 1);
|
||||
txtSearch.Select(_text.Length, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 重新设置大小
|
||||
/// </summary>
|
||||
public void ResizeSize()
|
||||
{
|
||||
txtSearch.Location = new Point(3, 1);
|
||||
txtSearch.Top = (Height - txtSearch.Height) / 2;
|
||||
//Height = txtSearch.Height+2;
|
||||
btnSearch.Height = Height;
|
||||
btnSearch.Width = Height;
|
||||
btnSearch.Location = new Point(Width - btnSearch.Width, 0);
|
||||
txtSearch.Width = Width - btnSearch.Width-3;
|
||||
}
|
||||
|
||||
private void RySearch_Load(object sender, EventArgs e)
|
||||
{
|
||||
ResizeSize();
|
||||
//EmptyShow();
|
||||
}
|
||||
|
||||
private void RySearch_FontChanged(object sender, EventArgs e)
|
||||
{
|
||||
ResizeSize();
|
||||
}
|
||||
|
||||
private void TxtSearch_Enter(object sender, EventArgs e)
|
||||
{
|
||||
HaveTextShow();
|
||||
if (Text == "") { txtSearch.Text = ""; }
|
||||
}
|
||||
private bool isProcUse = false;
|
||||
private void TxtSearch_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (Text == "")
|
||||
{
|
||||
EmptyShow();
|
||||
}
|
||||
else
|
||||
{ txtSearch.Font = Font; }
|
||||
}
|
||||
|
||||
private void TxtSearch_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (isProcUse) { return; }
|
||||
Text = txtSearch.Text;
|
||||
OnTextChanged?.Invoke(this, new EventArgs());
|
||||
TextChanged?.Invoke(this, new EventArgs());
|
||||
}
|
||||
/// <summary>
|
||||
/// 点击搜索按钮
|
||||
/// </summary>
|
||||
public void PerformClick()
|
||||
{
|
||||
OnSearch?.Invoke(this, new EventArgs());
|
||||
}
|
||||
private void BtnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
OnSearch?.Invoke(this, new EventArgs());
|
||||
}
|
||||
|
||||
private void TxtSearch_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter) { btnSearch.PerformClick(); }
|
||||
//if(KeyDown!=null)
|
||||
OnKeyDown(e);
|
||||
}
|
||||
|
||||
private void RySearch_Resize(object sender, EventArgs e)
|
||||
{
|
||||
ResizeSize();
|
||||
}
|
||||
|
||||
private void RySearch_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
e.Graphics.DrawRectangle(new Pen(SkinHelp.DefalutBorderColor), new Rectangle(0, 0, this.Width - 1, this.Height - 1));
|
||||
}
|
||||
|
||||
private void TxtSearch_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
DoubleClick?.Invoke(this, new EventArgs());
|
||||
}
|
||||
|
||||
private void RySearch_ImeModeChanged(object sender, EventArgs e)
|
||||
{
|
||||
txtSearch.ImeMode = base.ImeMode;
|
||||
}
|
||||
|
||||
private void RySearch_Enter(object sender, EventArgs e)
|
||||
{
|
||||
txtSearch.Focus();
|
||||
}
|
||||
|
||||
private void TxtSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
HaveTextShow();
|
||||
if (Text == "") { txtSearch.Text = ""; }
|
||||
}
|
||||
|
||||
private void RySearch_Leave(object sender, EventArgs e)
|
||||
{
|
||||
EmptyShow();
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using ryControls;
|
||||
using ryControls.Skin;
|
||||
|
||||
namespace ryControls
|
||||
{
|
||||
[DefaultEvent("OnSearch")]
|
||||
public partial class rySearch : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 在搜索时激发
|
||||
/// </summary>
|
||||
[Description("在搜索时激发")]
|
||||
public event EventHandler OnSearch;
|
||||
/// <summary>
|
||||
/// 文本变化时激发
|
||||
/// </summary>
|
||||
[Description("文本变化时激发")]
|
||||
public new event EventHandler OnTextChanged;
|
||||
/// <summary>
|
||||
/// 文本变化时激发
|
||||
/// </summary>
|
||||
[Description("文本变化时激发")]
|
||||
public new event EventHandler TextChanged;
|
||||
/// <summary>
|
||||
/// 双击时激发
|
||||
/// </summary>
|
||||
[Description("双击时激发")]
|
||||
public new event EventHandler DoubleClick;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public rySearch()
|
||||
{
|
||||
InitializeComponent();
|
||||
txtSearch.Font = Font;
|
||||
txtSearch.ImeMode = ImeMode;
|
||||
|
||||
base.GotFocus += RySearch_GotFocus;
|
||||
}
|
||||
|
||||
private void RySearch_GotFocus(object sender, EventArgs e)
|
||||
{
|
||||
txtSearch.Focus();
|
||||
txtSearch.Select();
|
||||
txtSearch.SelectionLength = 0;
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public new void Select()
|
||||
{
|
||||
//txtSearch.Select();
|
||||
txtSearch.Focus();
|
||||
}
|
||||
private string _EmptyText = "";
|
||||
/// <summary>
|
||||
/// 文本为空时的显示效果
|
||||
/// </summary>
|
||||
private void EmptyShow()
|
||||
{
|
||||
if (_text == "")
|
||||
{
|
||||
if (!txtSearch.Focused)
|
||||
{
|
||||
txtSearch.Font = Font;
|
||||
txtSearch.ForeColor = Color.FromArgb(175, 185, 200);
|
||||
isProcUse = true; txtSearch.Text = EmptyText; isProcUse = false;
|
||||
txtSearch.Select(0, 1);
|
||||
txtSearch.Select(0, 0);
|
||||
}
|
||||
else
|
||||
{ HaveTextShow(); txtSearch.Text = ""; }
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 文本不选中
|
||||
/// </summary>
|
||||
public void TextUnSelected()
|
||||
{
|
||||
txtSearch.Select(0, 0);
|
||||
}
|
||||
/// <summary>
|
||||
/// 有内容时的显示效果
|
||||
/// </summary>
|
||||
private void HaveTextShow()
|
||||
{
|
||||
txtSearch.Font = Font;
|
||||
txtSearch.ForeColor = Color.Black;
|
||||
}
|
||||
/// <summary>
|
||||
/// 当文本框为空时,显示的内容。
|
||||
/// </summary>
|
||||
[Description("当文本框为空时,显示的内容。")]
|
||||
public string EmptyText
|
||||
{
|
||||
get { return _EmptyText; }
|
||||
set {
|
||||
_EmptyText = value;
|
||||
EmptyShow();
|
||||
}
|
||||
}
|
||||
private Font _font = new Font("宋体",9);
|
||||
/// <summary>
|
||||
/// 字体
|
||||
/// </summary>
|
||||
public override Font Font
|
||||
{
|
||||
get
|
||||
{
|
||||
return _font;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_font = value;
|
||||
txtSearch.Font = value;
|
||||
btnSearch.Font = value;
|
||||
}
|
||||
}
|
||||
private bool _UseDefSkin = true;
|
||||
/// <summary>
|
||||
///优先使用默认皮肤
|
||||
/// </summary>
|
||||
[Description("优先使用默认皮肤")]
|
||||
[DefaultValue(typeof(bool), "true")]
|
||||
public bool UseDefSkin
|
||||
{
|
||||
get
|
||||
{
|
||||
return _UseDefSkin;
|
||||
}
|
||||
set
|
||||
{
|
||||
_UseDefSkin = value;
|
||||
btnSearch.UseDefSkin = _UseDefSkin;
|
||||
base.Invalidate();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 背景色是否渐变
|
||||
/// </summary>
|
||||
[DefaultValue(false)]
|
||||
[Description("背景色是否渐变")]
|
||||
public bool ColorGradient
|
||||
{
|
||||
get { return btnSearch.ColorGradient; }
|
||||
set
|
||||
{
|
||||
if (value != btnSearch.ColorGradient)
|
||||
{
|
||||
|
||||
btnSearch.ColorGradient = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
private Color _baseColor = Color.FromArgb(12, 125, 182);//基颜色
|
||||
/// <summary>
|
||||
///按钮基础背景色
|
||||
/// </summary>
|
||||
[Description("按钮基础背景色")]
|
||||
[DefaultValue(typeof(Color), "12, 125, 182")]
|
||||
public Color BaseColor
|
||||
{
|
||||
get
|
||||
{
|
||||
//if (SkinCommon.UseDefSkin && UseDefSkin)
|
||||
//{
|
||||
// return SkinCommon.ButtonSkin.BackColor;
|
||||
//}
|
||||
return _baseColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
_baseColor = value;
|
||||
btnSearch.BaseColor = _baseColor;
|
||||
//if (SkinCommon.UseDefSkin && UseDefSkin)
|
||||
//{
|
||||
// btnSearch.BaseColor = SkinCommon.ButtonSkin.BackColor;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// btnSearch.BaseColor = _baseColor;
|
||||
//}
|
||||
}
|
||||
}
|
||||
private string _text = "";
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public override string Text
|
||||
{
|
||||
get
|
||||
{
|
||||
return _text;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_text = value;
|
||||
if(_text=="")
|
||||
{
|
||||
EmptyShow();
|
||||
}
|
||||
else
|
||||
{
|
||||
HaveTextShow(); txtSearch.Text = _text;
|
||||
txtSearch.Select(0, 1);
|
||||
txtSearch.Select(_text.Length, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 重新设置大小
|
||||
/// </summary>
|
||||
public void ResizeSize()
|
||||
{
|
||||
txtSearch.Location = new Point(3, 1);
|
||||
txtSearch.Top = (Height - txtSearch.Height) / 2;
|
||||
//Height = txtSearch.Height+2;
|
||||
btnSearch.Height = Height;
|
||||
btnSearch.Width = Height;
|
||||
btnSearch.Location = new Point(Width - btnSearch.Width, 0);
|
||||
txtSearch.Width = Width - btnSearch.Width-3;
|
||||
}
|
||||
|
||||
private void RySearch_Load(object sender, EventArgs e)
|
||||
{
|
||||
ResizeSize();
|
||||
//EmptyShow();
|
||||
}
|
||||
|
||||
private void RySearch_FontChanged(object sender, EventArgs e)
|
||||
{
|
||||
ResizeSize();
|
||||
}
|
||||
|
||||
private void TxtSearch_Enter(object sender, EventArgs e)
|
||||
{
|
||||
HaveTextShow();
|
||||
if (Text == "") { txtSearch.Text = ""; }
|
||||
}
|
||||
private bool isProcUse = false;
|
||||
private void TxtSearch_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (Text == "")
|
||||
{
|
||||
EmptyShow();
|
||||
}
|
||||
else
|
||||
{ txtSearch.Font = Font; }
|
||||
}
|
||||
|
||||
private void TxtSearch_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (isProcUse) { return; }
|
||||
Text = txtSearch.Text;
|
||||
OnTextChanged?.Invoke(this, new EventArgs());
|
||||
TextChanged?.Invoke(this, new EventArgs());
|
||||
}
|
||||
/// <summary>
|
||||
/// 点击搜索按钮
|
||||
/// </summary>
|
||||
public void PerformClick()
|
||||
{
|
||||
OnSearch?.Invoke(this, new EventArgs());
|
||||
}
|
||||
private void BtnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
OnSearch?.Invoke(this, new EventArgs());
|
||||
}
|
||||
|
||||
private void TxtSearch_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter) { btnSearch.PerformClick(); }
|
||||
//if(KeyDown!=null)
|
||||
OnKeyDown(e);
|
||||
}
|
||||
|
||||
private void RySearch_Resize(object sender, EventArgs e)
|
||||
{
|
||||
ResizeSize();
|
||||
}
|
||||
|
||||
private void RySearch_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
e.Graphics.DrawRectangle(new Pen(SkinHelp.DefalutBorderColor), new Rectangle(0, 0, this.Width - 1, this.Height - 1));
|
||||
}
|
||||
|
||||
private void TxtSearch_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
DoubleClick?.Invoke(this, new EventArgs());
|
||||
}
|
||||
|
||||
private void RySearch_ImeModeChanged(object sender, EventArgs e)
|
||||
{
|
||||
txtSearch.ImeMode = base.ImeMode;
|
||||
}
|
||||
|
||||
private void RySearch_Enter(object sender, EventArgs e)
|
||||
{
|
||||
txtSearch.Focus();
|
||||
}
|
||||
|
||||
private void TxtSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
HaveTextShow();
|
||||
if (Text == "") { txtSearch.Text = ""; }
|
||||
}
|
||||
|
||||
private void RySearch_Leave(object sender, EventArgs e)
|
||||
{
|
||||
EmptyShow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,131 +1,131 @@
|
|||
<?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="btnSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAD0SURBVDhPpZPdBgJRFIWj24iI6FWiq24jepuIiB6p
|
||||
24iIiK666gEiIiLitL5tzthzTJlq8W0za/9Mc2ZXCyF4GmIqNuKZwTUeubS+5m/64iTeiRw1vicfMBJR
|
||||
KzEU3Qyu8aKoLQxoiZtAC5EnE8ghaukxnzAXiKfUhW/ykFsLRI/5hD2O1BO+oQzOANFjHuGBIzWFLy6D
|
||||
GnQV5hG4QVUG8CnRXZhH+PsVfjnEiTCf0BbffMazyLcyJsciKi5SJyNdpKPgoYUBMBCfVpnDphkdhA3x
|
||||
A4CfNhNbgS6C98Zj+2iiGdmQdEAV/JBdWUEVGKK/eVi+ALu0Uk5r6Ri0AAAAAElFTkSuQmCC
|
||||
</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="btnSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAD0SURBVDhPpZPdBgJRFIWj24iI6FWiq24jepuIiB6p
|
||||
24iIiK666gEiIiLitL5tzthzTJlq8W0za/9Mc2ZXCyF4GmIqNuKZwTUeubS+5m/64iTeiRw1vicfMBJR
|
||||
KzEU3Qyu8aKoLQxoiZtAC5EnE8ghaukxnzAXiKfUhW/ykFsLRI/5hD2O1BO+oQzOANFjHuGBIzWFLy6D
|
||||
GnQV5hG4QVUG8CnRXZhH+PsVfjnEiTCf0BbffMazyLcyJsciKi5SJyNdpKPgoYUBMBCfVpnDphkdhA3x
|
||||
A4CfNhNbgS6C98Zj+2iiGdmQdEAV/JBdWUEVGKK/eVi+ALu0Uk5r6Ri0AAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.1.2012.1801")]
|
||||
[assembly: AssemblyFileVersion("2.1.2012.1801")]
|
||||
[assembly: AssemblyVersion("2.1.2012.2701")]
|
||||
[assembly: AssemblyFileVersion("2.1.2012.2701")]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,457 +1,464 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>ryControls</RootNamespace>
|
||||
<AssemblyName>ryControls</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Bin\Debug\CommonControls\.NET4\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DocumentationFile>..\..\Bin\Debug\CommonControls\.NET4\ryControls.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\Bin\Release\CommonControls\.NET4\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<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" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Controls\ButtonImages\GlassButton.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ButtonImages\GlassButton.Designer.cs">
|
||||
<DependentUpon>GlassButton.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ButtonImages\ImageDrawRect.cs" />
|
||||
<Compile Include="Controls\ButtonImages\ImageObject.cs" />
|
||||
<Compile Include="Controls\ButtonEX.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ColorLabel.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ContextMenuStripRichText.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ContextMenuStripRichText.designer.cs">
|
||||
<DependentUpon>ContextMenuStripRichText.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ctMsgList.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ctMsgList.Designer.cs">
|
||||
<DependentUpon>ctMsgList.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\Drawing.cs" />
|
||||
<Compile Include="Controls\Formbase.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\Formbase.Designer.cs">
|
||||
<DependentUpon>Formbase.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\Hotkey\HotkeyTextBox.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\Hotkey\HotkeyTextBox.Designer.cs">
|
||||
<DependentUpon>HotkeyTextBox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\LableX.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\LableX.Designer.cs">
|
||||
<DependentUpon>LableX.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\MsgLink.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\MsgLink.Designer.cs">
|
||||
<DependentUpon>MsgLink.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\MsgUI.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\MsgUI.Designer.cs">
|
||||
<DependentUpon>MsgUI.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\NumericUpDownEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\NumericUpDownEx.Designer.cs">
|
||||
<DependentUpon>NumericUpDownEx.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\PicButton.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\PicButton.Designer.cs">
|
||||
<DependentUpon>PicButton.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RichTextBox2.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RichTextBox2.Designer.cs">
|
||||
<DependentUpon>RichTextBox2.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyCheckBox.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyCheckBox.Designer.cs">
|
||||
<DependentUpon>RyCheckBox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ryComboBox.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyContextMenuStrip.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyHotkey.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyHotkey.Designer.cs">
|
||||
<DependentUpon>RyHotkey.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ctlMyPage.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ctlMyPage.Designer.cs">
|
||||
<DependentUpon>ctlMyPage.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\dateTimePickerEX.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\dateTimePickerEX.Designer.cs">
|
||||
<DependentUpon>dateTimePickerEX.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\DoubleText.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\DoubleText.Designer.cs">
|
||||
<DependentUpon>DoubleText.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\LabelTx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ListX.cs" />
|
||||
<Compile Include="Controls\NativeMethods.cs" />
|
||||
<Compile Include="Controls\ObjectListView.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\PanelEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\PanelEx.Designer.cs">
|
||||
<DependentUpon>PanelEx.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\QQButton.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\rySearch.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\rySearch.Designer.cs">
|
||||
<DependentUpon>rySearch.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ryWin8Button.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\SkinCommon.cs" />
|
||||
<Compile Include="Controls\SkinHelp.cs" />
|
||||
<Compile Include="Controls\SuperPictureBox.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\SuperPictureBox.Designer.cs">
|
||||
<DependentUpon>SuperPictureBox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TabBar.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TabBar.Designer.cs">
|
||||
<DependentUpon>TabBar.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TabControlEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TextBoxEx2.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TextBoxEx2.Designer.cs">
|
||||
<DependentUpon>TextBoxEx2.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ToolStripExtensions.cs" />
|
||||
<Compile Include="Controls\ToolStripRenderer.cs" />
|
||||
<Compile Include="Controls\Win32.cs" />
|
||||
<Compile Include="Controls\ZhLoading.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ZhLoading.Designer.cs">
|
||||
<DependentUpon>ZhLoading.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ExtendedWebBrowser\BrowserCommands.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\BrowserExtendedNavigatingEventArgs.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\Command.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\CommandStateEventArgs.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\ExtendedWebBrowser.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ExtendedWebBrowser\Hresults.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\NativeMethods.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\NotifyCollection.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\TextChangedEventArgs.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\UnsafeNativeMethods.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\UrlContext.cs" />
|
||||
<Compile Include="ImageChart\LinePainter.cs" />
|
||||
<Compile Include="ImageChart\MovementImage.cs" />
|
||||
<Compile Include="ImageChart\MovementPainterBase.cs" />
|
||||
<Compile Include="ImageChart\RectanglePainter.cs" />
|
||||
<Compile Include="ImageChart\XAxisItem.cs" />
|
||||
<Compile Include="ImageChart\XAxisItemList.cs" />
|
||||
<Compile Include="PramType.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="Controls\TextBoxEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TextBoxEx.Designer.cs">
|
||||
<DependentUpon>TextBoxEx.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Rili\LunarDay.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Rili\LunarDay.Designer.cs">
|
||||
<DependentUpon>LunarDay.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Rili\ChinaCalendar.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Rili\ChinaCalendar.Designer.cs">
|
||||
<DependentUpon>ChinaCalendar.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="RySetting.cs" />
|
||||
<Compile Include="SuperColor\frmColorConvert.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\frmColorConvert.Designer.cs">
|
||||
<DependentUpon>frmColorConvert.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\GetColors.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\GetColors.Designer.cs">
|
||||
<DependentUpon>GetColors.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\ColorConvert.cs" />
|
||||
<Compile Include="SuperColor\SuperColor.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\SuperColor.Designer.cs">
|
||||
<DependentUpon>SuperColor.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SuperTabControl\ChromeTabControl.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SuperTabControl\ChromeTabControl.Designer.cs">
|
||||
<DependentUpon>ChromeTabControl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SuperTabControl\Win32\Enum.cs" />
|
||||
<Compile Include="SuperTabControl\Win32\User32.cs" />
|
||||
<Compile Include="TreeXML\clsCbbItem.cs" />
|
||||
<Compile Include="TreeXML\ComboBoxEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\ctlTreeView.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\ctlTreeView.Designer.cs">
|
||||
<DependentUpon>ctlTreeView.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmAddTree.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmAddTree.Designer.cs">
|
||||
<DependentUpon>frmAddTree.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmAuthUser.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmAuthUser.Designer.cs">
|
||||
<DependentUpon>frmAuthUser.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmChangePwd.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmChangePwd.Designer.cs">
|
||||
<DependentUpon>frmChangePwd.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmPwd.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmPwd.Designer.cs">
|
||||
<DependentUpon>frmPwd.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Controls\ContextMenuStripRichText.resx">
|
||||
<DependentUpon>ContextMenuStripRichText.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\ctlMyPage.resx">
|
||||
<DependentUpon>ctlMyPage.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\ctMsgList.resx">
|
||||
<DependentUpon>ctMsgList.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\DoubleText.resx">
|
||||
<DependentUpon>DoubleText.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\Formbase.resx">
|
||||
<DependentUpon>Formbase.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\Hotkey\HotkeyTextBox.resx">
|
||||
<DependentUpon>HotkeyTextBox.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\MsgLink.resx">
|
||||
<DependentUpon>MsgLink.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\MsgUI.resx">
|
||||
<DependentUpon>MsgUI.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\NumericUpDownEx.resx">
|
||||
<DependentUpon>NumericUpDownEx.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\PanelEx.resx">
|
||||
<DependentUpon>PanelEx.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\PicButton.resx">
|
||||
<DependentUpon>PicButton.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\RichTextBox2.resx">
|
||||
<DependentUpon>RichTextBox2.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\RyCheckBox.resx">
|
||||
<DependentUpon>RyCheckBox.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\rySearch.resx">
|
||||
<DependentUpon>rySearch.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\TabBar.resx">
|
||||
<DependentUpon>TabBar.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\TextBoxEx2.resx">
|
||||
<DependentUpon>TextBoxEx2.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Rili\LunarDay.resx">
|
||||
<DependentUpon>LunarDay.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Rili\ChinaCalendar.resx">
|
||||
<DependentUpon>ChinaCalendar.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SuperColor\frmColorConvert.resx">
|
||||
<DependentUpon>frmColorConvert.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SuperColor\GetColors.resx">
|
||||
<DependentUpon>GetColors.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SuperColor\SuperColor.resx">
|
||||
<DependentUpon>SuperColor.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\ctlTreeView.resx">
|
||||
<DependentUpon>ctlTreeView.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\frmAddTree.resx">
|
||||
<DependentUpon>frmAddTree.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\frmAuthUser.resx">
|
||||
<DependentUpon>frmAuthUser.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\frmChangePwd.resx">
|
||||
<DependentUpon>frmChangePwd.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\frmPwd.resx">
|
||||
<DependentUpon>frmPwd.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MyDb\MyDbV4.csproj">
|
||||
<Project>{9df20d86-a56e-4cf6-a3d8-f30421297b1b}</Project>
|
||||
<Name>MyDbV4</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Controls\ButtonImages\Toolbar_Hover.png" />
|
||||
<None Include="Resources\UpArrow.png" />
|
||||
<None Include="Resources\DownArrow.png" />
|
||||
<EmbeddedResource Include="close.png" />
|
||||
<EmbeddedResource Include="close_normal.png" />
|
||||
<EmbeddedResource Include="icon_normal.png" />
|
||||
<EmbeddedResource Include="TabButtonBackground.bmp" />
|
||||
<EmbeddedResource Include="Controls\FormImages\borderbm.bmp" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_close.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_close_Hover.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_max.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_max_Hover.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_mini.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_mini_Hover.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>ryControls</RootNamespace>
|
||||
<AssemblyName>ryControls</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Bin\Debug\CommonControls\.NET4\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DocumentationFile>..\..\Bin\Debug\CommonControls\.NET4\ryControls.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\Bin\Release\CommonControls\.NET4\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<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" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Controls\ButtonImages\GlassButton.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ButtonImages\GlassButton.Designer.cs">
|
||||
<DependentUpon>GlassButton.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ButtonImages\ImageDrawRect.cs" />
|
||||
<Compile Include="Controls\ButtonImages\ImageObject.cs" />
|
||||
<Compile Include="Controls\ButtonEX.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ColorLabel.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ContextMenuStripRichText.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ContextMenuStripRichText.designer.cs">
|
||||
<DependentUpon>ContextMenuStripRichText.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ctMsgList.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ctMsgList.Designer.cs">
|
||||
<DependentUpon>ctMsgList.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\Drawing.cs" />
|
||||
<Compile Include="Controls\Formbase.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\Formbase.Designer.cs">
|
||||
<DependentUpon>Formbase.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\Hotkey\HotkeyTextBox.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\Hotkey\HotkeyTextBox.Designer.cs">
|
||||
<DependentUpon>HotkeyTextBox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\LableX.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\LableX.Designer.cs">
|
||||
<DependentUpon>LableX.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\List\IconViewEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\List\IItemInfo.cs" />
|
||||
<Compile Include="Controls\MsgLink.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\MsgLink.Designer.cs">
|
||||
<DependentUpon>MsgLink.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\MsgUI.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\MsgUI.Designer.cs">
|
||||
<DependentUpon>MsgUI.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\NumericUpDownEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\NumericUpDownEx.Designer.cs">
|
||||
<DependentUpon>NumericUpDownEx.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\PicButton.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\PicButton.Designer.cs">
|
||||
<DependentUpon>PicButton.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RichTextBox2.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RichTextBox2.Designer.cs">
|
||||
<DependentUpon>RichTextBox2.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyCheckBox.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyCheckBox.Designer.cs">
|
||||
<DependentUpon>RyCheckBox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ryComboBox.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyContextMenuStrip.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyHotkey.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\RyHotkey.Designer.cs">
|
||||
<DependentUpon>RyHotkey.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ctlMyPage.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ctlMyPage.Designer.cs">
|
||||
<DependentUpon>ctlMyPage.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\dateTimePickerEX.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\dateTimePickerEX.Designer.cs">
|
||||
<DependentUpon>dateTimePickerEX.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\DoubleText.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\DoubleText.Designer.cs">
|
||||
<DependentUpon>DoubleText.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\LabelTx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ListX.cs" />
|
||||
<Compile Include="Controls\NativeMethods.cs" />
|
||||
<Compile Include="Controls\ObjectListView.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\PanelEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\PanelEx.Designer.cs">
|
||||
<DependentUpon>PanelEx.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\QQButton.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\rySearch.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\rySearch.Designer.cs">
|
||||
<DependentUpon>rySearch.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ryWin8Button.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\SkinCommon.cs" />
|
||||
<Compile Include="Controls\SkinHelp.cs" />
|
||||
<Compile Include="Controls\SuperPictureBox.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\SuperPictureBox.Designer.cs">
|
||||
<DependentUpon>SuperPictureBox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TabBar.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TabBar.Designer.cs">
|
||||
<DependentUpon>TabBar.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TabControlEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TextBoxEx2.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TextBoxEx2.Designer.cs">
|
||||
<DependentUpon>TextBoxEx2.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ToolStripExtensions.cs" />
|
||||
<Compile Include="Controls\ToolStripRenderer.cs" />
|
||||
<Compile Include="Controls\Win32.cs" />
|
||||
<Compile Include="Controls\ZhLoading.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ZhLoading.Designer.cs">
|
||||
<DependentUpon>ZhLoading.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ExtendedWebBrowser\BrowserCommands.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\BrowserExtendedNavigatingEventArgs.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\Command.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\CommandStateEventArgs.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\ExtendedWebBrowser.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ExtendedWebBrowser\Hresults.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\NativeMethods.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\NotifyCollection.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\TextChangedEventArgs.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\UnsafeNativeMethods.cs" />
|
||||
<Compile Include="ExtendedWebBrowser\UrlContext.cs" />
|
||||
<Compile Include="ImageChart\LinePainter.cs" />
|
||||
<Compile Include="ImageChart\MovementImage.cs" />
|
||||
<Compile Include="ImageChart\MovementPainterBase.cs" />
|
||||
<Compile Include="ImageChart\RectanglePainter.cs" />
|
||||
<Compile Include="ImageChart\XAxisItem.cs" />
|
||||
<Compile Include="ImageChart\XAxisItemList.cs" />
|
||||
<Compile Include="PramType.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="Controls\TextBoxEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\TextBoxEx.Designer.cs">
|
||||
<DependentUpon>TextBoxEx.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Rili\LunarDay.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Rili\LunarDay.Designer.cs">
|
||||
<DependentUpon>LunarDay.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Rili\ChinaCalendar.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Rili\ChinaCalendar.Designer.cs">
|
||||
<DependentUpon>ChinaCalendar.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="RySetting.cs" />
|
||||
<Compile Include="SuperColor\frmColorConvert.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\frmColorConvert.Designer.cs">
|
||||
<DependentUpon>frmColorConvert.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\GetColors.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\GetColors.Designer.cs">
|
||||
<DependentUpon>GetColors.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\ColorConvert.cs" />
|
||||
<Compile Include="SuperColor\SuperColor.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SuperColor\SuperColor.Designer.cs">
|
||||
<DependentUpon>SuperColor.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SuperTabControl\ChromeTabControl.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SuperTabControl\ChromeTabControl.Designer.cs">
|
||||
<DependentUpon>ChromeTabControl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SuperTabControl\Win32\Enum.cs" />
|
||||
<Compile Include="SuperTabControl\Win32\User32.cs" />
|
||||
<Compile Include="TreeXML\clsCbbItem.cs" />
|
||||
<Compile Include="TreeXML\ComboBoxEx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\ctlTreeView.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\ctlTreeView.Designer.cs">
|
||||
<DependentUpon>ctlTreeView.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmAddTree.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmAddTree.Designer.cs">
|
||||
<DependentUpon>frmAddTree.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmAuthUser.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmAuthUser.Designer.cs">
|
||||
<DependentUpon>frmAuthUser.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmChangePwd.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmChangePwd.Designer.cs">
|
||||
<DependentUpon>frmChangePwd.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmPwd.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TreeXML\frmPwd.Designer.cs">
|
||||
<DependentUpon>frmPwd.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Controls\ContextMenuStripRichText.resx">
|
||||
<DependentUpon>ContextMenuStripRichText.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\ctlMyPage.resx">
|
||||
<DependentUpon>ctlMyPage.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\ctMsgList.resx">
|
||||
<DependentUpon>ctMsgList.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\DoubleText.resx">
|
||||
<DependentUpon>DoubleText.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\Formbase.resx">
|
||||
<DependentUpon>Formbase.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\Hotkey\HotkeyTextBox.resx">
|
||||
<DependentUpon>HotkeyTextBox.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\List\IconViewEx.resx">
|
||||
<DependentUpon>IconViewEx.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\MsgLink.resx">
|
||||
<DependentUpon>MsgLink.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\MsgUI.resx">
|
||||
<DependentUpon>MsgUI.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\NumericUpDownEx.resx">
|
||||
<DependentUpon>NumericUpDownEx.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\PanelEx.resx">
|
||||
<DependentUpon>PanelEx.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\PicButton.resx">
|
||||
<DependentUpon>PicButton.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\RichTextBox2.resx">
|
||||
<DependentUpon>RichTextBox2.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\RyCheckBox.resx">
|
||||
<DependentUpon>RyCheckBox.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\rySearch.resx">
|
||||
<DependentUpon>rySearch.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\TabBar.resx">
|
||||
<DependentUpon>TabBar.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\TextBoxEx2.resx">
|
||||
<DependentUpon>TextBoxEx2.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Rili\LunarDay.resx">
|
||||
<DependentUpon>LunarDay.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Rili\ChinaCalendar.resx">
|
||||
<DependentUpon>ChinaCalendar.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SuperColor\frmColorConvert.resx">
|
||||
<DependentUpon>frmColorConvert.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SuperColor\GetColors.resx">
|
||||
<DependentUpon>GetColors.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SuperColor\SuperColor.resx">
|
||||
<DependentUpon>SuperColor.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\ctlTreeView.resx">
|
||||
<DependentUpon>ctlTreeView.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\frmAddTree.resx">
|
||||
<DependentUpon>frmAddTree.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\frmAuthUser.resx">
|
||||
<DependentUpon>frmAuthUser.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\frmChangePwd.resx">
|
||||
<DependentUpon>frmChangePwd.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TreeXML\frmPwd.resx">
|
||||
<DependentUpon>frmPwd.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MyDb\MyDbV4.csproj">
|
||||
<Project>{9df20d86-a56e-4cf6-a3d8-f30421297b1b}</Project>
|
||||
<Name>MyDbV4</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Controls\ButtonImages\Toolbar_Hover.png" />
|
||||
<None Include="Resources\UpArrow.png" />
|
||||
<None Include="Resources\DownArrow.png" />
|
||||
<EmbeddedResource Include="close.png" />
|
||||
<EmbeddedResource Include="close_normal.png" />
|
||||
<EmbeddedResource Include="icon_normal.png" />
|
||||
<EmbeddedResource Include="TabButtonBackground.bmp" />
|
||||
<EmbeddedResource Include="Controls\FormImages\borderbm.bmp" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_close.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_close_Hover.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_max.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_max_Hover.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_mini.png" />
|
||||
<EmbeddedResource Include="Controls\FormImages\btn_mini_Hover.png" />
|
||||
</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.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
-->
|
||||
</Project>
|
||||
Loading…
Reference in New Issue
Block a user