### 2021-10-08更新
------ #### VSoft V1.0.2110.0801 - *.[新增]新增支持将分类绑定快捷键。 - *.[修复]修复新增软件后,热键可能设置不正确的BUG
This commit is contained in:
parent
150b39ca18
commit
574e29870d
Binary file not shown.
3
Bin/Debug/VSoft/DyLine.exe.config
Normal file
3
Bin/Debug/VSoft/DyLine.exe.config
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/></startup></configuration>
|
Binary file not shown.
|
@ -641,6 +641,14 @@
|
|||
<param name="strValue">属性值</param>
|
||||
<returns>如为1,表示加载成功,为0为失败</returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.Storage.SetAttrValue(System.String,System.Int64)">
|
||||
<summary>
|
||||
设置节点值
|
||||
</summary>
|
||||
<param name="strName">属性名</param>
|
||||
<param name="strValue">属性值</param>
|
||||
<returns>如为1,表示加载成功,为0为失败</returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.Storage.SetAttrValue(System.String,System.Decimal)">
|
||||
<summary>
|
||||
设置节点值
|
||||
|
@ -667,7 +675,7 @@
|
|||
</member>
|
||||
<member name="M:ryCommon.Storage.GetAttrValue(System.String)">
|
||||
<summary>
|
||||
读取指定节点的值
|
||||
读取指定节点的值(string)
|
||||
</summary>
|
||||
<param name="strNode"></param>
|
||||
<returns></returns>
|
||||
|
@ -736,7 +744,7 @@
|
|||
</member>
|
||||
<member name="M:ryCommon.Storage.GetAttrValue(System.String,System.String)">
|
||||
<summary>
|
||||
读取指定节点的值
|
||||
读取指定节点的值(string)
|
||||
</summary>
|
||||
<param name="strNode"></param>
|
||||
<param name="defValue"></param>
|
||||
|
@ -744,7 +752,7 @@
|
|||
</member>
|
||||
<member name="M:ryCommon.Storage.GetAttrValueByInt(System.String,System.Int32)">
|
||||
<summary>
|
||||
读取指定节点的值
|
||||
读取指定节点的值(int)
|
||||
</summary>
|
||||
<param name="strNode"></param>
|
||||
<param name="defValue"></param>
|
||||
|
@ -752,7 +760,7 @@
|
|||
</member>
|
||||
<member name="M:ryCommon.Storage.GetAttrValueByDecimal(System.String,System.Decimal)">
|
||||
<summary>
|
||||
读取指定节点的值
|
||||
读取指定节点的值(decimal)
|
||||
</summary>
|
||||
<param name="strNode"></param>
|
||||
<param name="defValue"></param>
|
||||
|
@ -1416,6 +1424,32 @@
|
|||
<param name="exe_path"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.RySoft.GetVerByVerStr(System.String,System.Double@,System.Double@)">
|
||||
<summary>
|
||||
根据版本字符串输出double类型的版本号
|
||||
</summary>
|
||||
<param name="ver"></param>
|
||||
<param name="_softVer"></param>
|
||||
<param name="_reVer"></param>
|
||||
</member>
|
||||
<member name="M:ryCommon.RySoft.CompareVer(System.String,System.String)">
|
||||
<summary>
|
||||
比较两个版本号大小
|
||||
</summary>
|
||||
<param name="oldVer"></param>
|
||||
<param name="NewVer"></param>
|
||||
<returns>oldVer小于newVer,返回1,大于则返回-1,相等返回0</returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.RySoft.CompareVer(System.Double,System.Double,System.Double,System.Double)">
|
||||
<summary>
|
||||
比较版本号
|
||||
</summary>
|
||||
<param name="_old_softVer"></param>
|
||||
<param name="_old_reVer"></param>
|
||||
<param name="_new_softVer"></param>
|
||||
<param name="_new_reVer"></param>
|
||||
<returns>old小于new,返回1,大于则返回-1,相等返回0</returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.RySoft.IsAdministrator">
|
||||
<summary>
|
||||
判断是否是管理员方式运行
|
||||
|
@ -2589,6 +2623,13 @@
|
|||
<param name="seconds">是否显示秒</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.RyDate.GetTimeStr(System.Int64)">
|
||||
<summary>
|
||||
将秒数显示成中文表达式
|
||||
</summary>
|
||||
<param name="Seconds"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.RyDate.DateDiff(System.DateTime)">
|
||||
<summary>
|
||||
计算一个时间与当前本地日期和时间的时间间隔,返回的是时间间隔的日期差的绝对值.
|
||||
|
@ -6428,6 +6469,31 @@
|
|||
<param name="Msg">发送消息</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:QuickMsg.RyMemoryShare.ReadFromMemory(System.String,System.Int64)">
|
||||
<summary>
|
||||
读共享内存
|
||||
</summary>
|
||||
<param name="fileName"></param>
|
||||
<param name="defValue"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:QuickMsg.RyMemoryShare.ReadFromMemory(System.String,System.Int32)">
|
||||
<summary>
|
||||
读共享内存
|
||||
</summary>
|
||||
<param name="fileName"></param>
|
||||
<param name="defValue"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:QuickMsg.RyMemoryShare.ReadFromMemory(System.String,System.UInt32,System.String)">
|
||||
<summary>
|
||||
读共享内存
|
||||
</summary>
|
||||
<param name="fileName"></param>
|
||||
<param name="structSize"></param>
|
||||
<param name="defValue"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:QuickMsg.RyMemoryShare.ReadFromMemory(System.UInt32,System.Type,System.String)">
|
||||
<summary>
|
||||
读共享内存
|
||||
|
@ -6926,6 +6992,30 @@
|
|||
<param name="mySQL"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.IDbInterface.ExecuteNonQuery(ryCommonDb.RyQuickSQL,System.String,System.Boolean)">
|
||||
<summary>
|
||||
执行SQL语句
|
||||
</summary>
|
||||
<param name="mySQL"></param>
|
||||
<param name="wheresql">只针对IsAdd为false才生效,where 以后的sql语句</param>
|
||||
<param name="IsAdd">是新增还是更新</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.IDbInterface.Insert(ryCommonDb.RyQuickSQL)">
|
||||
<summary>
|
||||
插入数据库
|
||||
</summary>
|
||||
<param name="mySQL"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.IDbInterface.Update(ryCommonDb.RyQuickSQL,System.String)">
|
||||
<summary>
|
||||
更新数据库
|
||||
</summary>
|
||||
<param name="mySQL"></param>
|
||||
<param name="wheresql">where 以后的sql语句</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.IDbInterface.ExecuteNonQuery(System.String)">
|
||||
<summary>
|
||||
执行SQL语句
|
||||
|
@ -7248,6 +7338,30 @@
|
|||
<param name="Parameter"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.SqlDataProvider.ExecuteNonQuery(ryCommonDb.RyQuickSQL,System.String,System.Boolean)">
|
||||
<summary>
|
||||
执行SQL语句
|
||||
</summary>
|
||||
<param name="mySQL"></param>
|
||||
<param name="wheresql">只针对IsAdd为false才生效,where 以后的sql语句</param>
|
||||
<param name="IsAdd">是新增还是更新</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.SqlDataProvider.Insert(ryCommonDb.RyQuickSQL)">
|
||||
<summary>
|
||||
插入数据库
|
||||
</summary>
|
||||
<param name="mySQL"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.SqlDataProvider.Update(ryCommonDb.RyQuickSQL,System.String)">
|
||||
<summary>
|
||||
更新数据库
|
||||
</summary>
|
||||
<param name="mySQL"></param>
|
||||
<param name="wheresql">where 以后的sql语句</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.SqlDataProvider.ExecuteNonQuery(System.String,ryCommonDb.RyQuickSQL)">
|
||||
<summary>
|
||||
|
||||
|
@ -7420,6 +7534,13 @@
|
|||
<param name="field"></param>
|
||||
<param name="value"></param>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.RyQuickSQL.AddField(System.String,System.Byte[])">
|
||||
<summary>
|
||||
添加byte[]字段
|
||||
</summary>
|
||||
<param name="field"></param>
|
||||
<param name="value"></param>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.RyQuickSQL.AddField(System.String,System.Boolean)">
|
||||
<summary>
|
||||
添加bool字段
|
||||
|
@ -8072,6 +8193,14 @@
|
|||
<param name="url"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RyWeb.QuickWeb.GetSize(System.String,System.String@)">
|
||||
<summary>
|
||||
获取网址对应的文件大小
|
||||
</summary>
|
||||
<param name="url"></param>
|
||||
<param name="errormsg"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:RyWeb.QuickWeb.UserAgent">
|
||||
<summary>
|
||||
|
||||
|
@ -9172,6 +9301,50 @@
|
|||
释放热键
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SysFuns.WinHotReg.GetTag(System.Int32)">
|
||||
<summary>
|
||||
获取热键Tag
|
||||
</summary>
|
||||
<param name="HotId"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SysFuns.WinHotReg.GetHotId(System.String)">
|
||||
<summary>
|
||||
获取热键id
|
||||
</summary>
|
||||
<param name="Tag"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SysFuns.WinHotReg.GetHotId(SysFuns.KeyModifiers,System.Windows.Forms.Keys)">
|
||||
<summary>
|
||||
获取热键id
|
||||
</summary>
|
||||
<param name="fsModifiers"></param>
|
||||
<param name="vk"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SysFuns.WinHotReg.IsExist(System.Int32)">
|
||||
<summary>
|
||||
判断热键id是否存在
|
||||
</summary>
|
||||
<param name="hotId"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SysFuns.WinHotReg.IsExist(System.String)">
|
||||
<summary>
|
||||
判断热键Tag是否存在
|
||||
</summary>
|
||||
<param name="Tag"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SysFuns.WinHotReg.IsExist(SysFuns.KeyModifiers,System.Windows.Forms.Keys)">
|
||||
<summary>
|
||||
判断热键是否存在
|
||||
</summary>
|
||||
<param name="fsModifiers"></param>
|
||||
<param name="vk"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SysFuns.WinHotReg.RegHotKey(System.Int32,SysFuns.KeyModifiers,System.Windows.Forms.Keys)">
|
||||
<summary>
|
||||
注册热键
|
||||
|
@ -9190,6 +9363,16 @@
|
|||
<param name="vk"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SysFuns.WinHotReg.RegHotKey(System.Int32,System.String,System.Int32,System.Windows.Forms.Keys)">
|
||||
<summary>
|
||||
注册热键
|
||||
</summary>
|
||||
<param name="id"></param>
|
||||
<param name="Tag"></param>
|
||||
<param name="fsModifiers"></param>
|
||||
<param name="vk"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:SysFuns.WinHotReg.Count">
|
||||
<summary>
|
||||
获取热键数量
|
||||
|
@ -9240,6 +9423,11 @@
|
|||
热键id
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:SysFuns.HotKeyType.Tag">
|
||||
<summary>
|
||||
热键Tag
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:SysFuns.HotKeyType.fsModifiers">
|
||||
<summary>
|
||||
功能键
|
||||
|
@ -9258,6 +9446,20 @@
|
|||
<param name="fsModifiers"></param>
|
||||
<param name="vk"></param>
|
||||
</member>
|
||||
<member name="M:SysFuns.HotKeyType.#ctor(System.Int32,System.String,SysFuns.KeyModifiers,System.Windows.Forms.Keys)">
|
||||
<summary>
|
||||
热键类型
|
||||
</summary>
|
||||
<param name="id"></param>
|
||||
<param name="Tag"></param>
|
||||
<param name="fsModifiers"></param>
|
||||
<param name="vk"></param>
|
||||
</member>
|
||||
<member name="M:SysFuns.HotKeyType.#ctor">
|
||||
<summary>
|
||||
热键类型
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:WinAPI.Kernel32">
|
||||
<summary>
|
||||
|
||||
|
|
Binary file not shown.
|
@ -358,6 +358,30 @@
|
|||
<param name="Parameter"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.SQLiteDataProvider.ExecuteNonQuery(ryCommonDb.RyQuickSQL,System.String,System.Boolean)">
|
||||
<summary>
|
||||
执行SQL语句
|
||||
</summary>
|
||||
<param name="mySQL"></param>
|
||||
<param name="wheresql">只针对IsAdd为false才生效,where 以后的sql语句</param>
|
||||
<param name="IsAdd">是新增还是更新</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.SQLiteDataProvider.Insert(ryCommonDb.RyQuickSQL)">
|
||||
<summary>
|
||||
插入数据库
|
||||
</summary>
|
||||
<param name="mySQL"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.SQLiteDataProvider.Update(ryCommonDb.RyQuickSQL,System.String)">
|
||||
<summary>
|
||||
更新数据库
|
||||
</summary>
|
||||
<param name="mySQL"></param>
|
||||
<param name="wheresql">where 以后的sql语句</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommonDb.SQLiteDataProvider.ExecuteNonQuery(System.String,ryCommonDb.RyQuickSQL)">
|
||||
<summary>
|
||||
|
||||
|
|
Binary file not shown.
|
@ -1,3 +1,3 @@
|
|||
<root>
|
||||
<list id="Setting" ShowMainHotKey="1+88" OpenByClick="0" HideAfterRun="1" ShowMainMouseKeyOn="1" ShowMainMouseKey="1" />
|
||||
<list id="Setting" ShowMainHotKey="1+88" OpenByClick="0" HideAfterRun="1" ShowMainMouseKeyOn="1" ShowMainMouseKey="2" />
|
||||
</root>
|
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
[VSoft]
|
||||
hwnd=1446336
|
||||
hwnd=8193010
|
||||
width=745
|
||||
height=543
|
||||
[VSoft_Test]
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -14498,22 +14498,26 @@
|
|||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
The contents of the control will be updated immediately after setting this property.
|
||||
设置此属性后,控件的内容将立即更新。
|
||||
</para>
|
||||
<para>This method preserves selection, if possible. Use <see cref="M:BrightIdeasSoftware.ObjectListView.SetObjects(System.Collections.IEnumerable,System.Boolean)"/> if
|
||||
you do not want to preserve the selection. Preserving selection is the slowest part of this
|
||||
code and performance is O(n) where n is the number of selected rows.</para>
|
||||
<para>This method is not thread safe.</para>
|
||||
<para>The property DOES work on virtual lists: setting is problem-free, but if you try to get it
|
||||
and the list has 10 million objects, it may take some time to return.</para>
|
||||
<para>This collection is unfiltered. Use <see cref="P:BrightIdeasSoftware.ObjectListView.FilteredObjects"/> to access just those objects
|
||||
that survive any installed filters.</para>
|
||||
<para>如果可能,此方法将保留所选内容。使用 <see cref="M:BrightIdeasSoftware.ObjectListView.SetObjects(System.Collections.IEnumerable,System.Boolean)"/> if
|
||||
如果您不想保留所选内容,请执行以下操作。
|
||||
保留选择是该代码中最慢的部分,性能为O(N),其中n是选定的行数。</para>
|
||||
<para>此方法不是线程安全的。</para>
|
||||
<para>该属性确实适用于虚拟列表:设置是没有问题的,但如果您尝试获取它,
|
||||
并且列表有1000万个对象,则可能需要一些时间才能返回。</para>
|
||||
<para>此集合未经过筛选。使用 <see cref="P:BrightIdeasSoftware.ObjectListView.FilteredObjects"/> 只访问那些在任何已安装的筛选器中幸存下来的对象。</para>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.ObjectsList">
|
||||
<summary>
|
||||
获取当前控件所有对象组成的列表
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.ObjectsForClustering">
|
||||
<summary>
|
||||
Gets the collection of objects that will be considered when creating clusters
|
||||
(which are used to generate Excel-like column filters)
|
||||
获取创建群集时将考虑的对象集合。
|
||||
(用于生成类似Excel的列筛选器)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.OverlayImage">
|
||||
|
@ -14648,15 +14652,14 @@
|
|||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.SelectedColumn">
|
||||
<summary>
|
||||
Gets or sets the column that is drawn with a slight tint.
|
||||
获取或设置选定列
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
If TintSortColumn is true, the sort column will automatically
|
||||
be made the selected column.
|
||||
如果TintSortColumn为true,则排序列将自动成为选定列。
|
||||
</para>
|
||||
<para>
|
||||
The colour of the tint is controlled by SelectedColumnTint.
|
||||
色调的颜色由SelectedColumnTint控制。
|
||||
</para>
|
||||
</remarks>
|
||||
</member>
|
||||
|
@ -14996,12 +14999,11 @@
|
|||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.BooleanCheckStateGetter">
|
||||
<summary>
|
||||
This delegate fetches the checkedness of an object as a boolean only.
|
||||
此委托仅将对象的检查性作为布尔值获取。
|
||||
</summary>
|
||||
<remarks>Use this if you never want to worry about the
|
||||
Indeterminate state (which is fairly common).
|
||||
<remarks>如果您永远不想担心不确定状态(这是相当常见的),请使用此选项。
|
||||
<para>
|
||||
This is a convenience wrapper around the CheckStateGetter property.
|
||||
这是CheckStateGetter属性的便捷包装。
|
||||
</para>
|
||||
</remarks>
|
||||
</member>
|
||||
|
@ -15019,7 +15021,7 @@
|
|||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.CanShowGroups">
|
||||
<summary>
|
||||
Gets whether or not this listview is capabale of showing groups
|
||||
获取此列表视图是否能够显示组
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.CanUseApplicationIdle">
|
||||
|
@ -15057,20 +15059,17 @@
|
|||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.CheckedAspectName">
|
||||
<summary>
|
||||
The name of the property (or field) that holds whether or not a model is checked.
|
||||
保存是否选中模型的属性(或字段)的名称。
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>The property be modifiable. It must have a return type of bool (or of bool? if
|
||||
TriStateCheckBoxes is true).</para>
|
||||
<para>Setting this property replaces any CheckStateGetter or CheckStatePutter that have been installed.
|
||||
Conversely, later setting the CheckStateGetter or CheckStatePutter properties will take precedence
|
||||
over the behavior of this property.</para>
|
||||
<para>该属性是可修改的。它必须具有bool(或bool?)返回类型。如果TriStateCheckBooks为真)。</para>
|
||||
<para>设置此属性将替换任何已安装的CheckStateGetter或CheckStatePutter。
|
||||
相反,稍后设置CheckStateGetter或CheckStatePutter属性将优先于此属性的行为。</para>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.CheckStateGetter">
|
||||
<summary>
|
||||
This delegate will be called whenever the ObjectListView needs to know the check state
|
||||
of the row associated with a given model object.
|
||||
只要ObjectListView需要知道与给定模型对象关联的行的检查状态,就会调用此委托。
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>.NET has no support for indeterminate values, but as of v2.0, this class allows
|
||||
|
@ -15086,17 +15085,16 @@
|
|||
</member>
|
||||
<member name="P:BrightIdeasSoftware.ObjectListView.CustomSorter">
|
||||
<summary>
|
||||
This delegate can be used to sort the table in a custom fasion.
|
||||
此委托可用于以自定义方式对表进行排序。
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
The delegate must install a ListViewItemSorter on the ObjectListView.
|
||||
Installing the ItemSorter does the actual work of sorting the ListViewItems.
|
||||
See ColumnComparer in the code for an example of what an ItemSorter has to do.
|
||||
委托必须在ObjectListView上安装ListViewItemSorter。
|
||||
安装ItemSorter会执行对ListViewItems进行排序的实际工作。
|
||||
有关ItemSorter必须执行的操作的示例,请参见代码中的ColumnCompeller。
|
||||
</para>
|
||||
<para>
|
||||
Do not install a CustomSorter on a VirtualObjectListView. Override the SortObjects()
|
||||
method of the IVirtualListDataSource instead.
|
||||
请勿在VirtualObjectListView上安装CustomSorter。改为重写IVirtualListDataSource的SortObjects()方法。
|
||||
</para>
|
||||
</remarks>
|
||||
</member>
|
||||
|
@ -15132,77 +15130,69 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.AddObject(System.Object)">
|
||||
<summary>
|
||||
Add the given model object to this control.
|
||||
将给定的模型对象添加到此控件。
|
||||
</summary>
|
||||
<param name="modelObject">The model object to be displayed</param>
|
||||
<param name="modelObject">要显示的模型对象</param>
|
||||
<remarks>See AddObjects() for more details</remarks>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.AddObjects(System.Collections.ICollection)">
|
||||
<summary>
|
||||
Add the given collection of model objects to this control.
|
||||
将给定的模型对象集合添加到此控件。
|
||||
</summary>
|
||||
<param name="modelObjects">A collection of model objects</param>
|
||||
<param name="modelObjects">要显示的模型对象集合</param>
|
||||
<remarks>
|
||||
<para>The added objects will appear in their correct sort position, if sorting
|
||||
is active (i.e. if PrimarySortColumn is not null). Otherwise, they will appear at the end of the list.</para>
|
||||
<para>No check is performed to see if any of the objects are already in the ListView.</para>
|
||||
<para>Null objects are silently ignored.</para>
|
||||
<para>如果排序处于活动状态(即,如果PrimarySortColumn不为空),则添加的对象将出现在其正确的排序位置。否则,它们将出现在列表的末尾。</para>
|
||||
<para>不执行任何检查以查看是否有任何对象已在ListView中。</para>
|
||||
<para>空对象将被静默忽略。</para>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.AutoResizeColumns">
|
||||
<summary>
|
||||
Resize the columns to the maximum of the header width and the data.
|
||||
将列的大小调整到页眉宽度和数据的最大值。
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.AutoSizeColumns">
|
||||
<summary>
|
||||
Set up any automatically initialized column widths (columns that
|
||||
have a width of 0 or -1 will be resized to the width of their
|
||||
contents or header respectively).
|
||||
设置任何自动初始化的列宽(宽度为0或-1的列将分别调整为其内容或标题的宽度)。
|
||||
</summary>
|
||||
<remarks>
|
||||
Obviously, this will only work once. Once it runs, the columns widths will
|
||||
be changed to something else (other than 0 or -1), so it wont do anything the
|
||||
second time through. Use <see cref="M:BrightIdeasSoftware.ObjectListView.AutoResizeColumns"/> to force all columns
|
||||
to change their size.
|
||||
显然,这只会起作用一次。一旦运行,列宽将更改为其他值(不是0或-1),因此第二次运行时不会执行任何操作。
|
||||
若要强制所有列更改其大小,请使用<see cref="M:BrightIdeasSoftware.ObjectListView.AutoResizeColumns"/> 。
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.BuildGroups">
|
||||
<summary>
|
||||
Organise the view items into groups, based on the last sort column or the first column
|
||||
if there is no last sort column
|
||||
根据最后一个排序列或第一列(如果没有最后一个排序列)将视图项组织到组中
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.BuildGroups(BrightIdeasSoftware.OLVColumn,System.Windows.Forms.SortOrder)">
|
||||
<summary>
|
||||
Organise the view items into groups, based on the given column
|
||||
根据给定列将视图项组织成组
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
If the AlwaysGroupByColumn property is not null,
|
||||
the list view items will be organisd by that column,
|
||||
and the 'column' parameter will be ignored.
|
||||
如果AlwaysGroupByColumn属性不为Null,则列表视图项将按该列组织,并且将忽略‘Column’参数。
|
||||
</para>
|
||||
<para>This method triggers sorting events: BeforeSorting and AfterSorting.</para>
|
||||
<para>此方法触发排序事件:BeforeSorting和AfterSorting。</para>
|
||||
</remarks>
|
||||
<param name="column">The column whose values should be used for sorting.</param>
|
||||
<param name="column">其值应用于排序的列。</param>
|
||||
<param name="order"></param>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.BuildGroups(BrightIdeasSoftware.OLVColumn,System.Windows.Forms.SortOrder,BrightIdeasSoftware.OLVColumn,System.Windows.Forms.SortOrder,BrightIdeasSoftware.OLVColumn,System.Windows.Forms.SortOrder)">
|
||||
<summary>
|
||||
Organise the view items into groups, based on the given columns
|
||||
根据给定列将视图项组织成组
|
||||
</summary>
|
||||
<param name="groupByColumn">What column will be used for grouping</param>
|
||||
<param name="groupByOrder">What ordering will be used for groups</param>
|
||||
<param name="column">The column whose values should be used for sorting. Cannot be null</param>
|
||||
<param name="order">The order in which the values from column will be sorted</param>
|
||||
<param name="secondaryColumn">When the values from 'column' are equal, use the values provided by this column</param>
|
||||
<param name="secondaryOrder">How will the secondary values be sorted</param>
|
||||
<remarks>This method does not trigger sorting events. Use BuildGroups() to do that</remarks>
|
||||
<param name="groupByColumn">将使用哪一列进行分组</param>
|
||||
<param name="groupByOrder">组将使用什么顺序</param>
|
||||
<param name="column">其值应用于排序的列。不能为空</param>
|
||||
<param name="order">列中值的排序顺序</param>
|
||||
<param name="secondaryColumn">当‘column’中的值相等时,请使用此列提供的值</param>
|
||||
<param name="secondaryOrder">次级值将如何排序</param>
|
||||
<remarks>此方法不会触发排序事件。使用BuildGroups()执行此操作</remarks>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.CollectGroupingParameters(BrightIdeasSoftware.OLVColumn,System.Windows.Forms.SortOrder,BrightIdeasSoftware.OLVColumn,System.Windows.Forms.SortOrder,BrightIdeasSoftware.OLVColumn,System.Windows.Forms.SortOrder)">
|
||||
<summary>
|
||||
Collect and return all the variables that influence the creation of groups
|
||||
收集并返回影响组创建的所有变量
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
|
@ -15217,12 +15207,12 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.BuildList">
|
||||
<summary>
|
||||
Build/rebuild all the list view items in the list, preserving as much state as is possible
|
||||
生成/重新生成列表中的所有列表视图项,尽可能多地保留状态
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.BuildList(System.Boolean)">
|
||||
<summary>
|
||||
Build/rebuild all the list view items in the list
|
||||
生成/重新生成列表中的所有列表视图项
|
||||
</summary>
|
||||
<param name="shouldPreserveState">If this is true, the control will try to preserve the selection,
|
||||
focused item, and the scroll position (see Remarks)
|
||||
|
@ -15236,7 +15226,7 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.ClearCachedInfo">
|
||||
<summary>
|
||||
Clear any cached info this list may have been using
|
||||
清除此列表可能一直在使用的所有缓存信息
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.ApplyExtendedStyles">
|
||||
|
@ -15271,18 +15261,18 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.ClearObjects">
|
||||
<summary>
|
||||
Remove all items from this list
|
||||
移除所有对象(线程安全)
|
||||
</summary>
|
||||
<remark>This method can safely be called from background threads.</remark>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.ClearUrlVisited">
|
||||
<summary>
|
||||
Reset the memory of which URLs have been visited
|
||||
重置已访问其URL的内存
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.CopySelectionToClipboard">
|
||||
<summary>
|
||||
Copy a text and html representation of the selected rows onto the clipboard.
|
||||
将选定行的文本和HTML表示复制到剪贴板上。
|
||||
</summary>
|
||||
<remarks>Be careful when using this with virtual lists. If the user has selected
|
||||
10,000,000 rows, this method will faithfully try to copy all of them to the clipboard.
|
||||
|
@ -15290,66 +15280,66 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.CopyObjectsToClipboard(System.Collections.IList)">
|
||||
<summary>
|
||||
Copy a text and html representation of the given objects onto the clipboard.
|
||||
将给定对象的文本和HTML表示复制到剪贴板上。
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.ObjectsToHtml(System.Collections.IList)">
|
||||
<summary>
|
||||
Return a html representation of the given objects
|
||||
返回给定对象的html表示形式
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.DeselectAll">
|
||||
<summary>
|
||||
Deselect all rows in the listview
|
||||
取消选择列表视图中的所有行
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.GetNextItem(BrightIdeasSoftware.OLVListItem)">
|
||||
<summary>
|
||||
Return the ListViewItem that appears immediately after the given item.
|
||||
If the given item is null, the first item in the list will be returned.
|
||||
Return null if the given item is the last item.
|
||||
返回紧跟在给定项后面的ListViewItem。
|
||||
如果给定项为空,则返回列表中的第一个项。
|
||||
如果给定项是最后一项,则返回NULL。
|
||||
</summary>
|
||||
<param name="itemToFind">The item that is before the item that is returned, or null</param>
|
||||
<returns>A ListViewItem</returns>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.GetLastItemInDisplayOrder">
|
||||
<summary>
|
||||
Return the last item in the order they are shown to the user.
|
||||
If the control is not grouped, the display order is the same as the
|
||||
sorted list order. But if the list is grouped, the display order is different.
|
||||
按向用户显示的顺序返回最后一项。
|
||||
如果控件未分组,则显示顺序与排序的列表顺序相同。
|
||||
但如果列表是分组的,则显示顺序不同。
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.GetNthItemInDisplayOrder(System.Int32)">
|
||||
<summary>
|
||||
Return the n'th item (0-based) in the order they are shown to the user.
|
||||
If the control is not grouped, the display order is the same as the
|
||||
sorted list order. But if the list is grouped, the display order is different.
|
||||
按向用户显示的顺序返回第n项(从0开始)。
|
||||
如果控件未分组,则显示顺序与排序的列表顺序相同。
|
||||
但如果列表是分组的,则显示顺序不同。
|
||||
</summary>
|
||||
<param name="n"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.GetDisplayOrderOfItemIndex(System.Int32)">
|
||||
<summary>
|
||||
Return the display index of the given listviewitem index.
|
||||
If the control is not grouped, the display order is the same as the
|
||||
sorted list order. But if the list is grouped, the display order is different.
|
||||
返回给定listviewitem索引的显示索引。
|
||||
如果控件未分组,则显示顺序与排序的列表顺序相同。
|
||||
但如果列表是分组的,则显示顺序不同。
|
||||
</summary>
|
||||
<param name="itemIndex"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.GetPreviousItem(BrightIdeasSoftware.OLVListItem)">
|
||||
<summary>
|
||||
Return the ListViewItem that appears immediately before the given item.
|
||||
If the given item is null, the last item in the list will be returned.
|
||||
Return null if the given item is the first item.
|
||||
返回紧接在给定项之前出现的ListViewItem。
|
||||
如果给定项为空,则返回列表中的最后一项。
|
||||
如果给定项是第一项,则返回NULL。
|
||||
</summary>
|
||||
<param name="itemToFind">The item that is before the item that is returned</param>
|
||||
<returns>A ListViewItem</returns>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.InsertObjects(System.Int32,System.Collections.ICollection)">
|
||||
<summary>
|
||||
Insert the given collection of objects before the given position
|
||||
在给定位置之前插入给定的对象集合
|
||||
</summary>
|
||||
<param name="index">Where to insert the objects</param>
|
||||
<param name="modelObjects">The objects to be inserted</param>
|
||||
|
@ -15364,21 +15354,21 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.IsSelected(System.Object)">
|
||||
<summary>
|
||||
Return true if the row representing the given model is selected
|
||||
如果选择了表示给定模型的行,则返回TRUE
|
||||
</summary>
|
||||
<param name="model">The model object to look for</param>
|
||||
<returns>Is the row selected</returns>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.IsUrlVisited(System.String)">
|
||||
<summary>
|
||||
Has the given URL been visited?
|
||||
给定的URL是否已被访问
|
||||
</summary>
|
||||
<param name="url">The string to be consider</param>
|
||||
<returns>Has it been visited</returns>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.LowLevelScroll(System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Scroll the ListView by the given deltas.
|
||||
按给定的值增量滚动ListView。
|
||||
</summary>
|
||||
<param name="dx">Horizontal delta</param>
|
||||
<param name="dy">Vertical delta</param>
|
||||
|
@ -15390,22 +15380,22 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.MarkUrlVisited(System.String)">
|
||||
<summary>
|
||||
Remember that the given URL has been visited
|
||||
记住给定的URL已被访问
|
||||
</summary>
|
||||
<param name="url">The url to be remembered</param>
|
||||
<remarks>This does not cause the control be redrawn</remarks>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.MoveObjects(System.Int32,System.Collections.ICollection)">
|
||||
<summary>
|
||||
Move the given collection of objects to the given index.
|
||||
将给定的对象集合移动到给定的索引。
|
||||
</summary>
|
||||
<remarks>This operation only makes sense on non-grouped ObjectListViews.</remarks>
|
||||
<remarks>此操作仅对未分组的ObjectListViews有意义。</remarks>
|
||||
<param name="index"></param>
|
||||
<param name="modelObjects"></param>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.HitTest(System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Calculate what item is under the given point?
|
||||
计算在给定点下的项目是什么?
|
||||
</summary>
|
||||
<param name="x"></param>
|
||||
<param name="y"></param>
|
||||
|
@ -15413,8 +15403,8 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.LowLevelHitTest(System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Perform a hit test using the Windows control's SUBITEMHITTEST message.
|
||||
This provides information about group hits that the standard ListView.HitTest() does not.
|
||||
使用Windows控件的SUBITEMHITTEST消息执行点击测试。
|
||||
这提供了标准ListView.HitTest()不提供的有关组点击的信息。
|
||||
</summary>
|
||||
<param name="x"></param>
|
||||
<param name="y"></param>
|
||||
|
@ -15459,7 +15449,7 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.RemoveObject(System.Object)">
|
||||
<summary>
|
||||
Remove the given model object from the ListView
|
||||
从ListView中删除给定的模型对象
|
||||
</summary>
|
||||
<param name="modelObject">The model to be removed</param>
|
||||
<remarks>See RemoveObjects() for more details
|
||||
|
@ -15468,7 +15458,7 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.RemoveObjects(System.Collections.ICollection)">
|
||||
<summary>
|
||||
Remove all of the given objects from the control.
|
||||
从控件中移除所有给定对象。
|
||||
</summary>
|
||||
<param name="modelObjects">Collection of objects to be removed</param>
|
||||
<remarks>
|
||||
|
@ -15478,47 +15468,45 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.SelectAll">
|
||||
<summary>
|
||||
Select all rows in the listview
|
||||
选择列表视图中的所有行
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.SetNativeBackgroundWatermark(System.Drawing.Image)">
|
||||
<summary>
|
||||
Set the given image to be fixed in the bottom right of the list view.
|
||||
This image will not scroll when the list view scrolls.
|
||||
在列表视图的右下角设置要固定的给定图像。
|
||||
当列表视图滚动时,此图像不会滚动。
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
This method uses ListView's native ability to display a background image.
|
||||
It has a few limitations:
|
||||
此方法使用ListView的原生功能显示背景图像。
|
||||
它有几个限制:
|
||||
</para>
|
||||
<list type="bullet">
|
||||
<item><description>It doesn't work well with owner drawn mode. In owner drawn mode, each cell draws itself,
|
||||
including its background, which covers the background image.</description></item>
|
||||
<item><description>It doesn't look very good when grid lines are enabled, since the grid lines are drawn over the image.</description></item>
|
||||
<item><description>It does not work at all on XP.</description></item>
|
||||
<item><description>Obviously, it doesn't look good when alternate row background colors are enabled.</description></item>
|
||||
<item><description>它在owner drawn模式下不能很好地工作。在owner drawn绘制模式下,
|
||||
每个单元格都会绘制自身,包括覆盖背景图像的背景。</description></item>
|
||||
<item><description>启用网格线时看起来不是很好,因为网格线是在图像上绘制的。</description></item>
|
||||
<item><description>它在XP上完全不起作用。</description></item>
|
||||
<item><description>显然,当启用交替行背景色时,效果不佳。</description></item>
|
||||
</list>
|
||||
<para>
|
||||
If you can live with these limitations, native watermarks are quite neat. They are true backgrounds, not
|
||||
translucent overlays like the OverlayImage uses. They also have the decided advantage over overlays in that
|
||||
they work correctly even in MDI applications.
|
||||
如果你能忍受这些限制,原生水印就相当不错了。
|
||||
它们是真实的背景,而不是像OverlayImage使用的半透明覆盖。
|
||||
与覆盖相比,它们也有明显的优势,因为即使在MDI应用程序中,它们也可以正常工作。
|
||||
</para>
|
||||
<para>Setting this clears any background image.</para>
|
||||
<para>设置此选项将清除所有背景图像。</para>
|
||||
</remarks>
|
||||
<param name="image">The image to be drawn. If null, any existing image will be removed.</param>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.SetNativeBackgroundImage(System.Drawing.Image,System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Set the given image to be background of the ListView so that it appears at the given
|
||||
percentage offsets within the list.
|
||||
将给定的图像设置为ListView的背景,以便它在列表中以给定的百分比偏移量显示。
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>This has the same limitations as described in <see cref="M:BrightIdeasSoftware.ObjectListView.SetNativeBackgroundWatermark(System.Drawing.Image)"/>. Make sure those limitations
|
||||
are understood before using the method.</para>
|
||||
<para>This is very similar to setting the <see cref="P:System.Windows.Forms.Control.BackgroundImage"/> property of the standard .NET ListView, except that the standard
|
||||
BackgroundImage does not handle images with transparent areas properly -- it renders transparent areas as black. This
|
||||
method does not have that problem.</para>
|
||||
<para>Setting this clears any background watermark.</para>
|
||||
<para>这具有与 <see cref="M:BrightIdeasSoftware.ObjectListView.SetNativeBackgroundWatermark(System.Drawing.Image)"/>中所述的相同限制.
|
||||
在使用该方法之前,请确保了解这些限制。</para>
|
||||
<para>这非常类似于 <see cref="P:System.Windows.Forms.Control.BackgroundImage"/> 属性,
|
||||
但标准Backround Image不能正确处理具有透明区域的图像--它将透明区域呈现为黑色。这种方法没有这个问题。</para>
|
||||
<para>设置此选项将清除所有背景水印。</para>
|
||||
</remarks>
|
||||
<param name="image">The image to be drawn. If null, any existing image will be removed.</param>
|
||||
<param name="xOffset">The horizontal percentage where the image will be placed. 0 is absolute left, 100 is absolute right.</param>
|
||||
|
@ -15526,64 +15514,63 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.SetNativeBackgroundTiledImage(System.Drawing.Image)">
|
||||
<summary>
|
||||
Set the given image to be the tiled background of the ListView.
|
||||
将给定图像设置为ListView的平铺背景。
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>This has the same limitations as described in <see cref="M:BrightIdeasSoftware.ObjectListView.SetNativeBackgroundWatermark(System.Drawing.Image)"/> and <see cref="M:BrightIdeasSoftware.ObjectListView.SetNativeBackgroundImage(System.Drawing.Image,System.Int32,System.Int32)"/>.
|
||||
Make sure those limitations
|
||||
are understood before using the method.</para>
|
||||
<para>这具有与 <see cref="M:BrightIdeasSoftware.ObjectListView.SetNativeBackgroundWatermark(System.Drawing.Image)"/> 和 <see cref="M:BrightIdeasSoftware.ObjectListView.SetNativeBackgroundImage(System.Drawing.Image,System.Int32,System.Int32)"/> 相同的限制.
|
||||
在使用该方法之前,请确保了解这些限制。</para>
|
||||
</remarks>
|
||||
<param name="image">The image to be drawn. If null, any existing image will be removed.</param>
|
||||
<param name="image">要绘制的图像。如果为null,则将删除所有现有图像。</param>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.SetObjects(System.Collections.IEnumerable)">
|
||||
<summary>
|
||||
Set the collection of objects that will be shown in this list view.
|
||||
设置将在此列表视图中显示的对象集合。
|
||||
</summary>
|
||||
<remark>This method can safely be called from background threads.</remark>
|
||||
<remarks>The list is updated immediately</remarks>
|
||||
<remark>可以从后台线程安全地调用此方法。</remark>
|
||||
<remarks>该列表将立即更新</remarks>
|
||||
<param name="collection">The objects to be displayed</param>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.SetObjects(System.Collections.IEnumerable,System.Boolean)">
|
||||
<summary>
|
||||
Set the collection of objects that will be shown in this list view.
|
||||
设置将在此列表视图中显示的对象集合。
|
||||
</summary>
|
||||
<remark>This method can safely be called from background threads.</remark>
|
||||
<remarks>The list is updated immediately</remarks>
|
||||
<remark>可以从后台线程安全地调用此方法.</remark>
|
||||
<remarks>该列表将立即更新</remarks>
|
||||
<param name="collection">The objects to be displayed</param>
|
||||
<param name="preserveState">Should the state of the list be preserved as far as is possible.</param>
|
||||
<param name="preserveState">是否应尽可能保留列表的状态。</param>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.UpdateObject(System.Object)">
|
||||
<summary>
|
||||
Update the given model object into the ListView. The model will be added if it doesn't already exist.
|
||||
将给定的模型对象更新到ListView中。
|
||||
如果该模型尚不存在,则会添加该模型。
|
||||
</summary>
|
||||
<param name="modelObject">The model to be updated</param>
|
||||
<remarks>
|
||||
<para>
|
||||
See <see cref="M:BrightIdeasSoftware.ObjectListView.RemoveObjects(System.Collections.ICollection)"/> for more details
|
||||
</para>
|
||||
<para>This method is thread-safe.</para>
|
||||
<para>This method will cause the list to be resorted.</para>
|
||||
<para>This method only works on ObjectListViews and FastObjectListViews.</para>
|
||||
<para>此方法是线程安全的。</para>
|
||||
<para>此方法将导致重新排序列表。</para>
|
||||
<para>此方法仅适用于ObjectListViews和FastObjectListViews。</para>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.UpdateObjects(System.Collections.ICollection)">
|
||||
<summary>
|
||||
Update the pre-existing models that are equal to the given objects. If any of the model doesn't
|
||||
already exist in the control, they will be added.
|
||||
更新与给定对象相等的预先存在的模型。
|
||||
如果控件中不存在任何模型,则会添加它们。
|
||||
</summary>
|
||||
<param name="modelObjects">Collection of objects to be updated/added</param>
|
||||
<remarks>
|
||||
<para>This method will cause the list to be resorted.</para>
|
||||
<para>Nulls are silently ignored.</para>
|
||||
<para>This method is thread-safe.</para>
|
||||
<para>This method only works on ObjectListViews and FastObjectListViews.</para>
|
||||
<para>此方法将导致重新排序列表。</para>
|
||||
<para>null值将被静默忽略。</para>
|
||||
<para>此方法是线程安全的。</para>
|
||||
<para>此方法仅适用于ObjectListViews和FastObjectListViews。</para>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.UpdateNotificationSubscriptions(System.Collections.IEnumerable)">
|
||||
<summary>
|
||||
Change any subscriptions to INotifyPropertyChanged events on our current
|
||||
model objects so that we no longer listen for events on the old models
|
||||
and do listen for events on the given collection.
|
||||
更改当前模型对象上对INotifyPropertyChanged事件的任何订阅,
|
||||
以便我们不再侦听旧模型上的事件,而侦听给定集合上的事件。
|
||||
</summary>
|
||||
<remarks>This does nothing if UseNotifyPropertyChanged is false.</remarks>
|
||||
<param name="collection"></param>
|
||||
|
@ -16607,7 +16594,7 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.GetCellToolTip(System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Return the tooltip that should be shown when the mouse is hovered over the given cell
|
||||
返回当鼠标悬停在给定单元格上时应显示的工具提示
|
||||
</summary>
|
||||
<param name="columnIndex">The column index whose tool tip is to be fetched</param>
|
||||
<param name="rowIndex">The row index whose tool tip is to be fetched</param>
|
||||
|
@ -16615,7 +16602,7 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.ModelToItem(System.Object)">
|
||||
<summary>
|
||||
Return the OLVListItem that displays the given model object
|
||||
返回显示给定模型对象的OLVListItem
|
||||
</summary>
|
||||
<param name="modelObject">The modelObject whose item is to be found</param>
|
||||
<returns>The OLVListItem that displays the model, or null</returns>
|
||||
|
@ -16633,7 +16620,7 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.PrepareAlternateBackColors">
|
||||
<summary>
|
||||
Prepare the listview to show alternate row backcolors
|
||||
准备列表视图以显示交替的行背景色
|
||||
</summary>
|
||||
<remarks>We cannot rely on lvi.Index in this method.
|
||||
In a straight list, lvi.Index is the display index, and can be used to determine
|
||||
|
@ -16648,7 +16635,7 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.SetSubItemImages(System.Int32,BrightIdeasSoftware.OLVListItem)">
|
||||
<summary>
|
||||
Tell the underlying list control which images to show against the subitems
|
||||
告诉基础列表控件针对子项显示哪些图像
|
||||
</summary>
|
||||
<param name="rowIndex">the index at which the item occurs</param>
|
||||
<param name="item">the item whose subitems are to be set</param>
|
||||
|
@ -16687,7 +16674,7 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.TriggerFormatRowEvent(System.Int32,System.Int32,BrightIdeasSoftware.OLVListItem)">
|
||||
<summary>
|
||||
Trigger FormatRow and possibly FormatCell events for the given item
|
||||
触发给定项目的FormatRow和可能的FormatCell事件
|
||||
</summary>
|
||||
<param name="rowIndex"></param>
|
||||
<param name="displayIndex"></param>
|
||||
|
@ -16695,7 +16682,7 @@
|
|||
</member>
|
||||
<member name="M:BrightIdeasSoftware.ObjectListView.TriggerFormatCellEvents(System.Int32,System.Int32,BrightIdeasSoftware.OLVListItem)">
|
||||
<summary>
|
||||
Trigger FormatCell events for the given item
|
||||
触发给定项目的FormatCell事件
|
||||
</summary>
|
||||
<param name="rowIndex"></param>
|
||||
<param name="displayIndex"></param>
|
||||
|
@ -22335,6 +22322,20 @@
|
|||
<param name="value">The value of the aspect that should be displayed</param>
|
||||
<returns>A string representation of the aspect</returns>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.OLVColumn.ValueToString(System.Object,System.Object)">
|
||||
<summary>
|
||||
Convert the aspect object to its string representation.
|
||||
</summary>
|
||||
<remarks>
|
||||
If the column has been given a AspectToStringConverter, that will be used to do
|
||||
the conversion, otherwise just use ToString().
|
||||
The returned value will not be null. Nulls are always converted
|
||||
to empty strings.
|
||||
</remarks>
|
||||
<param name = "rowobject" ></param>
|
||||
<param name="value">The value of the aspect that should be displayed</param>
|
||||
<returns>A string representation of the aspect</returns>
|
||||
</member>
|
||||
<member name="M:BrightIdeasSoftware.OLVColumn.DecideDefaultClusteringStrategy">
|
||||
<summary>
|
||||
Decide the clustering strategy that will be used for this column
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,10 @@
|
|||
### 2021-09-07更新
|
||||
### 2021-10-08更新
|
||||
------
|
||||
#### VSoft V1.0.2110.0801
|
||||
- *.[新增]新增支持将分类绑定快捷键。
|
||||
- *.[修复]修复新增软件后,热键可能设置不正确的BUG
|
||||
|
||||
### 2021-09-07更新
|
||||
------
|
||||
#### VSoft V1.0.2109.0701
|
||||
- *.[新增]新增支持设置软件全局快捷键。
|
||||
|
|
Binary file not shown.
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.2109.0701")]
|
||||
[assembly: AssemblyFileVersion("1.0.2109.0701")]
|
||||
[assembly: AssemblyVersion("1.0.2110.0801")]
|
||||
[assembly: AssemblyFileVersion("1.0.2110.0801")]
|
5
Source/VSoft_Dll/FrmAddSoft.Designer.cs
generated
5
Source/VSoft_Dll/FrmAddSoft.Designer.cs
generated
|
@ -117,7 +117,7 @@
|
|||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(239, 39);
|
||||
this.label6.Location = new System.Drawing.Point(239, 38);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(65, 12);
|
||||
this.label6.TabIndex = 13;
|
||||
|
@ -382,7 +382,7 @@
|
|||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(10, 39);
|
||||
this.label1.Location = new System.Drawing.Point(10, 38);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 1;
|
||||
|
@ -424,7 +424,6 @@
|
|||
this.Controls.Add(this.PicImg);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.TxtName);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "FrmAddSoft";
|
||||
this.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
|
|
43
Source/VSoft_Dll/FrmAddType.Designer.cs
generated
43
Source/VSoft_Dll/FrmAddType.Designer.cs
generated
|
@ -35,12 +35,14 @@
|
|||
this.TxtName = new ryControls.TextBoxEx2();
|
||||
this.BtnCancel = new ryControls.ButtonEx();
|
||||
this.BtnOK = new ryControls.ButtonEx();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.hotkeyTextBox1 = new ryControls.HotkeyTextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 81);
|
||||
this.label2.Location = new System.Drawing.Point(12, 77);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(29, 12);
|
||||
this.label2.TabIndex = 16;
|
||||
|
@ -50,7 +52,7 @@
|
|||
//
|
||||
this.TxtDes.BackColor = System.Drawing.Color.White;
|
||||
this.TxtDes.EmptyText = "";
|
||||
this.TxtDes.Location = new System.Drawing.Point(12, 101);
|
||||
this.TxtDes.Location = new System.Drawing.Point(12, 95);
|
||||
this.TxtDes.MaxLength = 999999999;
|
||||
this.TxtDes.Multiline = false;
|
||||
this.TxtDes.Name = "TxtDes";
|
||||
|
@ -79,7 +81,7 @@
|
|||
//
|
||||
this.TxtName.BackColor = System.Drawing.Color.White;
|
||||
this.TxtName.EmptyText = "";
|
||||
this.TxtName.Location = new System.Drawing.Point(12, 54);
|
||||
this.TxtName.Location = new System.Drawing.Point(12, 50);
|
||||
this.TxtName.MaxLength = 999999999;
|
||||
this.TxtName.Multiline = false;
|
||||
this.TxtName.Name = "TxtName";
|
||||
|
@ -98,9 +100,9 @@
|
|||
// BtnCancel
|
||||
//
|
||||
this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnCancel.BaseColor = System.Drawing.Color.Teal;
|
||||
this.BtnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(20)))));
|
||||
this.BtnCancel.ColorGradient = true;
|
||||
this.BtnCancel.Location = new System.Drawing.Point(263, 133);
|
||||
this.BtnCancel.Location = new System.Drawing.Point(263, 180);
|
||||
this.BtnCancel.Name = "BtnCancel";
|
||||
this.BtnCancel.Size = new System.Drawing.Size(75, 27);
|
||||
this.BtnCancel.TabIndex = 10;
|
||||
|
@ -111,9 +113,9 @@
|
|||
// BtnOK
|
||||
//
|
||||
this.BtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnOK.BaseColor = System.Drawing.Color.Teal;
|
||||
this.BtnOK.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(20)))));
|
||||
this.BtnOK.ColorGradient = true;
|
||||
this.BtnOK.Location = new System.Drawing.Point(182, 133);
|
||||
this.BtnOK.Location = new System.Drawing.Point(182, 180);
|
||||
this.BtnOK.Name = "BtnOK";
|
||||
this.BtnOK.Size = new System.Drawing.Size(75, 27);
|
||||
this.BtnOK.TabIndex = 9;
|
||||
|
@ -121,18 +123,39 @@
|
|||
this.BtnOK.UseVisualStyleBackColor = true;
|
||||
this.BtnOK.Click += new System.EventHandler(this.BtnOK_Click);
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(12, 121);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(53, 12);
|
||||
this.label7.TabIndex = 18;
|
||||
this.label7.Text = "运行热键";
|
||||
//
|
||||
// hotkeyTextBox1
|
||||
//
|
||||
this.hotkeyTextBox1.BackColor = System.Drawing.Color.White;
|
||||
this.hotkeyTextBox1.HotKey = "0+0";
|
||||
this.hotkeyTextBox1.Location = new System.Drawing.Point(12, 140);
|
||||
this.hotkeyTextBox1.Name = "hotkeyTextBox1";
|
||||
this.hotkeyTextBox1.Size = new System.Drawing.Size(244, 26);
|
||||
this.hotkeyTextBox1.T_Key = System.Windows.Forms.Keys.None;
|
||||
this.hotkeyTextBox1.T_Modifiers = 0;
|
||||
this.hotkeyTextBox1.TabIndex = 17;
|
||||
//
|
||||
// FrmAddType
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(349, 167);
|
||||
this.ClientSize = new System.Drawing.Size(349, 214);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.hotkeyTextBox1);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.TxtDes);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.TxtName);
|
||||
this.Controls.Add(this.BtnCancel);
|
||||
this.Controls.Add(this.BtnOK);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "FrmAddType";
|
||||
|
@ -151,5 +174,7 @@
|
|||
public ryControls.TextBoxEx2 TxtName;
|
||||
private System.Windows.Forms.Label label2;
|
||||
public ryControls.TextBoxEx2 TxtDes;
|
||||
private System.Windows.Forms.Label label7;
|
||||
public ryControls.HotkeyTextBox hotkeyTextBox1;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
using ryCommonDb;
|
||||
using ryCommon;
|
||||
using ryCommonDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
|
@ -22,6 +23,10 @@ namespace VSoft
|
|||
public int IsAdd { get; set; } = 1;
|
||||
public int SelectId { get; set; } = -1;
|
||||
public int ParentId { get; set; } = -1;
|
||||
/// <summary>
|
||||
/// 当前操作的id
|
||||
/// </summary>
|
||||
public int Op_Id { get; set; } = -1;
|
||||
public void GetInfo(int id)
|
||||
{
|
||||
SelectId = id;
|
||||
|
@ -37,6 +42,7 @@ namespace VSoft
|
|||
#region 读取信息
|
||||
TxtName.Text = reader["Name"].ToString();
|
||||
TxtDes.Text = reader["Des"].ToString();
|
||||
hotkeyTextBox1.HotKey = reader["Hotkey"].ToString();
|
||||
#endregion
|
||||
}
|
||||
ds.Dispose();
|
||||
|
@ -58,6 +64,7 @@ namespace VSoft
|
|||
RyQuickSQL mySQL = new RyQuickSQL(tableName);
|
||||
mySQL.AddField("Name", TxtName.Text);
|
||||
mySQL.AddField("Des", TxtDes.Text);
|
||||
mySQL.AddField("Hotkey", hotkeyTextBox1.HaveHotKey ? hotkeyTextBox1.HotKey : "");//快捷键
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(SQLConnStr) == 1)
|
||||
|
@ -67,11 +74,17 @@ namespace VSoft
|
|||
mySQL.AddField("sortindex", Itrycn_Db.GetColumnCount(db, ParentId) + 1);
|
||||
mySQL.AddField("parentId", ParentId);
|
||||
mySQL.AddField("addTime", DateTime.Now);
|
||||
db.ExecuteNonQuery(mySQL.GetInsertSQL(), mySQL);
|
||||
var ds = db.ReadData(mySQL.GetInsertSQL() + ";select last_insert_rowid();", mySQL);
|
||||
if (ds.HaveData())
|
||||
{
|
||||
Op_Id = ds.GetFirstRowCellValue();
|
||||
}
|
||||
ds.Dispose();
|
||||
}
|
||||
else
|
||||
{
|
||||
db.ExecuteNonQuery(mySQL.GetUpdateSQL() + " where id=" + SelectId, mySQL);
|
||||
Op_Id = SelectId;
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
|
|
4
Source/VSoft_Dll/FrmVSoft.Designer.cs
generated
4
Source/VSoft_Dll/FrmVSoft.Designer.cs
generated
|
@ -426,6 +426,8 @@
|
|||
this.IconViewEx1.SelectedEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(236)))), ((int)(((byte)(181)))));
|
||||
this.IconViewEx1.SelectedForeColor = System.Drawing.Color.Black;
|
||||
this.IconViewEx1.SelectedStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(251)))), ((int)(((byte)(237)))));
|
||||
this.IconViewEx1.ShowGroups = false;
|
||||
this.IconViewEx1.ShowItemToolTips = true;
|
||||
this.IconViewEx1.Size = new System.Drawing.Size(650, 467);
|
||||
this.IconViewEx1.TabIndex = 0;
|
||||
this.IconViewEx1.TextHeight = 20;
|
||||
|
@ -439,6 +441,7 @@
|
|||
this.IconViewEx1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.IconViewEx1_KeyDown);
|
||||
this.IconViewEx1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.IconViewEx1_MouseClick);
|
||||
this.IconViewEx1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.IconViewEx1_MouseDoubleClick);
|
||||
this.IconViewEx1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.IconViewEx1_MouseMove);
|
||||
this.IconViewEx1.Resize += new System.EventHandler(this.IconViewEx1_Resize);
|
||||
//
|
||||
// TabList_Column
|
||||
|
@ -491,7 +494,6 @@
|
|||
this.Controls.Add(this.BtnAddColumn);
|
||||
this.Controls.Add(this.TabList_Column);
|
||||
this.Controls.Add(this.panelEx1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MinimumSize = new System.Drawing.Size(160, 60);
|
||||
this.Name = "FrmVSoft";
|
||||
|
|
|
@ -48,6 +48,7 @@ namespace VSoft
|
|||
PnlLeft.BackColor = backcolor;
|
||||
|
||||
}
|
||||
private ToolTip lvTp = new ToolTip();
|
||||
private void FrmVSoft_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
mouse.Stop();
|
||||
|
@ -243,6 +244,7 @@ namespace VSoft
|
|||
TabList_Type.Items[0].Selected = true;
|
||||
}
|
||||
}
|
||||
int hot_index = 0;
|
||||
/// <summary>
|
||||
/// 注册热键
|
||||
/// </summary>
|
||||
|
@ -252,19 +254,34 @@ namespace VSoft
|
|||
IDbInterface db2 = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db2.ConnDb(SQLConnStr) == 1)
|
||||
{
|
||||
var index = 100;
|
||||
HotkeyValue hot = new HotkeyValue(Soft_Config.ShowMainHotKey);
|
||||
hotkey.RegHotKey(100, hot.Modifiers_Int, hot.KeyCode);
|
||||
var ds_type = db2.ReadData("select * from Columns where Hotkey<>''");
|
||||
if (ds_type.HaveData())
|
||||
{
|
||||
for (int i = 0; i < ds_type.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
index++;
|
||||
var item = ds_type.GetRow(i);
|
||||
hot.LoadHotKeyStr(item["HotKey"].ToString());
|
||||
hotkey.RegHotKey(index, "type_" + item["id"].ToInt(), hot.Modifiers_Int, hot.KeyCode);
|
||||
}
|
||||
}
|
||||
ds_type.Dispose();
|
||||
var ds = db2.ReadData("select * from Softs where Hotkey<>''");
|
||||
if (ds.HaveData())
|
||||
{
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
index++;
|
||||
var item = ds.GetRow(i);
|
||||
hot.LoadHotKeyStr(item["HotKey"].ToString());
|
||||
hotkey.RegHotKey(100 + item["id"].ToInt(), hot.Modifiers_Int, hot.KeyCode);
|
||||
hotkey.RegHotKey(index, "soft_" + item["id"].ToInt(), hot.Modifiers_Int, hot.KeyCode);
|
||||
}
|
||||
}
|
||||
ds.Dispose();
|
||||
hot_index = index;
|
||||
}
|
||||
db2.Free();
|
||||
}
|
||||
|
@ -359,11 +376,54 @@ namespace VSoft
|
|||
ShowOrHideUI();
|
||||
break;
|
||||
default:
|
||||
var id = HotKeyID - 100;
|
||||
var ids=hotkey.GetTag(HotKeyID);
|
||||
if(ids.IndexOfEx("type_")==0)
|
||||
{
|
||||
#region 软件热键
|
||||
var id = ids.Substring(5).ToInt();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(SQLConnStr) == 1)
|
||||
{
|
||||
var sql = "select * from Softs where id="+id;
|
||||
//var sql = "select * from Columns where id=" + id;
|
||||
DataSet ds = db.ReadData("select * from Columns where id=" + id);
|
||||
if (ds.HaveData())
|
||||
{
|
||||
DataRow row = ds.GetFirstRowData();
|
||||
var parentId=row["parentId"].ToInt();
|
||||
if(parentId>0)
|
||||
{
|
||||
for (int i = 0; i < TabList_Column.Items.Count; i++)
|
||||
{
|
||||
if (TabList_Column.Items[i].Tag.ToInt()==parentId)
|
||||
{
|
||||
TabList_Column.Items[i].Selected = true;
|
||||
for (int m = 0; m < TabList_Type.Items.Count; m++)
|
||||
{
|
||||
if (TabList_Type.Items[m].Tag.ToInt() == row["id"].ToInt())
|
||||
{
|
||||
TabList_Type.Items[m].Selected = true;
|
||||
ShowOrHideUI(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
db.Free();
|
||||
}
|
||||
db.Free();
|
||||
#endregion
|
||||
}
|
||||
else if (ids.IndexOfEx("soft_") == 0)
|
||||
{
|
||||
#region 软件热键
|
||||
var id = ids.Substring(5).ToInt();
|
||||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(SQLConnStr) == 1)
|
||||
{
|
||||
//var sql = "select * from Softs where id=" + id;
|
||||
DataSet ds = db.ReadData("select * from Softs where id=" + id);
|
||||
if (ds.HaveData())
|
||||
{
|
||||
|
@ -383,6 +443,8 @@ namespace VSoft
|
|||
db.Free();
|
||||
}
|
||||
db.Free();
|
||||
#endregion
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -391,9 +453,9 @@ namespace VSoft
|
|||
/// <summary>
|
||||
/// 显示或隐藏UI
|
||||
/// </summary>
|
||||
private void ShowOrHideUI()
|
||||
private void ShowOrHideUI(bool ForceShow=false)
|
||||
{
|
||||
if (this.Visible && RyForm.GetActiveWindow() == Handle)
|
||||
if (this.Visible && RyForm.GetActiveWindow() == Handle && !ForceShow)
|
||||
{
|
||||
this.Hide();
|
||||
}
|
||||
|
@ -619,6 +681,9 @@ namespace VSoft
|
|||
IDbInterface db = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
|
||||
if (db.ConnDb(SQLConnStr) == 1)
|
||||
{
|
||||
hot_index++;
|
||||
HotkeyValue hot = new HotkeyValue(frm.hotkeyTextBox1.HotKey);
|
||||
hotkey.RegHotKey(hot_index,"type_"+frm.Op_Id, hot.Modifiers_Int, hot.KeyCode);
|
||||
DataSet ds = db.ReadData("select * from Columns where parentId=" + id + " order by sortindex desc limit 1");
|
||||
TabList_Type.BeginUpdate();
|
||||
if(ds.Tables[0].Rows.Count>0)
|
||||
|
@ -626,6 +691,7 @@ namespace VSoft
|
|||
DataRow row = ds.Tables[0].Rows[0];
|
||||
TabList_Type.Items.Add(row["Name"].ToString()).Tag = row["id"].ToInt();
|
||||
}
|
||||
ds.Dispose();
|
||||
TabList_Type.EndUpdate();
|
||||
db.Free();
|
||||
}
|
||||
|
@ -658,6 +724,24 @@ namespace VSoft
|
|||
if (frm.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
SetTypeRow(id, TabList_Type.SelectedItems[0].Index);
|
||||
HotkeyValue hot = new HotkeyValue(frm.hotkeyTextBox1.HotKey);
|
||||
var index = hotkey.GetHotId("type_" + frm.Op_Id);
|
||||
if (index >= 0)
|
||||
{
|
||||
hotkey.UnHotKey(index);
|
||||
if (frm.hotkeyTextBox1.HaveHotKey)
|
||||
{
|
||||
hotkey.RegHotKey(index, "type_" + frm.Op_Id, hot.Modifiers_Int, hot.KeyCode);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (frm.hotkeyTextBox1.HaveHotKey)
|
||||
{
|
||||
hot_index++;
|
||||
hotkey.RegHotKey(hot_index, "type_" + frm.Op_Id, hot.Modifiers_Int, hot.KeyCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
frm.Dispose();
|
||||
}
|
||||
|
@ -691,10 +775,15 @@ namespace VSoft
|
|||
}
|
||||
}
|
||||
ds.Dispose();
|
||||
var index = hotkey.GetHotId("type_" + column_id);
|
||||
if (index >= 0)
|
||||
{
|
||||
hotkey.UnHotKey(index);
|
||||
}
|
||||
db.DelById("Columns", column_id.ToString());
|
||||
TabList_Type.SelectedItems[0].Remove();
|
||||
db.BeginTransaction();
|
||||
for (int i = 1; i < TabList_Type.Items.Count; i++)
|
||||
for (int i = 0; i < TabList_Type.Items.Count; i++)
|
||||
{
|
||||
var id = TabList_Type.Items[i].Tag.ToInt();
|
||||
RyQuickSQL mySQL = new RyQuickSQL("Columns");
|
||||
|
@ -776,12 +865,9 @@ namespace VSoft
|
|||
frm.ShowInCenter(this);
|
||||
if (frm.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if(frm.hotkeyTextBox1.HaveHotKey)
|
||||
{
|
||||
hotkey.UnHotKey(frm.Op_Id+00);
|
||||
hot_index++;
|
||||
HotkeyValue hot = new HotkeyValue(frm.hotkeyTextBox1.HotKey);
|
||||
hotkey.RegHotKey(frm.Op_Id+100, hot.Modifiers_Int, hot.KeyCode);
|
||||
}
|
||||
hotkey.RegHotKey(hot_index, "soft_" + frm.Op_Id, hot.Modifiers_Int, hot.KeyCode);
|
||||
LoadDb();
|
||||
}
|
||||
frm.Dispose();
|
||||
|
@ -798,15 +884,23 @@ namespace VSoft
|
|||
frm.ShowInCenter(this);
|
||||
if (frm.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
HotkeyValue hot = new HotkeyValue(frm.hotkeyTextBox1.HotKey);
|
||||
var index = hotkey.GetHotId("soft_" + frm.Op_Id);
|
||||
if (index >= 0)
|
||||
{
|
||||
hotkey.UnHotKey(index);
|
||||
if (frm.hotkeyTextBox1.HaveHotKey)
|
||||
{
|
||||
hotkey.UnHotKey(frm.Op_Id + 100);
|
||||
HotkeyValue hot = new HotkeyValue(frm.hotkeyTextBox1.HotKey);
|
||||
hotkey.RegHotKey(frm.Op_Id +100, hot.Modifiers_Int, hot.KeyCode);
|
||||
hotkey.RegHotKey(index, "soft_" + frm.Op_Id, hot.Modifiers_Int, hot.KeyCode);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
hotkey.UnHotKey(frm.Op_Id +100);
|
||||
if (frm.hotkeyTextBox1.HaveHotKey)
|
||||
{
|
||||
hot_index++;
|
||||
hotkey.RegHotKey(hot_index, "soft_" + frm.Op_Id, hot.Modifiers_Int, hot.KeyCode);
|
||||
}
|
||||
}
|
||||
SetSoftRow(info.Id, IconViewEx1.SelectedItems[0].Index);
|
||||
}
|
||||
|
@ -829,7 +923,11 @@ namespace VSoft
|
|||
{
|
||||
RyFiles.DeleteFile(RyFiles.GetRealPath(info.IconPath));
|
||||
}
|
||||
hotkey.UnHotKey(info.Id+100);
|
||||
var index = hotkey.GetHotId("soft_" + info.Id);
|
||||
if (index >= 0)
|
||||
{
|
||||
hotkey.UnHotKey(index);
|
||||
}
|
||||
db.DelById("Softs", info.Id.ToString());
|
||||
IconViewEx1.SelectedItems[i].Remove();
|
||||
if (IconViewEx1.Items.Count == 0)
|
||||
|
@ -1620,5 +1718,20 @@ namespace VSoft
|
|||
this.Hide();
|
||||
}
|
||||
}
|
||||
private ListViewItem currentItem = new ListViewItem();
|
||||
private void IconViewEx1_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
ListViewItem lvi = IconViewEx1.GetItemAt(e.X, e.Y);
|
||||
if (lvi != null && lvi != currentItem)
|
||||
{
|
||||
currentItem = lvi;
|
||||
lvTp.Show(lvi.Text, IconViewEx1, e.Location);
|
||||
}
|
||||
else if (lvi == null)
|
||||
{
|
||||
lvTp.Hide(IconViewEx1);
|
||||
}
|
||||
currentItem = lvi;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
<data name="以管理员方式启动ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
xAAADsQBlSsOGwAAAYRJREFUOE+NkztPwlAUx8/gakIYWFwYHB1w8FUQCEpI1KiTYpSHQVQisviYjZsJ
|
||||
wgAADsIBFShKgAAAAYRJREFUOE+NkztPwlAUx8/gakIYWFwYHB1w8FUQCEpI1KiTYpSHQVQisviYjZsJ
|
||||
k4OJMT6ILhgTFheDiongc4AP4HdgcO/xnPZWaG81/JN/Qu49v1972wJ2iUQiQWqFiqL82yO2/w4Nuann
|
||||
DA3MrqMrWcDaSRB30uOGiPfcYrwVWuQr1HnIPxXFnsQxQvYDYeMd1Scf1Yt3hwGMz4UNEc9WBK4JsHfx
|
||||
AJ0r1wibBAoYMizwolpR9D6OYOPCh5f7AU0kcF0AuU8JhsybCVYfhvXeD9kIbGBYEwILrJYHZYEzVZRg
|
||||
|
@ -137,7 +137,7 @@
|
|||
<data name="新增内置功能ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
xAAADsQBlSsOGwAAAIpJREFUOE/tktEGxDAQRef/v6NLly5dQpfQtSXkixJJHu661R36NC/70NJhiDnH
|
||||
wgAADsIBFShKgAAAAIpJREFUOE/tktEGxDAQRef/v6NLly5dQpfQtSXkixJJHu661R36NC/70NJhiDnH
|
||||
mImRv0SMESEELJ8F73mG9x6vacKGTS6ErbVdOudUsLiwM4s55zX5fo6jChYXjvUTUkqoteIxDCpYXLgT
|
||||
BSZhKQX3vlfB4sIP4U4ci50Jb12ngsUPENcdnPsORL5USPZgYQ6cHAAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
|
@ -182,7 +182,7 @@
|
|||
<data name="IconViewEx1.Icon" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
||||
EwAACxMBAJqcGAAABvRJREFUeF7tnE2IHEUUxwcjIjkE1JMREnMWD7phd7uzfuBJEPSkd0+55BLQc9ds
|
||||
EQAACxEBf2RfkQAABvRJREFUeF7tnE2IHEUUxwcjIjkE1JMREnMWD7phd7uzfuBJEPSkd0+55BLQc9ds
|
||||
ooIXT+bix8kgbtSYgxA1hsWLImLAPYTEXBRUNGiMEojpnpTvdWpIT2/Nm+6e7uqerv+DH0tPVfVs7/t1
|
||||
ffTHDopEoPS9QTQ6FKrkbKjiC/TzCqFBp6CcpLk5G6h4GK7rYKD0HSaF1WL5iN4XqOR4ECU3cl8GFoAg
|
||||
ii8eWNePmXQWjyWld4ZRcox2kuR3ChYPOonfeVLpu0165TgQ6d3UlWzZdgQWF+oNvufcmjTbIzyq99KZ
|
||||
|
|
|
@ -180,6 +180,7 @@ namespace VSoft.Prams
|
|||
mySQL.AddField("sortindex", 0);
|
||||
mySQL.AddField("depth", 0);//深度,0表示栏目,1表示分类
|
||||
mySQL.AddField("parentId", 0);
|
||||
mySQL.AddField("Hotkey", "");//快捷键
|
||||
mySQL.AddField("Des", "");//备注
|
||||
mySQL.AddField("editTime", DateTime.Now);
|
||||
mySQL.AddField("addTime", DateTime.Now);
|
||||
|
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.2109.0701")]
|
||||
[assembly: AssemblyFileVersion("1.0.2109.0701")]
|
||||
[assembly: AssemblyVersion("1.0.2110.0801")]
|
||||
[assembly: AssemblyFileVersion("1.0.2110.0801")]
|
11
Source/VSoft_Dll/Skins/FrmMessageBox.Designer.cs
generated
11
Source/VSoft_Dll/Skins/FrmMessageBox.Designer.cs
generated
|
@ -50,9 +50,9 @@ namespace VSoft.Skins
|
|||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancel.BaseColor = System.Drawing.Color.Teal;
|
||||
this.btnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(20)))));
|
||||
this.btnCancel.ColorGradient = true;
|
||||
this.btnCancel.Location = new System.Drawing.Point(285, 141);
|
||||
this.btnCancel.Location = new System.Drawing.Point(317, 206);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(65, 27);
|
||||
this.btnCancel.TabIndex = 84;
|
||||
|
@ -63,9 +63,9 @@ namespace VSoft.Skins
|
|||
// btnYes
|
||||
//
|
||||
this.btnYes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnYes.BaseColor = System.Drawing.Color.Teal;
|
||||
this.btnYes.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(20)))));
|
||||
this.btnYes.ColorGradient = true;
|
||||
this.btnYes.Location = new System.Drawing.Point(214, 141);
|
||||
this.btnYes.Location = new System.Drawing.Point(246, 206);
|
||||
this.btnYes.Name = "btnYes";
|
||||
this.btnYes.Size = new System.Drawing.Size(65, 27);
|
||||
this.btnYes.TabIndex = 83;
|
||||
|
@ -77,11 +77,10 @@ namespace VSoft.Skins
|
|||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(355, 172);
|
||||
this.ClientSize = new System.Drawing.Size(387, 237);
|
||||
this.Controls.Add(this.lblMsg);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnYes);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
|
|
3
Source/VSoft_Dll/Skins/SKinForm.Designer.cs
generated
3
Source/VSoft_Dll/Skins/SKinForm.Designer.cs
generated
|
@ -35,7 +35,8 @@ namespace VSoft.Skins
|
|||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(631, 545);
|
||||
this.ClientSize = new System.Drawing.Size(663, 496);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Location = new System.Drawing.Point(0, 0);
|
||||
this.Name = "SKinForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
|
|
Loading…
Reference in New Issue
Block a user