### 2021-02-27更新

------
#### VSoft    V1.0.2102.2701
- *.[新增]全新的UI,更加美观。
This commit is contained in:
如果当时 2021-02-27 22:49:44 +08:00
parent 17f36a8db5
commit 2e557b5365
43 changed files with 4633 additions and 1000 deletions

Binary file not shown.

View File

@ -2107,12 +2107,60 @@
<param name="data"></param>
<returns></returns>
</member>
<member name="T:ryCommon.SysFuns.Auto">
<member name="T:ryCommon.Auto">
<summary>
对鼠标或键盘的自动化操作
</summary>
</member>
<member name="M:ryCommon.SysFuns.Auto.LeftClick(System.IntPtr,System.Int32,System.Int32)">
<member name="F:ryCommon.Auto.MK_LBUTTON">
<summary>
鼠标左键
</summary>
</member>
<member name="F:ryCommon.Auto.MK_MBUTTON">
<summary>
鼠标中键
</summary>
</member>
<member name="F:ryCommon.Auto.MK_RBUTTON">
<summary>
鼠标右键
</summary>
</member>
<member name="M:ryCommon.Auto.KeyButton(System.IntPtr,System.Int32,System.Boolean)">
<summary>
模拟键盘按键
</summary>
<param name="hWnd"></param>
<param name="key"></param>
<param name="isPress">按下还是抬起</param>
</member>
<member name="M:ryCommon.Auto.Mouse_Wheel(System.IntPtr,System.Drawing.Point,System.Int32)">
<summary>
鼠标滚轮
</summary>
<param name="hWnd"></param>
<param name="mouse_position"></param>
<param name="delta"></param>
</member>
<member name="M:ryCommon.Auto.Mouse_Move(System.IntPtr,System.Int32,System.Drawing.Point)">
<summary>
鼠标移动
</summary>
<param name="hWnd"></param>
<param name="button"></param>
<param name="mouse_position"></param>
</member>
<member name="M:ryCommon.Auto.Mouse_Button(System.IntPtr,System.Windows.Forms.MouseButtons,System.Drawing.Point,System.Boolean)">
<summary>
自定义鼠标按下或抬起
</summary>
<param name="hWnd"></param>
<param name="button"></param>
<param name="mouse_position"></param>
<param name="isPress"></param>
</member>
<member name="M:ryCommon.Auto.LeftClick(System.IntPtr,System.Int32,System.Int32)">
<summary>
左键单击鼠标(支持后台单击)
</summary>
@ -2120,6 +2168,127 @@
<param name="x">坐标x(句柄内的坐标,非屏幕坐标)</param>
<param name="y">坐标y(句柄内的坐标,非屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.LeftClick(System.IntPtr,System.Drawing.Point)">
<summary>
左键单击鼠标(支持后台单击)
</summary>
<param name="handle">指定要发送单击命令的句柄</param>
<param name="point">坐标(句柄内的坐标,非屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.RightClick(System.IntPtr,System.Int32,System.Int32)">
<summary>
右键单击鼠标(支持后台单击)
</summary>
<param name="handle">指定要发送单击命令的句柄</param>
<param name="x">坐标x(句柄内的坐标,非屏幕坐标)</param>
<param name="y">坐标y(句柄内的坐标,非屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.RightClick(System.IntPtr,System.Drawing.Point)">
<summary>
右键单击鼠标(支持后台单击)
</summary>
<param name="handle">指定要发送单击命令的句柄</param>
<param name="point">坐标(句柄内的坐标,非屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.MiddleClick(System.IntPtr,System.Int32,System.Int32)">
<summary>
中键单击鼠标(支持后台单击)
</summary>
<param name="handle">指定要发送单击命令的句柄</param>
<param name="x">坐标x(句柄内的坐标,非屏幕坐标)</param>
<param name="y">坐标y(句柄内的坐标,非屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.MiddleClick(System.IntPtr,System.Drawing.Point)">
<summary>
中键单击鼠标(支持后台单击)
</summary>
<param name="handle">指定要发送单击命令的句柄</param>
<param name="point">坐标(句柄内的坐标,非屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.LeftClick(System.Int32,System.Int32)">
<summary>
左键单击鼠标(不支持后台单击)
</summary>
<param name="x">坐标x(屏幕坐标)</param>
<param name="y">坐标y(屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.LeftClick(System.Drawing.Point)">
<summary>
左键单击鼠标(不支持后台单击)
</summary>
<param name="point">坐标(屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.RightClick(System.Int32,System.Int32)">
<summary>
右键单击鼠标(不支持后台单击)
</summary>
<param name="x">坐标x(屏幕坐标)</param>
<param name="y">坐标y(屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.RightClick(System.Drawing.Point)">
<summary>
右键单击鼠标(不支持后台单击)
</summary>
<param name="point">坐标(屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.MiddleClick(System.Int32,System.Int32)">
<summary>
中键单击鼠标(不支持后台单击)
</summary>
<param name="x">坐标x(屏幕坐标)</param>
<param name="y">坐标y(屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.MiddleClick(System.Drawing.Point)">
<summary>
中键单击鼠标(不支持后台单击)
</summary>
<param name="point">坐标(屏幕坐标)</param>
</member>
<member name="M:ryCommon.Auto.PasteText(System.String)">
<summary>
粘贴文本
</summary>
<param name="text"></param>
</member>
<member name="M:ryCommon.Auto.GetRect(System.IntPtr,System.Drawing.Size@)">
<summary>
获取指定句柄的大小及位置
</summary>
<param name="handle"></param>
<param name="size"></param>
<returns></returns>
</member>
<member name="M:ryCommon.Auto.SetRect(System.IntPtr,System.Drawing.Size)">
<summary>
设置指定句柄的大小
</summary>
<param name="handle"></param>
<param name="size"></param>
</member>
<member name="M:ryCommon.Auto.IsInRect(System.Drawing.Rectangle,System.Drawing.Point)">
<summary>
判断鼠标位置是不是在指定的矩形中
</summary>
<param name="rect"></param>
<param name="mouse_position"></param>
<returns></returns>
</member>
<member name="M:ryCommon.Auto.ImageEquals(System.Drawing.Bitmap,System.Drawing.Bitmap)">
<summary>
判断2张图是否相似度超90
</summary>
<param name="bmpOne"></param>
<param name="bmpTwo"></param>
<returns></returns>
</member>
<member name="M:ryCommon.Auto.GetXsd(System.Drawing.Color,System.Drawing.Color)">
<summary>
/获取2种颜色的相似度,范围为0~100
</summary>
<param name="c1"></param>
<param name="c2"></param>
<returns></returns>
</member>
<member name="T:ryCommon.ModalForm">
<summary>
新模态窗体
@ -2593,6 +2762,48 @@
<param name="IEMode">7000 表示IE7兼容视图模式;8000 表示IE8 标准模式 ;8888 表示IE8 强制标准模式,在渲染失败的情况下不尝试用兼容视图模式</param>
<returns></returns>
</member>
<member name="M:ryCommon.RyRegedit.SetFileAssociation(System.String,System.String,System.String,System.String,System.String)">
<summary>
设置文件关联
</summary>
<param name="Ext">扩展名(如.apk)</param>
<param name="ExtName">映射的扩展名(如apkfile)</param>
<param name="sName">app名称(建议用英文数字)</param>
<param name="AssDes">文件关联描述</param>
<param name="filePath">文件路径</param>
</member>
<member name="M:ryCommon.RyRegedit.SetFileAssociation(System.String,System.String,System.String,System.String)">
<summary>
设置文件关联
</summary>
<param name="ExtName">映射的扩展名(如apkfile)</param>
<param name="sName">app名称(建议用英文数字)</param>
<param name="AssDes">文件关联描述</param>
<param name="filePath">文件路径</param>
</member>
<member name="M:ryCommon.RyRegedit.SetFileAssociationOpenAs(System.String,System.String,System.String,System.String)">
<summary>
在指定文件格式右键菜单中增加菜单
</summary>
<param name="Ext">扩展名(如.apk)</param>
<param name="sName">app名称(建议用英文数字)</param>
<param name="AssDes">文件关联描述</param>
<param name="filePath">文件路径</param>
</member>
<member name="M:ryCommon.RyRegedit.DelFileAssociation(System.String,System.String)">
<summary>
删除文件关联
</summary>
<param name="ExtName">映射的扩展名(如apkfile)</param>
<param name="sName">app名称(建议用英文数字)</param>
</member>
<member name="M:ryCommon.RyRegedit.GetFileAssociation(System.String,System.String)">
<summary>
获取文件关联是否存在
</summary>
<param name="ExtName">映射的扩展名(如apkfile)</param>
<param name="sName">app名称(建议用英文数字)</param>
</member>
<member name="T:ryCommon.RyRegedit.IeMode">
<summary>
采用的IE模式
@ -4710,195 +4921,11 @@
Win32 API
</summary>
</member>
<member name="M:MyDb.RyWin32.GetSystemMenu(System.IntPtr,System.Int32)">
<summary>
</summary>
<param name="hwnd"></param>
<param name="bRevert"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.RemoveMenu(System.Int32,System.Int32,System.Int32)">
<summary>
</summary>
<param name="hMenu"></param>
<param name="nPosition"></param>
<param name="wFlags"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.SetForegroundWindow(System.IntPtr)">
<summary>
</summary>
<param name="hWnd"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.GetForegroundWindow">
<summary>
获取当前前台窗口句柄
</summary>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.GetActiveWindow">
<summary>
获得当前活动窗体
</summary>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.SetActiveWindow(System.IntPtr)">
<summary>
设置活动窗体
</summary>
<param name="hwnd"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.GetClassName(System.Int32,System.Text.StringBuilder,System.Int32)">
<summary>
获取类名
</summary>
<param name="hWnd"></param>
<param name="lpClassName"></param>
<param name="nMaxCount"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.GetWindowThreadProcessId(System.IntPtr,System.Int32@)">
<summary>
获取当前线程对应的进程ID
</summary>
<param name="hwnd"></param>
<param name="ID"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.IsWindow(System.IntPtr)">
<summary>
判断指定句柄是否是一个窗口
</summary>
<param name="hWnd"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.GetWindowText(System.Int32,System.Text.StringBuilder,System.Int32)">
<summary>
获取窗口标题
</summary>
<param name="hWnd"></param>
<param name="lpString"></param>
<param name="nMaxCount"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.FindWindow(System.String,System.String)">
<summary>
查找窗口
</summary>
<param name="lpClassName"></param>
<param name="lpWindowName"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.SetParent(System.IntPtr,System.IntPtr)">
<summary>
设置父窗口
</summary>
<param name="hWndChild"></param>
<param name="hWndParent"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.MoveWindow(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">
<summary>
移动窗口
</summary>
<param name="hWnd"></param>
<param name="x"></param>
<param name="y"></param>
<param name="nWidth"></param>
<param name="nHeight"></param>
<param name="BRePaint"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.CallWindowProc(System.IntPtr,System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
</summary>
<param name="lpPrevWndFunc"></param>
<param name="hwnd"></param>
<param name="msg"></param>
<param name="wParam"></param>
<param name="lParam"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.SetWindowLong(System.IntPtr,System.Int32,System.IntPtr)">
<summary>
</summary>
<param name="hwnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="F:MyDb.RyWin32.GWL_WNDPROC">
<summary>
</summary>
</member>
<member name="M:MyDb.RyWin32.TerminateProcess(System.Int32,System.Int32)">
<summary>
结束进程
</summary>
<param name="handle"></param>
<param name="exitCode"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.SendMessage(System.IntPtr,System.Int32,System.Int32,MyDb.RyWin32.COPYDATASTRUCT@)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="msg"></param>
<param name="wParam"></param>
<param name="IParam"></param>
<returns></returns>
</member>
<member name="M:MyDb.RyWin32.PostMessage(System.IntPtr,System.Int32,System.Int32,MyDb.RyWin32.COPYDATASTRUCT@)">
<summary>
发送消息
</summary>
<param name="hWnd"></param>
<param name="msg"></param>
<param name="wParam"></param>
<param name="IParam"></param>
</member>
<member name="M:MyDb.RyWin32.GetWindowRect(System.IntPtr,MyDb.RyWin32.RECT@)">
<summary>
获取窗口位置和大小
</summary>
<param name="hWnd"></param>
<param name="lpRect"></param>
<returns></returns>
</member>
<member name="T:MyDb.RyWin32.RECT">
<summary>
矩形
</summary>
</member>
<member name="F:MyDb.RyWin32.RECT.Left">
<summary>
最左坐标
</summary>
</member>
<member name="F:MyDb.RyWin32.RECT.Top">
<summary>
最上坐标
</summary>
</member>
<member name="F:MyDb.RyWin32.RECT.Right">
<summary>
最右坐标
</summary>
</member>
<member name="F:MyDb.RyWin32.RECT.Bottom">
<summary>
最下坐标
</summary>
</member>
<member name="F:MyDb.RyWin32.WM_COPYDATA">
<summary>
WM_COPYDATA消息的主要目的是允许在进程间传递只读数据。
@ -4914,26 +4941,6 @@
用户通道ID
</summary>
</member>
<member name="T:MyDb.RyWin32.COPYDATASTRUCT">
<summary>
</summary>
</member>
<member name="F:MyDb.RyWin32.COPYDATASTRUCT.dwData">
<summary>
</summary>
</member>
<member name="F:MyDb.RyWin32.COPYDATASTRUCT.cData">
<summary>
</summary>
</member>
<member name="F:MyDb.RyWin32.COPYDATASTRUCT.lpData">
<summary>
</summary>
</member>
<member name="M:MyDb.RyWin32.GetMsg(System.Windows.Forms.Message,System.IntPtr@)">
<summary>
获取消息
@ -4961,5 +4968,536 @@
<param name="size"></param>
<returns></returns>
</member>
<member name="T:WinAPI.Kernel32">
<summary>
</summary>
</member>
<member name="M:WinAPI.Kernel32.TerminateProcess(System.Int32,System.Int32)">
<summary>
结束进程
</summary>
<param name="handle"></param>
<param name="exitCode"></param>
<returns></returns>
</member>
<member name="T:WinAPI.Struct">
<summary>
</summary>
</member>
<member name="T:WinAPI.Struct.BLENDFUNCTION">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.BLENDFUNCTION.BlendOp">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.BLENDFUNCTION.BlendFlags">
<summary>
/
</summary>
</member>
<member name="F:WinAPI.Struct.BLENDFUNCTION.SourceConstantAlpha">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.BLENDFUNCTION.AlphaFormat">
<summary>
</summary>
</member>
<member name="T:WinAPI.Struct.FlagsSetWindowPos">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_NOSIZE">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_NOMOVE">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_NOZORDER">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_NOREDRAW">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_NOACTIVATE">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_FRAMECHANGED">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_SHOWWINDOW">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_HIDEWINDOW">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_NOCOPYBITS">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_NOOWNERZORDER">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_NOSENDCHANGING">
<summary>
/
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_DRAWFRAME">
<summary>
/
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_NOREPOSITION">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_DEFERERASE">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.FlagsSetWindowPos.SWP_ASYNCWINDOWPOS">
<summary>
</summary>
</member>
<member name="T:WinAPI.Struct.COPYDATASTRUCT">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.COPYDATASTRUCT.dwData">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.COPYDATASTRUCT.cData">
<summary>
</summary>
</member>
<member name="F:WinAPI.Struct.COPYDATASTRUCT.lpData">
<summary>
</summary>
</member>
<member name="T:WinAPI.GDI32">
<summary>
</summary>
</member>
<member name="M:WinAPI.GDI32.DeleteObject(System.IntPtr)">
<summary>
</summary>
<param name="hObject"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.SelectObject(System.IntPtr,System.IntPtr)">
<summary>
</summary>
<param name="hdc"></param>
<param name="hgdiobj"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.CreateCompatibleDC(System.IntPtr)">
<summary>
</summary>
<param name="hdc"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.CreateDC(System.String,System.String,System.String,System.IntPtr)">
<summary>
</summary>
<param name="driverName"></param>
<param name="deviceName"></param>
<param name="output"></param>
<param name="lpInitData"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.DeleteDC(System.IntPtr)">
<summary>
</summary>
<param name="dc"></param>
<returns></returns>
</member>
<member name="T:WinAPI.User32">
<summary>
</summary>
</member>
<member name="M:WinAPI.User32.mouse_event(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
<summary>
模拟鼠标点击
</summary>
<param name="dwFlags"></param>
<param name="dx"></param>
<param name="dy"></param>
<param name="dwData"></param>
<param name="dwExtraInfo"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.keybd_event(System.Windows.Forms.Keys,System.Byte,System.UInt32,System.UInt32)">
<summary>
模拟按键
</summary>
<param name="bVk"></param>
<param name="bScan"></param>
<param name="dwFlags"></param>
<param name="dwExtraInfo"></param>
</member>
<member name="M:WinAPI.User32.GetWindowDC(System.IntPtr)">
<summary>
</summary>
<param name="hWnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.MoveWindow(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">
<summary>
移动窗口
</summary>
<param name="hWnd"></param>
<param name="x"></param>
<param name="y"></param>
<param name="width"></param>
<param name="height"></param>
<param name="repaint"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.CallWindowProc(System.IntPtr,System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
</summary>
<param name="lpPrevWndFunc"></param>
<param name="hwnd"></param>
<param name="msg"></param>
<param name="wParam"></param>
<param name="lParam"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.IntPtr)">
<summary>
</summary>
<param name="hwnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetParent(System.IntPtr,System.IntPtr)">
<summary>
</summary>
<param name="hwndChild"></param>
<param name="hwndParent"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetParent(System.IntPtr)">
<summary>
The GetParent function retrieves a handle to the specified window's parent or owner.
</summary>
<param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
<returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
</member>
<member name="M:WinAPI.User32.GetSystemMenu(System.IntPtr,System.Int32)">
<summary>
</summary>
<param name="hwnd"></param>
<param name="bRevert"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.RemoveMenu(System.Int32,System.Int32,System.Int32)">
<summary>
</summary>
<param name="hMenu"></param>
<param name="nPosition"></param>
<param name="wFlags"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetForegroundWindow(System.IntPtr)">
<summary>
</summary>
<param name="hWnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetForegroundWindow">
<summary>
获取当前前台窗口句柄
</summary>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetActiveWindow">
<summary>
获得当前活动窗体
</summary>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetActiveWindow(System.IntPtr)">
<summary>
设置活动窗体
</summary>
<param name="hwnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetClassName(System.Int32,System.Text.StringBuilder,System.Int32)">
<summary>
获取类名
</summary>
<param name="hWnd"></param>
<param name="lpClassName"></param>
<param name="nMaxCount"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetWindowThreadProcessId(System.IntPtr,System.Int32@)">
<summary>
获取当前线程对应的进程ID
</summary>
<param name="hwnd"></param>
<param name="ID"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.IsWindow(System.IntPtr)">
<summary>
判断指定句柄是否是一个窗口
</summary>
<param name="hWnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetWindowText(System.Int32,System.Text.StringBuilder,System.Int32)">
<summary>
获取窗口标题
</summary>
<param name="hWnd"></param>
<param name="lpString"></param>
<param name="nMaxCount"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.Int32,System.Int32)">
<summary>
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
<param name="wParam"></param>
<param name="lParam"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
<param name="wParam"></param>
<param name="lParam"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.UInt32,System.Int32,System.Int32)">
<summary>
</summary>
<param name="hWnd"></param>
<param name="Msg"></param>
<param name="wParam"></param>
<param name="lParam"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.Int32,WinAPI.Struct.COPYDATASTRUCT@)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="msg"></param>
<param name="wParam"></param>
<param name="IParam"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.PostMessage(System.IntPtr,System.Int32,System.Int32,WinAPI.Struct.COPYDATASTRUCT@)">
<summary>
发送消息
</summary>
<param name="hWnd"></param>
<param name="msg"></param>
<param name="wParam"></param>
<param name="IParam"></param>
</member>
<member name="M:WinAPI.User32.LoadCursorFromFile(System.String)">
<summary>
</summary>
<param name="filename"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.IsWindowVisible(System.IntPtr)">
<summary>
</summary>
<param name="hwnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.FindWindow(System.String,System.String)">
<summary>
查找窗口
</summary>
<param name="lpClassName"></param>
<param name="lpWindowName"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.FindWindowEx(System.IntPtr,System.IntPtr,System.String,System.String)">
<summary>
The FindWindowEx function retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window.
</summary>
<param name="hwndParent">Handle to the parent window whose child windows are to be searched.</param>
<param name="hwndChildAfter">Handle to a child window.</param>
<param name="lpszClass">Specifies class name.</param>
<param name="lpszWindow">Pointer to a null-terminated string that specifies the window name (the window's title).</param>
<returns>If the function succeeds, the return value is a handle to the window that has the specified class and window names.If the function fails, the return value is NULL.</returns>
</member>
<member name="M:WinAPI.User32.InvalidateRect(System.IntPtr,System.Drawing.Rectangle@,System.Boolean)">
<summary>
The InvalidateRect function adds a rectangle to the specified window's update region.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Rectangle coordinates.</param>
<param name="bErase">Erase state.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:WinAPI.User32.ValidateRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Validation rectangle coordinates.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:WinAPI.User32.GetWindowLong(System.IntPtr,System.Int32)">
<summary>
</summary>
<param name="hWnd"></param>
<param name="dwStyle"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetDC(System.IntPtr)">
<summary>
</summary>
<param name="hwnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.ReleaseDC(System.IntPtr,System.IntPtr)">
<summary>
</summary>
<param name="hwnd"></param>
<param name="hdc"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetClientRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
</summary>
<param name="hwnd"></param>
<param name="rect"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetWindowRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
</summary>
<param name="hWnd"></param>
<param name="rect"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.UpdateLayeredWindow(System.IntPtr,System.IntPtr,System.Drawing.Point@,System.Drawing.Size@,System.IntPtr,System.Drawing.Point@,System.Int32,WinAPI.Struct.BLENDFUNCTION@,System.Int32)">
<summary>
</summary>
<param name="hwnd"></param>
<param name="hdcDst"></param>
<param name="pptDst"></param>
<param name="psize"></param>
<param name="hdcSrc"></param>
<param name="pprSrc"></param>
<param name="crKey"></param>
<param name="pblend"></param>
<param name="dwFlags"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.Int32)">
<summary>
</summary>
<param name="hWnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,WinAPI.Struct.FlagsSetWindowPos)">
<summary>
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
</summary>
<param name="hWnd">A handle to the window.</param>
<param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
<param name="X">Specifies the new position of the left side of the window, in client coordinates.</param>
<param name="Y">Specifies the new position of the top of the window, in client coordinates.</param>
<param name="Width">Specifies the new width of the window, in pixels.</param>
<param name="Height">Specifies the new height of the window, in pixels.</param>
<param name="flags">Specifies the window sizing and positioning flags. This parameter can be a combination of the following values.</param>
<returns>If the function succeeds, the return value is nonzero, if the function fails, the return value is zero.</returns>
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.UInt32)">
<summary>
</summary>
<param name="hWnd"></param>
<param name="hWndInsertAfter"></param>
<param name="X"></param>
<param name="Y"></param>
<param name="cx"></param>
<param name="cy"></param>
<param name="uFlags"></param>
<returns></returns>
</member>
</members>
</doc>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
[VSoft]
hwnd=791248
width=738
height=564
hwnd=134840
width=733
height=570

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +1,3 @@
<root>
<list id="LastUpdateTime" Value="2021/2/6 13:57:51" />
<list id="LastUpdateTime" Value="2021/2/27 22:48:30" />
</root>

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -1,4 +1,9 @@
### 2021-02-13更新
### 2021-02-27更新
------
#### VSoft V1.0.2102.2701
- *.[新增]全新的UI,更加美观。
### 2021-02-13更新
------
#### VSoft V1.0.2102.1301
- *.[修复]修复打开状态下双击桌面图标,不会唤醒软件的BUG。

Binary file not shown.

View File

@ -82,7 +82,7 @@ namespace ryCommon.Model
if (hShareMemoryHandle == IntPtr.Zero)
{
//创建共享内存失败记log
// MessageBox.Show("创建共享内存失败" + publicInfo.GetLastError().ToString());
// Msg.ShowMsg("创建共享内存失败" + publicInfo.GetLastError().ToString());
return -2;
}
else
@ -90,7 +90,7 @@ namespace ryCommon.Model
if (ERROR_ALREADY_EXISTS == GetLastError())
{
//共享内存已经存在记log
//MessageBox.Show("共享内存已经存在");
//Msg.ShowMsg("共享内存已经存在");
return -3;
}
}
@ -99,7 +99,7 @@ namespace ryCommon.Model
{
CloseHandle(hShareMemoryHandle);
//文件映射失败记log
//MessageBox.Show("文件映射失败");
//Msg.ShowMsg("文件映射失败");
return -4;
}
Marshal.StructureToPtr(obj, hVoid, false);
@ -110,7 +110,7 @@ namespace ryCommon.Model
if (handle == IntPtr.Zero)
{
//查找窗口失败记log
//MessageBox.Show("查找窗口失败");
//Msg.ShowMsg("查找窗口失败");
return -5;
}
else
@ -118,7 +118,7 @@ namespace ryCommon.Model
if (PostMessage(handle, (uint)Msg, 0, 0))
{
//发送消息成功
//MessageBox.Show("写共享内存,通知发送消息成功");
//Msg.ShowMsg("写共享内存,通知发送消息成功");
}
}
}
@ -126,7 +126,7 @@ namespace ryCommon.Model
else
{
//参数不合法记log
//MessageBox.Show("共享内存已经存在");
//Msg.ShowMsg("共享内存已经存在");
return -1;
}
return 0;
@ -148,14 +148,14 @@ namespace ryCommon.Model
if (hMappingHandle == IntPtr.Zero)
{
//打开共享内存失败记log
//MessageBox.Show("打开共享内存失败:" + publicInfo.GetLastError().ToString());
//Msg.ShowMsg("打开共享内存失败:" + publicInfo.GetLastError().ToString());
return null;
}
hVoid = MapViewOfFile(hMappingHandle, FILE_MAP_READ, 0, 0, structSize);
if (hVoid == IntPtr.Zero)
{
//文件映射失败记log
// MessageBox.Show("文件映射失败——读共享内存");
// Msg.ShowMsg("文件映射失败——读共享内存");
return null;
}
@ -190,14 +190,14 @@ namespace ryCommon.Model
if (hMappingHandle == IntPtr.Zero)
{
//打开共享内存失败记log
//MessageBox.Show("打开共享内存失败:" + publicInfo.GetLastError().ToString());
//Msg.ShowMsg("打开共享内存失败:" + publicInfo.GetLastError().ToString());
return null;
}
hVoid = MapViewOfFile(hMappingHandle, FILE_MAP_READ, 0, 0, structSize);
if (hVoid == IntPtr.Zero)
{
//文件映射失败记log
//MessageBox.Show("文件映射失败——读共享内存");
//Msg.ShowMsg("文件映射失败——读共享内存");
return null;
}

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.2102.1301")]
[assembly: AssemblyFileVersion("1.0.2102.1301")]
[assembly: AssemblyVersion("1.0.2102.2701")]
[assembly: AssemblyFileVersion("1.0.2102.2701")]

View File

@ -1,55 +1,55 @@
using ryCommon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace VSoft.Config
{
/// <summary>
/// 配置类,保存在运行期间会被改变的配置信息(本系统基于乘黄V2架构)
/// </summary>
public static class Soft_Config
{
/// <summary>
/// 是否能关闭窗体。
/// </summary>
public static bool IsCanCloseForm = true;
/// <summary>
/// 在点击主窗口关闭按钮时,隐藏窗体(只有开启了托盘图标,本功能才能生效,此时需要通过托盘图标进行关闭)。
/// </summary>
public static bool HideByCloseBtn = true;
/// <summary>
/// 显示主窗体的热键
/// </summary>
using ryCommon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace VSoft.Config
{
/// <summary>
/// 配置类,保存在运行期间会被改变的配置信息(本系统基于乘黄V2架构)
/// </summary>
public static class Soft_Config
{
/// <summary>
/// 是否能关闭窗体。
/// </summary>
public static bool IsCanCloseForm = true;
/// <summary>
/// 在点击主窗口关闭按钮时,隐藏窗体(只有开启了托盘图标,本功能才能生效,此时需要通过托盘图标进行关闭)。
/// </summary>
public static bool HideByCloseBtn = true;
/// <summary>
/// 显示主窗体的热键
/// </summary>
public static string ShowMainHotKey = "";
/// <summary>
/// 是否开启鼠标快捷键
/// </summary>
/// <summary>
/// 是否开启鼠标快捷键
/// </summary>
public static bool ShowMainMouseKeyOn = true;
/// <summary>
/// 鼠标快捷键
/// </summary>
public static int ShowMainMouseKey = 0;
/// <summary>
/// 单击打开软件
/// </summary>
public static bool OpenByClick = false;
/// <summary>
/// 启动软件后隐藏自身
/// </summary>
public static bool HideAfterRun = true;
public static void LoadSetting()
{
ryCommon.Storage Stor = new Storage();
Stor.LoadFromFile(Soft_Info.UserDataFolder + "\\Setting.xml");
Stor.SelectNodeBySet();
ShowMainHotKey = Stor.GetAttrValue("ShowMainHotKey", "1+88");
OpenByClick = Stor.GetAttrValue("OpenByClick", false);
HideAfterRun = Stor.GetAttrValue("HideAfterRun", true);
ShowMainMouseKeyOn = Stor.GetAttrValue("ShowMainMouseKeyOn", true);
ShowMainMouseKey = Stor.GetAttrValue("ShowMainMouseKey", 0);
//low_count = Stor.GetAttrValue("LowCount", 10);
}
}
}
/// <summary>
/// 鼠标快捷键
/// </summary>
public static int ShowMainMouseKey = 0;
/// <summary>
/// 单击打开软件
/// </summary>
public static bool OpenByClick = false;
/// <summary>
/// 启动软件后隐藏自身
/// </summary>
public static bool HideAfterRun = true;
public static void LoadSetting()
{
ryCommon.Storage Stor = new Storage();
Stor.LoadFromFile(Soft_Info.UserDataFolder + "\\Setting.xml");
Stor.SelectNodeBySet();
ShowMainHotKey = Stor.GetAttrValue("ShowMainHotKey", "1+88");
OpenByClick = Stor.GetAttrValue("OpenByClick", false);
HideAfterRun = Stor.GetAttrValue("HideAfterRun", true);
ShowMainMouseKeyOn = Stor.GetAttrValue("ShowMainMouseKeyOn", true);
ShowMainMouseKey = Stor.GetAttrValue("ShowMainMouseKey", 0);
//low_count = Stor.GetAttrValue("LowCount", 10);
}
}
}

View File

@ -53,6 +53,6 @@ namespace VSoft.Config
/// <summary>
/// 是否显示捐赠方式
/// </summary>
public static bool DonateVisabled { get; } = false;
public static bool DonateVisabled { get; } = true;
}
}

View File

@ -35,14 +35,14 @@
this.btnOK = new ryControls.ButtonEx();
this.chromeTabControl1 = new ryControls.ChromeTabControl();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.label2 = new System.Windows.Forms.Label();
this.ChkMouseKey = new System.Windows.Forms.CheckBox();
this.CbbMouseKeyShow = new ryControls.RyComboBox();
this.ChkHideAfterRun = new System.Windows.Forms.CheckBox();
this.ChkOpenByClick = new System.Windows.Forms.CheckBox();
this.hotkeyTextBox1 = new ryControls.HotkeyTextBox();
this.label1 = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.CbbMouseKeyShow = new ryControls.RyComboBox();
this.ChkMouseKey = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.chromeTabControl1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.SuspendLayout();
@ -61,7 +61,7 @@
//
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnCancel.Location = new System.Drawing.Point(541, 460);
this.btnCancel.Location = new System.Drawing.Point(488, 462);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(79, 30);
this.btnCancel.TabIndex = 22;
@ -73,7 +73,7 @@
//
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.btnOK.Location = new System.Drawing.Point(456, 460);
this.btnOK.Location = new System.Drawing.Point(403, 462);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(79, 30);
this.btnOK.TabIndex = 21;
@ -91,12 +91,12 @@
this.chromeTabControl1.Controls.Add(this.tabPage2);
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25);
this.chromeTabControl1.Location = new System.Drawing.Point(5, 2);
this.chromeTabControl1.Location = new System.Drawing.Point(5, 30);
this.chromeTabControl1.Name = "chromeTabControl1";
this.chromeTabControl1.SelectedIndex = 0;
this.chromeTabControl1.ShowAddButton = false;
this.chromeTabControl1.ShowCloseButton = false;
this.chromeTabControl1.Size = new System.Drawing.Size(621, 452);
this.chromeTabControl1.Size = new System.Drawing.Size(568, 426);
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.chromeTabControl1.TabContextMenuStrip = null;
this.chromeTabControl1.TabIndex = 23;
@ -115,11 +115,49 @@
this.tabPage2.Location = new System.Drawing.Point(1, 29);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(619, 422);
this.tabPage2.Size = new System.Drawing.Size(566, 396);
this.tabPage2.TabIndex = 0;
this.tabPage2.Text = "普通";
this.tabPage2.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(208, 68);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 12);
this.label2.TabIndex = 10;
this.label2.Text = "显示主界面";
//
// ChkMouseKey
//
this.ChkMouseKey.AutoSize = true;
this.ChkMouseKey.Location = new System.Drawing.Point(8, 66);
this.ChkMouseKey.Name = "ChkMouseKey";
this.ChkMouseKey.Size = new System.Drawing.Size(72, 16);
this.ChkMouseKey.TabIndex = 9;
this.ChkMouseKey.Text = "双击鼠标";
this.ChkMouseKey.UseVisualStyleBackColor = true;
this.ChkMouseKey.CheckedChanged += new System.EventHandler(this.ChkMouseKey_CheckedChanged);
//
// CbbMouseKeyShow
//
this.CbbMouseKeyShow.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.CbbMouseKeyShow.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CbbMouseKeyShow.Enabled = false;
this.CbbMouseKeyShow.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CbbMouseKeyShow.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.CbbMouseKeyShow.FormattingEnabled = true;
this.CbbMouseKeyShow.Items.AddRange(new object[] {
"中键",
"侧键1",
"侧键2"});
this.CbbMouseKeyShow.Location = new System.Drawing.Point(80, 62);
this.CbbMouseKeyShow.Name = "CbbMouseKeyShow";
this.CbbMouseKeyShow.Size = new System.Drawing.Size(121, 24);
this.CbbMouseKeyShow.TabIndex = 8;
this.CbbMouseKeyShow.SelectedIndexChanged += new System.EventHandler(this.CbbMouseKeyShow_SelectedIndexChanged);
//
// ChkHideAfterRun
//
this.ChkHideAfterRun.AutoSize = true;
@ -161,49 +199,11 @@
this.label1.TabIndex = 3;
this.label1.Text = "显示主界面快捷键";
//
// CbbMouseKeyShow
//
this.CbbMouseKeyShow.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.CbbMouseKeyShow.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CbbMouseKeyShow.Enabled = false;
this.CbbMouseKeyShow.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CbbMouseKeyShow.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.CbbMouseKeyShow.FormattingEnabled = true;
this.CbbMouseKeyShow.Items.AddRange(new object[] {
"中键",
"侧键1",
"侧键2"});
this.CbbMouseKeyShow.Location = new System.Drawing.Point(80, 62);
this.CbbMouseKeyShow.Name = "CbbMouseKeyShow";
this.CbbMouseKeyShow.Size = new System.Drawing.Size(121, 24);
this.CbbMouseKeyShow.TabIndex = 8;
this.CbbMouseKeyShow.SelectedIndexChanged += new System.EventHandler(this.CbbMouseKeyShow_SelectedIndexChanged);
//
// ChkMouseKey
//
this.ChkMouseKey.AutoSize = true;
this.ChkMouseKey.Location = new System.Drawing.Point(8, 66);
this.ChkMouseKey.Name = "ChkMouseKey";
this.ChkMouseKey.Size = new System.Drawing.Size(72, 16);
this.ChkMouseKey.TabIndex = 9;
this.ChkMouseKey.Text = "双击鼠标";
this.ChkMouseKey.UseVisualStyleBackColor = true;
this.ChkMouseKey.CheckedChanged += new System.EventHandler(this.ChkMouseKey_CheckedChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(208, 68);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 12);
this.label2.TabIndex = 10;
this.label2.Text = "显示主界面";
//
// FrmSetting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(630, 502);
this.ClientSize = new System.Drawing.Size(577, 504);
this.Controls.Add(this.chromeTabControl1);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);

View File

@ -11,7 +11,7 @@ using System.Windows.Forms;
namespace VSoft.Config
{
public partial class FrmSetting : Form
public partial class FrmSetting : Skins.SKinForm
{
public FrmSetting()
{

View File

@ -30,81 +30,86 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAbout));
this.pnlTopLogo = new System.Windows.Forms.Panel();
this.lblTitle = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lblVisitUrl = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.LblQQ_Qun = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label3 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.pnlTopLogo.SuspendLayout();
this.lblVisitUrl = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.pnlTopLogo = new System.Windows.Forms.Panel();
this.lblTitle = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.pnlTopLogo.SuspendLayout();
this.SuspendLayout();
//
// pnlTopLogo
//
this.pnlTopLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(125)))), ((int)(((byte)(182)))));
this.pnlTopLogo.Controls.Add(this.lblTitle);
this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlTopLogo.Location = new System.Drawing.Point(0, 0);
this.pnlTopLogo.Name = "pnlTopLogo";
this.pnlTopLogo.Size = new System.Drawing.Size(493, 59);
this.pnlTopLogo.TabIndex = 8;
//
// lblTitle
//
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTitle.ForeColor = System.Drawing.Color.White;
this.lblTitle.Location = new System.Drawing.Point(12, 22);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(110, 16);
this.lblTitle.TabIndex = 0;
this.lblTitle.Text = "睿元管理系统";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 67);
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Location = new System.Drawing.Point(12, 96);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 12);
this.label1.TabIndex = 9;
this.label1.TabIndex = 10;
this.label1.Text = "官网:";
//
// label2
// label7
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(53, 67);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(0, 12);
this.label2.TabIndex = 10;
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label7.AutoSize = true;
this.label7.BackColor = System.Drawing.Color.Transparent;
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.label7.Location = new System.Drawing.Point(13, 321);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(467, 12);
this.label7.TabIndex = 20;
this.label7.Text = "注:本软件使用了Newtonsoft.Json、Gdu.WinformUI、System.Data.SQLite等第三方组件";
//
// lblVisitUrl
// label6
//
this.lblVisitUrl.AutoSize = true;
this.lblVisitUrl.Cursor = System.Windows.Forms.Cursors.Hand;
this.lblVisitUrl.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblVisitUrl.ForeColor = System.Drawing.Color.Blue;
this.lblVisitUrl.Location = new System.Drawing.Point(53, 67);
this.lblVisitUrl.Name = "lblVisitUrl";
this.lblVisitUrl.Size = new System.Drawing.Size(77, 12);
this.lblVisitUrl.TabIndex = 11;
this.lblVisitUrl.Text = "立即访问官网";
this.lblVisitUrl.Click += new System.EventHandler(this.LblVisitUrl_Click);
this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(100, 125);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(285, 12);
this.label6.TabIndex = 19;
this.label6.Text = "支持微信或支付宝进行捐助,您可以捐助任意金额";
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.label3.Location = new System.Drawing.Point(12, 343);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(365, 12);
this.label3.TabIndex = 18;
this.label3.Text = "注:本软件永久免费,您可以任意分发分享本软件,但不得破解本软件";
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(85, 140);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(319, 174);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox1.TabIndex = 17;
this.pictureBox1.TabStop = false;
//
// LblQQ_Qun
//
this.LblQQ_Qun.AutoSize = true;
this.LblQQ_Qun.BackColor = System.Drawing.Color.Transparent;
this.LblQQ_Qun.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblQQ_Qun.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblQQ_Qun.ForeColor = System.Drawing.Color.Blue;
this.LblQQ_Qun.Location = new System.Drawing.Point(234, 67);
this.LblQQ_Qun.Location = new System.Drawing.Point(218, 96);
this.LblQQ_Qun.Name = "LblQQ_Qun";
this.LblQQ_Qun.Size = new System.Drawing.Size(59, 12);
this.LblQQ_Qun.TabIndex = 14;
@ -123,58 +128,64 @@
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(193, 67);
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Location = new System.Drawing.Point(177, 96);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(35, 12);
this.label5.TabIndex = 12;
this.label5.Text = "QQ群:";
//
// pictureBox1
// lblVisitUrl
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(85, 105);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(319, 174);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox1.TabIndex = 17;
this.pictureBox1.TabStop = false;
this.lblVisitUrl.AutoSize = true;
this.lblVisitUrl.BackColor = System.Drawing.Color.Transparent;
this.lblVisitUrl.Cursor = System.Windows.Forms.Cursors.Hand;
this.lblVisitUrl.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblVisitUrl.ForeColor = System.Drawing.Color.Blue;
this.lblVisitUrl.Location = new System.Drawing.Point(53, 96);
this.lblVisitUrl.Name = "lblVisitUrl";
this.lblVisitUrl.Size = new System.Drawing.Size(77, 12);
this.lblVisitUrl.TabIndex = 11;
this.lblVisitUrl.Text = "立即访问官网";
this.lblVisitUrl.Click += new System.EventHandler(this.LblVisitUrl_Click);
//
// label3
// label2
//
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.label3.Location = new System.Drawing.Point(12, 322);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(365, 12);
this.label3.TabIndex = 18;
this.label3.Text = "注:本软件永久免费,您可以任意分发分享本软件,但不得破解本软件";
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(53, 67);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(0, 12);
this.label2.TabIndex = 10;
//
// label6
// pnlTopLogo
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(100, 90);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(285, 12);
this.label6.TabIndex = 19;
this.label6.Text = "支持微信或支付宝进行捐助,您可以捐助任意金额";
this.pnlTopLogo.BackColor = System.Drawing.Color.Teal;
this.pnlTopLogo.Controls.Add(this.lblTitle);
this.pnlTopLogo.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlTopLogo.Location = new System.Drawing.Point(1, 27);
this.pnlTopLogo.Name = "pnlTopLogo";
this.pnlTopLogo.Size = new System.Drawing.Size(491, 59);
this.pnlTopLogo.TabIndex = 8;
//
// label7
// lblTitle
//
this.label7.AutoSize = true;
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.label7.Location = new System.Drawing.Point(13, 300);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(311, 12);
this.label7.TabIndex = 20;
this.label7.Text = "注:本软件使用了Newtonsoft.Json、Gdu.WinformUI等组件";
this.lblTitle.AutoSize = true;
this.lblTitle.BackColor = System.Drawing.Color.Transparent;
this.lblTitle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTitle.ForeColor = System.Drawing.Color.White;
this.lblTitle.Location = new System.Drawing.Point(12, 22);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(110, 16);
this.lblTitle.TabIndex = 0;
this.lblTitle.Text = "睿元管理系统";
//
// FrmAbout
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(493, 343);
this.ClientSize = new System.Drawing.Size(493, 362);
this.Controls.Add(this.label1);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label3);
@ -184,7 +195,6 @@
this.Controls.Add(this.label5);
this.Controls.Add(this.lblVisitUrl);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pnlTopLogo);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
@ -193,9 +203,9 @@
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "关于";
this.Load += new System.EventHandler(this.FrmAbout_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.pnlTopLogo.ResumeLayout(false);
this.pnlTopLogo.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -205,7 +215,6 @@
private System.Windows.Forms.Panel pnlTopLogo;
private System.Windows.Forms.Label lblTitle;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lblVisitUrl;
private System.Windows.Forms.Label LblQQ_Qun;
@ -216,5 +225,6 @@
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label1;
}
}

View File

@ -10,7 +10,7 @@ using VSoft.Config;
namespace VSoft
{
public partial class FrmAbout : Form
public partial class FrmAbout : Skins.SKinForm
{
public FrmAbout()
{
@ -39,7 +39,7 @@ namespace VSoft
try
{
Clipboard.SetText(LblQQ_Qun.Text);
MessageBox.Show("已成功复制到剪切板,请复制到QQ搜索。","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
Prams.Msg.ShowMsg("已成功复制到剪切板,请复制到QQ搜索。","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
catch { }
}

View File

@ -41,7 +41,7 @@
//
this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnCancel.Location = new System.Drawing.Point(264, 117);
this.BtnCancel.Location = new System.Drawing.Point(264, 131);
this.BtnCancel.Name = "BtnCancel";
this.BtnCancel.Size = new System.Drawing.Size(75, 27);
this.BtnCancel.TabIndex = 10;
@ -53,7 +53,7 @@
//
this.BtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnOK.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnOK.Location = new System.Drawing.Point(183, 117);
this.BtnOK.Location = new System.Drawing.Point(183, 131);
this.BtnOK.Name = "BtnOK";
this.BtnOK.Size = new System.Drawing.Size(75, 27);
this.BtnOK.TabIndex = 9;
@ -64,7 +64,7 @@
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Location = new System.Drawing.Point(12, 31);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12);
this.label1.TabIndex = 12;
@ -74,7 +74,7 @@
//
this.TxtName.BackColor = System.Drawing.Color.White;
this.TxtName.EmptyText = "";
this.TxtName.Location = new System.Drawing.Point(12, 29);
this.TxtName.Location = new System.Drawing.Point(12, 51);
this.TxtName.MaxLength = 999999999;
this.TxtName.Multiline = false;
this.TxtName.Name = "TxtName";
@ -93,7 +93,7 @@
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 57);
this.label2.Location = new System.Drawing.Point(12, 79);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 12);
this.label2.TabIndex = 14;
@ -103,7 +103,7 @@
//
this.TxtDes.BackColor = System.Drawing.Color.White;
this.TxtDes.EmptyText = "";
this.TxtDes.Location = new System.Drawing.Point(12, 77);
this.TxtDes.Location = new System.Drawing.Point(12, 99);
this.TxtDes.MaxLength = 999999999;
this.TxtDes.Multiline = false;
this.TxtDes.Name = "TxtDes";
@ -123,7 +123,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(350, 156);
this.ClientSize = new System.Drawing.Size(350, 165);
this.Controls.Add(this.label2);
this.Controls.Add(this.TxtDes);
this.Controls.Add(this.label1);

View File

@ -11,7 +11,7 @@ using VSoft.Prams;
namespace VSoft
{
public partial class FrmAddColumn : Form
public partial class FrmAddColumn : Skins.SKinForm
{
public string SQLConnStr { get; set; } = Itrycn_Db.SQLConnStr;
public FrmAddColumn()
@ -50,7 +50,7 @@ namespace VSoft
{
if (TxtName.Text.Length == 0)
{
MessageBox.Show("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
RyQuickSQL mySQL = new RyQuickSQL(tableName);

View File

@ -30,14 +30,17 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAddSoft));
this.label1 = new System.Windows.Forms.Label();
this.PicImg = new System.Windows.Forms.PictureBox();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.使ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.label4 = new System.Windows.Forms.Label();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.of_File = new System.Windows.Forms.OpenFileDialog();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.TxtCmdId = new ryControls.TextBoxEx2();
this.label6 = new System.Windows.Forms.Label();
this.LblCustomImg = new System.Windows.Forms.Label();
this.TxtDes = new ryControls.TextBoxEx2();
this.label4 = new System.Windows.Forms.Label();
this.chromeTabControl1 = new ryControls.ChromeTabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.ChkRunAsAdmin = new System.Windows.Forms.CheckBox();
@ -50,40 +53,15 @@
this.TxtRunPram = new ryControls.TextBoxEx2();
this.BtnCancel = new ryControls.ButtonEx();
this.BtnOK = new ryControls.ButtonEx();
this.PicImg = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.TxtName = new ryControls.TextBoxEx2();
this.LblCustomImg = new System.Windows.Forms.Label();
this.of_File = new System.Windows.Forms.OpenFileDialog();
this.label6 = new System.Windows.Forms.Label();
this.TxtCmdId = new ryControls.TextBoxEx2();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
((System.ComponentModel.ISupportInitialize)(this.PicImg)).BeginInit();
this.contextMenuStrip1.SuspendLayout();
this.chromeTabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.PicImg)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(10, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 1;
this.label1.Text = "软件名";
//
// PicImg
//
this.PicImg.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.PicImg.ContextMenuStrip = this.contextMenuStrip1;
this.PicImg.Cursor = System.Windows.Forms.Cursors.Hand;
this.PicImg.Location = new System.Drawing.Point(476, 12);
this.PicImg.Name = "PicImg";
this.PicImg.Size = new System.Drawing.Size(86, 86);
this.PicImg.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.PicImg.TabIndex = 6;
this.PicImg.TabStop = false;
this.PicImg.Click += new System.EventHandler(this.PicImg_Click);
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -106,26 +84,64 @@
this.使ToolStripMenuItem.Text = "使用当前应用图标";
this.使ToolStripMenuItem.Click += new System.EventHandler(this.使ToolStripMenuItem_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(12, 41);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 12);
this.label4.TabIndex = 10;
this.label4.Text = "备注";
//
// openFileDialog1
//
this.openFileDialog1.Filter = "图片文件|*.jpg;*.gif;*.bmp;*.png;*.jpeg;*.ico|应用程序|*.exe";
//
// of_File
//
this.of_File.Filter = "所有文件|*.*";
//
// TxtCmdId
//
this.TxtCmdId.BackColor = System.Drawing.Color.White;
this.TxtCmdId.EmptyText = "默认为空";
this.TxtCmdId.Location = new System.Drawing.Point(310, 35);
this.TxtCmdId.MaxLength = 999999999;
this.TxtCmdId.Multiline = false;
this.TxtCmdId.Name = "TxtCmdId";
this.TxtCmdId.OnlyNumeric = false;
this.TxtCmdId.PasswordChar = '\0';
this.TxtCmdId.ReadOnly = false;
this.TxtCmdId.SelectedText = "";
this.TxtCmdId.SelectionLength = 0;
this.TxtCmdId.SelectionStart = 0;
this.TxtCmdId.Size = new System.Drawing.Size(133, 22);
this.TxtCmdId.TabIndex = 14;
this.TxtCmdId.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.TxtCmdId.ToolTip = "当输入了唯一命令ID后用户可以根据该ID来运行当前软件\r\n或执行当前命令。\r\n\r\n*.命令ID只支持英文和数字字符";
this.TxtCmdId.WordWrap = true;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(239, 40);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(65, 12);
this.label6.TabIndex = 13;
this.label6.Text = "唯一命令ID";
//
// LblCustomImg
//
this.LblCustomImg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LblCustomImg.BackColor = System.Drawing.Color.Transparent;
this.LblCustomImg.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.LblCustomImg.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblCustomImg.ForeColor = System.Drawing.Color.DodgerBlue;
this.LblCustomImg.Location = new System.Drawing.Point(448, 125);
this.LblCustomImg.Name = "LblCustomImg";
this.LblCustomImg.Size = new System.Drawing.Size(86, 18);
this.LblCustomImg.TabIndex = 12;
this.LblCustomImg.Text = "自动获取";
this.LblCustomImg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// TxtDes
//
this.TxtDes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtDes.BackColor = System.Drawing.Color.White;
this.TxtDes.EmptyText = "";
this.TxtDes.Location = new System.Drawing.Point(57, 41);
this.TxtDes.Location = new System.Drawing.Point(57, 65);
this.TxtDes.MaxLength = 999999999;
this.TxtDes.Multiline = true;
this.TxtDes.Name = "TxtDes";
@ -135,12 +151,21 @@
this.TxtDes.SelectedText = "";
this.TxtDes.SelectionLength = 0;
this.TxtDes.SelectionStart = 0;
this.TxtDes.Size = new System.Drawing.Size(413, 80);
this.TxtDes.Size = new System.Drawing.Size(385, 80);
this.TxtDes.TabIndex = 11;
this.TxtDes.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.TxtDes.ToolTip = "";
this.TxtDes.WordWrap = true;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(12, 65);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 12);
this.label4.TabIndex = 10;
this.label4.Text = "备注";
//
// chromeTabControl1
//
this.chromeTabControl1.AllowDragTab = false;
@ -151,12 +176,12 @@
this.chromeTabControl1.Controls.Add(this.tabPage1);
this.chromeTabControl1.Cursor = System.Windows.Forms.Cursors.Default;
this.chromeTabControl1.ItemSize = new System.Drawing.Size(100, 25);
this.chromeTabControl1.Location = new System.Drawing.Point(12, 127);
this.chromeTabControl1.Location = new System.Drawing.Point(12, 155);
this.chromeTabControl1.Name = "chromeTabControl1";
this.chromeTabControl1.SelectedIndex = 0;
this.chromeTabControl1.ShowAddButton = false;
this.chromeTabControl1.ShowCloseButton = false;
this.chromeTabControl1.Size = new System.Drawing.Size(551, 355);
this.chromeTabControl1.Size = new System.Drawing.Size(522, 306);
this.chromeTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.chromeTabControl1.TabContextMenuStrip = null;
this.chromeTabControl1.TabIndex = 9;
@ -175,7 +200,7 @@
this.tabPage1.Location = new System.Drawing.Point(1, 29);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(549, 325);
this.tabPage1.Size = new System.Drawing.Size(520, 276);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "运行";
this.tabPage1.UseVisualStyleBackColor = true;
@ -293,7 +318,7 @@
//
this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnCancel.Location = new System.Drawing.Point(488, 488);
this.BtnCancel.Location = new System.Drawing.Point(458, 467);
this.BtnCancel.Name = "BtnCancel";
this.BtnCancel.Size = new System.Drawing.Size(75, 27);
this.BtnCancel.TabIndex = 8;
@ -305,7 +330,7 @@
//
this.BtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnOK.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnOK.Location = new System.Drawing.Point(407, 488);
this.BtnOK.Location = new System.Drawing.Point(377, 467);
this.BtnOK.Name = "BtnOK";
this.BtnOK.Size = new System.Drawing.Size(75, 27);
this.BtnOK.TabIndex = 7;
@ -313,11 +338,34 @@
this.BtnOK.UseVisualStyleBackColor = true;
this.BtnOK.Click += new System.EventHandler(this.BtnOK_Click);
//
// PicImg
//
this.PicImg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.PicImg.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.PicImg.ContextMenuStrip = this.contextMenuStrip1;
this.PicImg.Cursor = System.Windows.Forms.Cursors.Hand;
this.PicImg.Location = new System.Drawing.Point(448, 36);
this.PicImg.Name = "PicImg";
this.PicImg.Size = new System.Drawing.Size(86, 86);
this.PicImg.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.PicImg.TabIndex = 6;
this.PicImg.TabStop = false;
this.PicImg.Click += new System.EventHandler(this.PicImg_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(10, 40);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 1;
this.label1.Text = "软件名";
//
// TxtName
//
this.TxtName.BackColor = System.Drawing.Color.White;
this.TxtName.EmptyText = "";
this.TxtName.Location = new System.Drawing.Point(57, 11);
this.TxtName.Location = new System.Drawing.Point(57, 35);
this.TxtName.MaxLength = 999999999;
this.TxtName.Multiline = false;
this.TxtName.Name = "TxtName";
@ -327,64 +375,17 @@
this.TxtName.SelectedText = "";
this.TxtName.SelectionLength = 0;
this.TxtName.SelectionStart = 0;
this.TxtName.Size = new System.Drawing.Size(203, 22);
this.TxtName.Size = new System.Drawing.Size(175, 22);
this.TxtName.TabIndex = 0;
this.TxtName.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.TxtName.ToolTip = "";
this.TxtName.WordWrap = true;
//
// LblCustomImg
//
this.LblCustomImg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LblCustomImg.BackColor = System.Drawing.Color.Transparent;
this.LblCustomImg.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.LblCustomImg.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblCustomImg.ForeColor = System.Drawing.Color.DodgerBlue;
this.LblCustomImg.Location = new System.Drawing.Point(476, 101);
this.LblCustomImg.Name = "LblCustomImg";
this.LblCustomImg.Size = new System.Drawing.Size(86, 18);
this.LblCustomImg.TabIndex = 12;
this.LblCustomImg.Text = "自动获取";
this.LblCustomImg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// of_File
//
this.of_File.Filter = "所有文件|*.*";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(266, 16);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(65, 12);
this.label6.TabIndex = 13;
this.label6.Text = "唯一命令ID";
//
// TxtCmdId
//
this.TxtCmdId.BackColor = System.Drawing.Color.White;
this.TxtCmdId.EmptyText = "默认为空";
this.TxtCmdId.Location = new System.Drawing.Point(337, 11);
this.TxtCmdId.MaxLength = 999999999;
this.TxtCmdId.Multiline = false;
this.TxtCmdId.Name = "TxtCmdId";
this.TxtCmdId.OnlyNumeric = false;
this.TxtCmdId.PasswordChar = '\0';
this.TxtCmdId.ReadOnly = false;
this.TxtCmdId.SelectedText = "";
this.TxtCmdId.SelectionLength = 0;
this.TxtCmdId.SelectionStart = 0;
this.TxtCmdId.Size = new System.Drawing.Size(133, 22);
this.TxtCmdId.TabIndex = 14;
this.TxtCmdId.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.TxtCmdId.ToolTip = "当输入了唯一命令ID后用户可以根据该ID来运行当前软件\r\n或执行当前命令。\r\n\r\n*.命令ID只支持英文和数字字符";
this.TxtCmdId.WordWrap = true;
//
// FrmAddSoft
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(575, 527);
this.ClientSize = new System.Drawing.Size(543, 506);
this.Controls.Add(this.TxtCmdId);
this.Controls.Add(this.label6);
this.Controls.Add(this.LblCustomImg);
@ -398,14 +399,17 @@
this.Controls.Add(this.TxtName);
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)))));
this.ShadowWidth = 0;
this.ShowShadow = true;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "添加软件";
this.Load += new System.EventHandler(this.FrmAddSoft_Load);
((System.ComponentModel.ISupportInitialize)(this.PicImg)).EndInit();
this.contextMenuStrip1.ResumeLayout(false);
this.chromeTabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.PicImg)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

View File

@ -9,10 +9,11 @@ using System.Linq;
using System.Text;
using System.Windows.Forms;
using VSoft.Prams;
using VSoft.Skins;
namespace VSoft
{
public partial class FrmAddSoft : Form
public partial class FrmAddSoft : SKinForm
{
public string SQLConnStr { get; set; } = Itrycn_Db.SQLConnStr;
public FrmAddSoft()
@ -87,12 +88,12 @@ namespace VSoft
{
if (TxtName.Text.Length == 0)
{
MessageBox.Show("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (TxtCmdId.Text.Length> 0 && !TxtCmdId.Text.Replace("_","").IsEngOrNum())
{
MessageBox.Show("命令ID只支持英文和数字字符。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("命令ID只支持英文和数字字符。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (IconPath.Length>0 && IconPath.IndexOfEx("<app>")!=0 && IconPath!=TxtPath.Text)
@ -119,7 +120,7 @@ namespace VSoft
var ds = db.ReadData("select * from " + tableName + " where CmdId='" + TxtCmdId.Text + "' and id<>" + SelectId + " limit 1");
if (mydb.HaveData(ds))
{
MessageBox.Show("当前命令ID已经存在,请更换命令ID。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前命令ID已经存在,请更换命令ID。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
ds.Dispose(); return;
}
ds.Dispose();

View File

@ -29,71 +29,18 @@
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAddType));
this.BtnCancel = new ryControls.ButtonEx();
this.BtnOK = new ryControls.ButtonEx();
this.label1 = new System.Windows.Forms.Label();
this.TxtName = new ryControls.TextBoxEx2();
this.label2 = new System.Windows.Forms.Label();
this.TxtDes = new ryControls.TextBoxEx2();
this.label1 = new System.Windows.Forms.Label();
this.TxtName = new ryControls.TextBoxEx2();
this.BtnCancel = new ryControls.ButtonEx();
this.BtnOK = new ryControls.ButtonEx();
this.SuspendLayout();
//
// BtnCancel
//
this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnCancel.Location = new System.Drawing.Point(264, 116);
this.BtnCancel.Name = "BtnCancel";
this.BtnCancel.Size = new System.Drawing.Size(75, 27);
this.BtnCancel.TabIndex = 10;
this.BtnCancel.Text = "取消";
this.BtnCancel.UseVisualStyleBackColor = true;
this.BtnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
//
// BtnOK
//
this.BtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnOK.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnOK.Location = new System.Drawing.Point(183, 116);
this.BtnOK.Name = "BtnOK";
this.BtnOK.Size = new System.Drawing.Size(75, 27);
this.BtnOK.TabIndex = 9;
this.BtnOK.Text = "确定";
this.BtnOK.UseVisualStyleBackColor = true;
this.BtnOK.Click += new System.EventHandler(this.BtnOK_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12);
this.label1.TabIndex = 12;
this.label1.Text = "名称";
//
// TxtName
//
this.TxtName.BackColor = System.Drawing.Color.White;
this.TxtName.EmptyText = "";
this.TxtName.Location = new System.Drawing.Point(12, 29);
this.TxtName.MaxLength = 999999999;
this.TxtName.Multiline = false;
this.TxtName.Name = "TxtName";
this.TxtName.OnlyNumeric = false;
this.TxtName.PasswordChar = '\0';
this.TxtName.ReadOnly = false;
this.TxtName.SelectedText = "";
this.TxtName.SelectionLength = 0;
this.TxtName.SelectionStart = 0;
this.TxtName.Size = new System.Drawing.Size(327, 22);
this.TxtName.TabIndex = 11;
this.TxtName.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.TxtName.ToolTip = "";
this.TxtName.WordWrap = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 56);
this.label2.Location = new System.Drawing.Point(12, 81);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 12);
this.label2.TabIndex = 16;
@ -103,7 +50,7 @@
//
this.TxtDes.BackColor = System.Drawing.Color.White;
this.TxtDes.EmptyText = "";
this.TxtDes.Location = new System.Drawing.Point(12, 76);
this.TxtDes.Location = new System.Drawing.Point(12, 101);
this.TxtDes.MaxLength = 999999999;
this.TxtDes.Multiline = false;
this.TxtDes.Name = "TxtDes";
@ -119,11 +66,64 @@
this.TxtDes.ToolTip = "";
this.TxtDes.WordWrap = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 34);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12);
this.label1.TabIndex = 12;
this.label1.Text = "名称";
//
// TxtName
//
this.TxtName.BackColor = System.Drawing.Color.White;
this.TxtName.EmptyText = "";
this.TxtName.Location = new System.Drawing.Point(12, 54);
this.TxtName.MaxLength = 999999999;
this.TxtName.Multiline = false;
this.TxtName.Name = "TxtName";
this.TxtName.OnlyNumeric = false;
this.TxtName.PasswordChar = '\0';
this.TxtName.ReadOnly = false;
this.TxtName.SelectedText = "";
this.TxtName.SelectionLength = 0;
this.TxtName.SelectionStart = 0;
this.TxtName.Size = new System.Drawing.Size(327, 22);
this.TxtName.TabIndex = 11;
this.TxtName.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.TxtName.ToolTip = "";
this.TxtName.WordWrap = true;
//
// BtnCancel
//
this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnCancel.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnCancel.Location = new System.Drawing.Point(264, 128);
this.BtnCancel.Name = "BtnCancel";
this.BtnCancel.Size = new System.Drawing.Size(75, 27);
this.BtnCancel.TabIndex = 10;
this.BtnCancel.Text = "取消";
this.BtnCancel.UseVisualStyleBackColor = true;
this.BtnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
//
// BtnOK
//
this.BtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnOK.BaseColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(76)))), ((int)(((byte)(95)))));
this.BtnOK.Location = new System.Drawing.Point(183, 128);
this.BtnOK.Name = "BtnOK";
this.BtnOK.Size = new System.Drawing.Size(75, 27);
this.BtnOK.TabIndex = 9;
this.BtnOK.Text = "确定";
this.BtnOK.UseVisualStyleBackColor = true;
this.BtnOK.Click += new System.EventHandler(this.BtnOK_Click);
//
// FrmAddType
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(350, 155);
this.ClientSize = new System.Drawing.Size(350, 162);
this.Controls.Add(this.label2);
this.Controls.Add(this.TxtDes);
this.Controls.Add(this.label1);

View File

@ -11,7 +11,7 @@ using VSoft.Prams;
namespace VSoft
{
public partial class FrmAddType : Form
public partial class FrmAddType : Skins.SKinForm
{
public string SQLConnStr { get; set; } = Itrycn_Db.SQLConnStr;
public FrmAddType()
@ -52,7 +52,7 @@ namespace VSoft
{
if (TxtName.Text.Length == 0)
{
MessageBox.Show("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("名称不能为空。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
RyQuickSQL mySQL = new RyQuickSQL(tableName);

View File

@ -293,12 +293,12 @@ namespace VSoft
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (TabList_Column.SelectedItems.Count == 0) { return; }
if (MessageBox.Show("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
if (Msg.ShowMsg("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
{
return;
}
if (TabList_Column.Items.Count ==1) {
MessageBox.Show("请至少保留一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("请至少保留一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
DataProvider mydb = new DataProvider();
@ -313,7 +313,7 @@ namespace VSoft
if (mydb.GetValue(ds) > 0)
{
ds.Dispose();
MessageBox.Show("当前栏目下还有分类,请先移除再删除栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前栏目下还有分类,请先移除再删除栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
db.Free();
return;
}
@ -365,7 +365,7 @@ namespace VSoft
{
if (TabList_Column.SelectedItems.Count == 0)
{
MessageBox.Show("请先选择一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("请先选择一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
var id = ((ColumnInfo)TabList_Column.SelectedItems[0].Tag).Id;
@ -404,17 +404,17 @@ namespace VSoft
{
if (TabList_Column.SelectedItems.Count == 0)
{
MessageBox.Show("请先选择一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("请先选择一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (TabList_Type.SelectedItems.Count == 0)
{
MessageBox.Show("请先选择一个分类。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("请先选择一个分类。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
var info = (ColumnInfo)TabList_Type.SelectedItems[0].Tag;
if (info.Id == 0) {
MessageBox.Show("默认分类不支持修改", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("默认分类不支持修改", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
FrmAddType frm = new FrmAddType
@ -434,7 +434,7 @@ namespace VSoft
private void Menu删除分类_Click(object sender, EventArgs e)
{
if (TabList_Type.SelectedItems.Count == 0) { return; }
if (MessageBox.Show("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
if (Msg.ShowMsg("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
{
return;
}
@ -442,7 +442,7 @@ namespace VSoft
var info2= (ColumnInfo)TabList_Type.SelectedItems[0].Tag;
var column_id = info2.Id;
if (column_id == 0) {
MessageBox.Show("默认分类不支持删除", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("默认分类不支持删除", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
DataProvider mydb = new DataProvider();
@ -455,7 +455,7 @@ namespace VSoft
if (mydb.GetValue(ds) > 0)
{
ds.Dispose();
MessageBox.Show("当前分类下还有软件,请先移除再删除分类。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前分类下还有软件,请先移除再删除分类。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
db.Free();
return;
}
@ -518,7 +518,7 @@ namespace VSoft
var ColumnId =GetCurColumnId();
if (ColumnId == 0)
{
MessageBox.Show("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
FrmAddSoft frm = new FrmAddSoft
@ -554,7 +554,7 @@ namespace VSoft
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (IconViewEx1.SelectedItems.Count == 0) { return; }
if (MessageBox.Show("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
if (Msg.ShowMsg("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
{
return;
}
@ -591,7 +591,7 @@ namespace VSoft
}
else
{
MessageBox.Show("没有找到文件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("没有找到文件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void IconViewEx1_KeyDown(object sender, KeyEventArgs e)
@ -704,7 +704,7 @@ namespace VSoft
var ColumnId = GetCurColumnId();
if(ColumnId==0)
{
MessageBox.Show("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
var path = ((string[])filedrop)[0];
@ -1106,7 +1106,7 @@ namespace VSoft
var ColumnId =GetCurColumnId();
if (ColumnId == 0)
{
MessageBox.Show("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
FrmAddSoft frm = new FrmAddSoft

View File

@ -30,6 +30,10 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmVSoft));
VSoft.Skins.ThemeForm themeForm1 = new VSoft.Skins.ThemeForm();
MGdu.WinFormUI.ButtonColorTable buttonColorTable1 = new MGdu.WinFormUI.ButtonColorTable();
MGdu.WinFormUI.ButtonColorTable buttonColorTable2 = new MGdu.WinFormUI.ButtonColorTable();
MGdu.WinFormUI.ButtonColorTable buttonColorTable3 = new MGdu.WinFormUI.ButtonColorTable();
this.MenuList = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
@ -48,7 +52,6 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.Menu修改分类 = new System.Windows.Forms.ToolStripMenuItem();
this.Menu删除分类 = new System.Windows.Forms.ToolStripMenuItem();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.LblDrag = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
@ -60,18 +63,17 @@
this.退ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.LblSetting = new System.Windows.Forms.Label();
this.PnlLeft = new System.Windows.Forms.Panel();
this.TabList_Type = new ryControls.TabList();
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.rySearch1 = new ryControls.rySearch();
this.panelEx1 = new ryControls.PanelEx();
this.LblEmpty = new System.Windows.Forms.Label();
this.IconViewEx1 = new ryControls.IconViewEx();
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.TabList_Type = new ryControls.TabList();
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.TabList_Column = new ryControls.TabList();
this.MenuList.SuspendLayout();
this.MenuTabColumn.SuspendLayout();
this.MenuTabType.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.MenuTray.SuspendLayout();
this.PnlLeft.SuspendLayout();
this.panelEx1.SuspendLayout();
@ -150,7 +152,7 @@
//
this.BtnAddColumn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnAddColumn.Image = ((System.Drawing.Image)(resources.GetObject("BtnAddColumn.Image")));
this.BtnAddColumn.Location = new System.Drawing.Point(682, 34);
this.BtnAddColumn.Location = new System.Drawing.Point(685, 35);
this.BtnAddColumn.Name = "BtnAddColumn";
this.BtnAddColumn.Size = new System.Drawing.Size(27, 28);
this.BtnAddColumn.TabIndex = 3;
@ -219,21 +221,10 @@
this.Menu删除分类.Text = "删除分类";
this.Menu删除分类.Click += new System.EventHandler(this.Menu删除分类_Click);
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(3, 2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(75, 60);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 5;
this.pictureBox1.TabStop = false;
//
// LblDrag
//
this.LblDrag.BackColor = System.Drawing.Color.Black;
this.LblDrag.Location = new System.Drawing.Point(716, 111);
this.LblDrag.Location = new System.Drawing.Point(123, 54);
this.LblDrag.Name = "LblDrag";
this.LblDrag.Size = new System.Drawing.Size(2, 89);
this.LblDrag.TabIndex = 6;
@ -295,10 +286,11 @@
//
this.LblSetting.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LblSetting.AutoSize = true;
this.LblSetting.BackColor = System.Drawing.Color.Transparent;
this.LblSetting.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblSetting.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblSetting.ForeColor = System.Drawing.Color.Blue;
this.LblSetting.Location = new System.Drawing.Point(681, 9);
this.LblSetting.ForeColor = System.Drawing.Color.White;
this.LblSetting.Location = new System.Drawing.Point(580, 9);
this.LblSetting.Name = "LblSetting";
this.LblSetting.Size = new System.Drawing.Size(29, 12);
this.LblSetting.TabIndex = 7;
@ -308,23 +300,66 @@
// PnlLeft
//
this.PnlLeft.BackColor = System.Drawing.Color.WhiteSmoke;
this.PnlLeft.Controls.Add(this.pictureBox1);
this.PnlLeft.Controls.Add(this.TabList_Type);
this.PnlLeft.Dock = System.Windows.Forms.DockStyle.Left;
this.PnlLeft.Location = new System.Drawing.Point(0, 0);
this.PnlLeft.Location = new System.Drawing.Point(2, 32);
this.PnlLeft.Name = "PnlLeft";
this.PnlLeft.Size = new System.Drawing.Size(81, 525);
this.PnlLeft.Size = new System.Drawing.Size(81, 497);
this.PnlLeft.TabIndex = 8;
//
// TabList_Type
//
this.TabList_Type.AllowDrop = true;
this.TabList_Type.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.TabList_Type.BackColor = System.Drawing.Color.WhiteSmoke;
this.TabList_Type.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.TabList_Type.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader2});
this.TabList_Type.ContextMenuStrip = this.MenuTabType;
this.TabList_Type.ForeColor = System.Drawing.Color.Black;
this.TabList_Type.HideSelection = false;
this.TabList_Type.Icon = null;
this.TabList_Type.IsDrawGridLines = false;
this.TabList_Type.IsDrawIcon = false;
this.TabList_Type.Location = new System.Drawing.Point(3, 33);
this.TabList_Type.Margin = new System.Windows.Forms.Padding(0);
this.TabList_Type.MultiSelect = false;
this.TabList_Type.Name = "TabList_Type";
this.TabList_Type.OwnerDraw = true;
this.TabList_Type.Scrollable = false;
this.TabList_Type.SelectedBorderColor = System.Drawing.Color.LightSkyBlue;
this.TabList_Type.SelectedEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(236)))), ((int)(((byte)(181)))));
this.TabList_Type.SelectedForeColor = System.Drawing.Color.Black;
this.TabList_Type.SelectedStartBackColor = System.Drawing.Color.LightSkyBlue;
this.TabList_Type.Size = new System.Drawing.Size(77, 394);
this.TabList_Type.TabIndex = 4;
this.TabList_Type.TileSize = new System.Drawing.Size(77, 28);
this.TabList_Type.UseCompatibleStateImageBehavior = false;
this.TabList_Type.View = System.Windows.Forms.View.Tile;
this.TabList_Type.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.TabList_Type_ItemDrag);
this.TabList_Type.SelectedIndexChanged += new System.EventHandler(this.TabList_Type_SelectedIndexChanged);
this.TabList_Type.DragDrop += new System.Windows.Forms.DragEventHandler(this.TabList_Type_DragDrop);
this.TabList_Type.DragEnter += new System.Windows.Forms.DragEventHandler(this.TabList_Type_DragEnter);
this.TabList_Type.DragOver += new System.Windows.Forms.DragEventHandler(this.IconViewEx1_DragOver);
this.TabList_Type.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TabList_Type_KeyDown);
//
// columnHeader2
//
this.columnHeader2.Width = 80;
//
// rySearch1
//
this.rySearch1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.rySearch1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(239)))), ((int)(((byte)(244)))));
this.rySearch1.BaseColor = System.Drawing.Color.Teal;
this.rySearch1.ButtonRoundBackColor = System.Drawing.SystemColors.Control;
this.rySearch1.ColorGradient = true;
this.rySearch1.EmptyText = "输入名称或拼音即可搜索";
this.rySearch1.Location = new System.Drawing.Point(87, 6);
this.rySearch1.Location = new System.Drawing.Point(509, 36);
this.rySearch1.Name = "rySearch1";
this.rySearch1.Size = new System.Drawing.Size(229, 27);
this.rySearch1.Size = new System.Drawing.Size(170, 27);
this.rySearch1.TabIndex = 2;
this.rySearch1.UseDefSkin = false;
this.rySearch1.OnSearch += new System.EventHandler(this.rySearch1_OnSearch);
@ -337,13 +372,14 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.panelEx1.BackColor = System.Drawing.Color.White;
this.panelEx1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(216)))), ((int)(((byte)(223)))));
this.panelEx1.Controls.Add(this.LblDrag);
this.panelEx1.Controls.Add(this.LblEmpty);
this.panelEx1.Controls.Add(this.IconViewEx1);
this.panelEx1.Location = new System.Drawing.Point(84, 65);
this.panelEx1.Name = "panelEx1";
this.panelEx1.Padding = new System.Windows.Forms.Padding(3);
this.panelEx1.RoundeStyle = ryControls.RoundStyle.None;
this.panelEx1.Size = new System.Drawing.Size(626, 448);
this.panelEx1.Size = new System.Drawing.Size(628, 462);
this.panelEx1.TabIndex = 1;
this.panelEx1.TileBackColor = System.Drawing.Color.White;
this.panelEx1.Resize += new System.EventHandler(this.panelEx1_Resize);
@ -384,7 +420,7 @@
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.Size = new System.Drawing.Size(620, 442);
this.IconViewEx1.Size = new System.Drawing.Size(622, 456);
this.IconViewEx1.TabIndex = 0;
this.IconViewEx1.TextHeight = 20;
this.IconViewEx1.TileSize = new System.Drawing.Size(100, 100);
@ -399,48 +435,6 @@
this.IconViewEx1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.IconViewEx1_MouseDoubleClick);
this.IconViewEx1.Resize += new System.EventHandler(this.IconViewEx1_Resize);
//
// TabList_Type
//
this.TabList_Type.AllowDrop = true;
this.TabList_Type.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.TabList_Type.BackColor = System.Drawing.Color.WhiteSmoke;
this.TabList_Type.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.TabList_Type.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader2});
this.TabList_Type.ContextMenuStrip = this.MenuTabType;
this.TabList_Type.ForeColor = System.Drawing.Color.Black;
this.TabList_Type.HideSelection = false;
this.TabList_Type.Icon = null;
this.TabList_Type.IsDrawGridLines = false;
this.TabList_Type.IsDrawIcon = false;
this.TabList_Type.Location = new System.Drawing.Point(3, 63);
this.TabList_Type.Margin = new System.Windows.Forms.Padding(0);
this.TabList_Type.MultiSelect = false;
this.TabList_Type.Name = "TabList_Type";
this.TabList_Type.OwnerDraw = true;
this.TabList_Type.Scrollable = false;
this.TabList_Type.SelectedBorderColor = System.Drawing.Color.LightSkyBlue;
this.TabList_Type.SelectedEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(236)))), ((int)(((byte)(181)))));
this.TabList_Type.SelectedForeColor = System.Drawing.Color.Black;
this.TabList_Type.SelectedStartBackColor = System.Drawing.Color.LightSkyBlue;
this.TabList_Type.Size = new System.Drawing.Size(77, 460);
this.TabList_Type.TabIndex = 4;
this.TabList_Type.TileSize = new System.Drawing.Size(77, 28);
this.TabList_Type.UseCompatibleStateImageBehavior = false;
this.TabList_Type.View = System.Windows.Forms.View.Tile;
this.TabList_Type.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.TabList_Type_ItemDrag);
this.TabList_Type.SelectedIndexChanged += new System.EventHandler(this.TabList_Type_SelectedIndexChanged);
this.TabList_Type.DragDrop += new System.Windows.Forms.DragEventHandler(this.TabList_Type_DragDrop);
this.TabList_Type.DragEnter += new System.Windows.Forms.DragEventHandler(this.TabList_Type_DragEnter);
this.TabList_Type.DragOver += new System.Windows.Forms.DragEventHandler(this.IconViewEx1_DragOver);
this.TabList_Type.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TabList_Type_KeyDown);
//
// columnHeader2
//
this.columnHeader2.Width = 80;
//
// TabList_Column
//
this.TabList_Column.Alignment = System.Windows.Forms.ListViewAlignment.Left;
@ -464,7 +458,7 @@
this.TabList_Column.SelectedEndBackColor = System.Drawing.Color.SkyBlue;
this.TabList_Column.SelectedForeColor = System.Drawing.Color.Black;
this.TabList_Column.SelectedStartBackColor = System.Drawing.Color.PowderBlue;
this.TabList_Column.Size = new System.Drawing.Size(589, 29);
this.TabList_Column.Size = new System.Drawing.Size(595, 29);
this.TabList_Column.TabIndex = 1;
this.TabList_Column.TileSize = new System.Drawing.Size(70, 30);
this.TabList_Column.UseCompatibleStateImageBehavior = false;
@ -480,19 +474,146 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.WhiteSmoke;
this.ClientSize = new System.Drawing.Size(722, 525);
this.BackColor = System.Drawing.Color.White;
this.BorderWidth = 2;
this.CaptionHeight = 30;
this.ClientSize = new System.Drawing.Size(717, 531);
this.ControlBoxOffset = new System.Drawing.Point(8, 8);
this.Controls.Add(this.rySearch1);
this.Controls.Add(this.PnlLeft);
this.Controls.Add(this.LblSetting);
this.Controls.Add(this.LblDrag);
this.Controls.Add(this.BtnAddColumn);
this.Controls.Add(this.TabList_Column);
this.Controls.Add(this.rySearch1);
this.Controls.Add(this.panelEx1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(160, 60);
this.Name = "FrmVSoft";
this.SideResizeWidth = 4;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "VSoft";
themeForm1.BorderWidth = 2;
themeForm1.CaptionBackColorBottom = System.Drawing.Color.White;
themeForm1.CaptionBackColorTop = System.Drawing.Color.White;
themeForm1.CaptionHeight = 30;
themeForm1.CaptionTextCenter = false;
themeForm1.CaptionTextColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(102)))), ((int)(((byte)(102)))));
themeForm1.CloseBoxBackImageHover = null;
themeForm1.CloseBoxBackImageNormal = null;
themeForm1.CloseBoxBackImagePressed = null;
buttonColorTable1.BackColorDisabled = System.Drawing.Color.Empty;
buttonColorTable1.BackColorHover = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(71)))), ((int)(((byte)(71)))));
buttonColorTable1.BackColorNormal = System.Drawing.Color.Empty;
buttonColorTable1.BackColorPressed = System.Drawing.Color.FromArgb(((int)(((byte)(188)))), ((int)(((byte)(52)))), ((int)(((byte)(52)))));
buttonColorTable1.BorderColorDisabled = System.Drawing.Color.Empty;
buttonColorTable1.BorderColorHover = System.Drawing.Color.Empty;
buttonColorTable1.BorderColorNormal = System.Drawing.Color.Empty;
buttonColorTable1.BorderColorPressed = System.Drawing.Color.Empty;
buttonColorTable1.ForeColorDisabled = System.Drawing.Color.Empty;
buttonColorTable1.ForeColorHover = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(240)))), ((int)(((byte)(223)))));
buttonColorTable1.ForeColorNormal = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(240)))), ((int)(((byte)(223)))));
buttonColorTable1.ForeColorPressed = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(240)))), ((int)(((byte)(223)))));
themeForm1.CloseBoxColor = buttonColorTable1;
themeForm1.CloseBoxSize = new System.Drawing.Size(30, 23);
themeForm1.ControlBoxOffset = new System.Drawing.Point(8, 8);
themeForm1.ControlBoxSpace = 2;
themeForm1.DrawCaptionIcon = true;
themeForm1.DrawCaptionText = true;
themeForm1.FormBackColor = System.Drawing.Color.White;
themeForm1.FormBorderInmostColor = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248)))));
themeForm1.FormBorderInnerColor = System.Drawing.Color.White;
themeForm1.FormBorderOutterColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(144)))), ((int)(((byte)(198)))));
themeForm1.IconLeftMargin = 2;
themeForm1.IconSize = new System.Drawing.Size(16, 16);
themeForm1.MaxBoxBackImageHover = null;
themeForm1.MaxBoxBackImageNormal = null;
themeForm1.MaxBoxBackImagePressed = null;
buttonColorTable2.BackColorDisabled = System.Drawing.Color.Empty;
buttonColorTable2.BackColorHover = System.Drawing.Color.FromArgb(((int)(((byte)(67)))), ((int)(((byte)(139)))), ((int)(((byte)(221)))));
buttonColorTable2.BackColorNormal = System.Drawing.Color.Empty;
buttonColorTable2.BackColorPressed = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(125)))), ((int)(((byte)(210)))));
buttonColorTable2.BorderColorDisabled = System.Drawing.Color.Empty;
buttonColorTable2.BorderColorHover = System.Drawing.Color.Empty;
buttonColorTable2.BorderColorNormal = System.Drawing.Color.Empty;
buttonColorTable2.BorderColorPressed = System.Drawing.Color.Empty;
buttonColorTable2.ForeColorDisabled = System.Drawing.Color.Empty;
buttonColorTable2.ForeColorHover = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(240)))), ((int)(((byte)(223)))));
buttonColorTable2.ForeColorNormal = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(240)))), ((int)(((byte)(223)))));
buttonColorTable2.ForeColorPressed = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(240)))), ((int)(((byte)(223)))));
themeForm1.MaxBoxColor = buttonColorTable2;
themeForm1.MaxBoxSize = new System.Drawing.Size(30, 23);
themeForm1.Mdi_AlwaysShowListAllBtn = false;
themeForm1.Mdi_BarBackColor = System.Drawing.Color.LightSkyBlue;
themeForm1.Mdi_BarBorderColor = System.Drawing.Color.Red;
themeForm1.Mdi_BarBottomRegionBackColor = System.Drawing.Color.White;
themeForm1.Mdi_BarBottomRegionHeight = 3;
themeForm1.Mdi_BarLeftPadding = 3;
themeForm1.Mdi_BarMargin = new System.Windows.Forms.Padding(6, 38, 100, 0);
themeForm1.Mdi_BarRightPadding = 100;
themeForm1.Mdi_DrawBarBackground = false;
themeForm1.Mdi_DrawBarBorder = false;
themeForm1.Mdi_ListAllBtnAlign = MGdu.WinFormUI.BarButtonAlignmentType.Left;
themeForm1.Mdi_ListAllBtnBottomSpace = 7;
buttonColorTable3.BackColorDisabled = System.Drawing.Color.Empty;
buttonColorTable3.BackColorHover = System.Drawing.Color.White;
buttonColorTable3.BackColorNormal = System.Drawing.Color.Empty;
buttonColorTable3.BackColorPressed = System.Drawing.Color.WhiteSmoke;
buttonColorTable3.BorderColorDisabled = System.Drawing.Color.Empty;
buttonColorTable3.BorderColorHover = System.Drawing.Color.Empty;
buttonColorTable3.BorderColorNormal = System.Drawing.Color.Empty;
buttonColorTable3.BorderColorPressed = System.Drawing.Color.Empty;
buttonColorTable3.ForeColorDisabled = System.Drawing.Color.Empty;
buttonColorTable3.ForeColorHover = System.Drawing.Color.Gray;
buttonColorTable3.ForeColorNormal = System.Drawing.Color.Gray;
buttonColorTable3.ForeColorPressed = System.Drawing.Color.Gray;
themeForm1.Mdi_ListAllBtnColor = buttonColorTable3;
themeForm1.Mdi_ListAllBtnLeftSpace = 4;
themeForm1.Mdi_ListAllBtnSize = new System.Drawing.Size(36, 18);
themeForm1.Mdi_NewTabBtnBottomSpace = 1;
themeForm1.Mdi_NewTabBtnColor = buttonColorTable3;
themeForm1.Mdi_NewTabBtnLeftSpace = 4;
themeForm1.Mdi_NewTabBtnSize = new System.Drawing.Size(24, 24);
themeForm1.Mdi_ShowNewTabBtn = true;
themeForm1.Mdi_ShowTabCloseIcon = false;
themeForm1.Mdi_ShowTabIcon = true;
themeForm1.Mdi_TabActiveBackColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248)))));
themeForm1.Mdi_TabActiveBackColorTop = System.Drawing.Color.White;
themeForm1.Mdi_TabActiveForeColor = System.Drawing.Color.Black;
themeForm1.Mdi_TabAndTabSpace = -8;
themeForm1.Mdi_TabDeactiveBackColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
themeForm1.Mdi_TabDeactiveBackColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
themeForm1.Mdi_TabDeactiveForeColor = System.Drawing.Color.Black;
themeForm1.Mdi_TabHeight = 26;
themeForm1.Mdi_TabHeightActive = 26;
themeForm1.Mdi_TabInnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
themeForm1.Mdi_TabMaxWidth = 360;
themeForm1.Mdi_TabMinWidth = 90;
themeForm1.Mdi_TabNormalWidth = 180;
themeForm1.Mdi_TabOutterBorderColor = System.Drawing.Color.Gray;
themeForm1.Mdi_TabShowBorder = true;
themeForm1.Mdi_TabSlopeWidth = 8;
themeForm1.Mdi_TabTopSpace = 2;
themeForm1.Mdi_UseMsgToActivateChild = true;
themeForm1.MinBoxBackImageHover = null;
themeForm1.MinBoxBackImageNormal = null;
themeForm1.MinBoxBackImagePressed = null;
themeForm1.MinBoxColor = buttonColorTable2;
themeForm1.MinBoxSize = new System.Drawing.Size(30, 23);
themeForm1.Radius = 8;
themeForm1.ResBoxBackImageHover = null;
themeForm1.ResBoxBackImageNormal = null;
themeForm1.ResBoxBackImagePressed = null;
themeForm1.RoundedStyle = MGdu.WinFormUI.MyGraphics.RoundStyle.None;
themeForm1.SetClientInset = false;
themeForm1.ShadowAValueDark = 80;
themeForm1.ShadowAValueLight = 0;
themeForm1.ShadowColor = System.Drawing.Color.Black;
themeForm1.ShadowWidth = 1;
themeForm1.ShowShadow = false;
themeForm1.SideResizeWidth = 4;
themeForm1.TextLeftMargin = 2;
themeForm1.UseDefaultTopRoundingFormRegion = false;
themeForm1.UseShadowToResize = false;
this.XTheme = themeForm1;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmVSoft_FormClosing);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmVSoft_FormClosed);
this.Load += new System.EventHandler(this.FrmVSoft_Load);
@ -502,7 +623,6 @@
this.MenuList.ResumeLayout(false);
this.MenuTabColumn.ResumeLayout(false);
this.MenuTabType.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.MenuTray.ResumeLayout(false);
this.PnlLeft.ResumeLayout(false);
this.panelEx1.ResumeLayout(false);
@ -535,7 +655,6 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem Menu修改分类;
private System.Windows.Forms.ToolStripMenuItem Menu删除分类;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.Label LblDrag;
private System.Windows.Forms.Timer timer1;

View File

@ -13,10 +13,11 @@ using System.Text;
using System.Windows.Forms;
using VSoft.Config;
using VSoft.Prams;
using VSoft.Skins;
namespace VSoft
{
public partial class FrmVSoft : Form
public partial class FrmVSoft : SKinForm
{
string[] prog_args;
string SQLConnStr = Itrycn_Db.SQLConnStr;
@ -33,6 +34,11 @@ namespace VSoft
if (Config.Soft_Info.Soft_Url.Length == 0) { ToolStripMenuItem.PerformClick(); }
notifyIcon1.Icon = Icon;
var backcolor = SystemColors.Control;
TabList_Column.BackColor = backcolor;
TabList_Type.BackColor = backcolor;
//pictureBox1.BackColor = backcolor;
PnlLeft.BackColor = backcolor;
}
private void FrmVSoft_FormClosed(object sender, FormClosedEventArgs e)
{
@ -69,7 +75,7 @@ namespace VSoft
}
dt_lastMouse = DateTime.Now;
}
// MessageBox.Show(e.Button.ToString());
// Msg.ShowMsg(e.Button.ToString());
// e.Button == MouseButtons.Middle;
}
@ -272,7 +278,7 @@ namespace VSoft
else
{
db.Free();
MessageBox.Show("不支持当前数据库版本,这可能是以下原因导致的:\r\n1.数据库已损坏;'\r\n2.当前数据库是由新版软件创建的(请更新软件后重试)。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("不支持当前数据库版本,这可能是以下原因导致的:\r\n1.数据库已损坏;'\r\n2.当前数据库是由新版软件创建的(请更新软件后重试)。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Application.Exit();
return;
}
@ -284,7 +290,7 @@ namespace VSoft
//rySearch1.PerformClick();
//if(RySoft.IsAdministrator())
//{
// MessageBox.Show("管理员模式下启动本软件,可能会导致无法拖放图标到本软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
// Msg.ShowMsg("管理员模式下启动本软件,可能会导致无法拖放图标到本软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
//}
hotkey = new SysFuns.WinHotReg(Handle);
HotkeyValue hot = new HotkeyValue(Soft_Config.ShowMainHotKey);
@ -294,7 +300,7 @@ namespace VSoft
//如果开机启动没有启动
if(!ryCommon.RyRegedit.IsAutoRun(Soft_Info.Soft_Id, "\"" + Application.ExecutablePath.Replace("/", "\\") + "\" " + Soft_Info.Soft_Pram))
{
switch (MessageBox.Show("您暂未设置开机启动,下次开机后软件将无法自动运行。\r\n设置过程中可能会遇到安全软件提示,请选择允许。\r\n\r\n是否要设置开机启动", "开机启动", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2))
switch (Msg.ShowMsg("您暂未设置开机启动,下次开机后软件将无法自动运行。\r\n设置过程中可能会遇到安全软件提示,请选择允许。\r\n\r\n是否要设置开机启动", "开机启动", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2))
{
case DialogResult.Yes:
ryCommon.RyRegedit.SetAutoRun(true, Soft_Info.Soft_Id, "\"" + Application.ExecutablePath.Replace("/", "\\") + "\" " + Soft_Info.Soft_Pram);
@ -397,7 +403,7 @@ namespace VSoft
{
if(rySearch1.Text.Length==0)
{
MessageBox.Show("请输入内容。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("请输入内容。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
@ -466,12 +472,12 @@ namespace VSoft
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (TabList_Column.SelectedItems.Count == 0) { return; }
if (MessageBox.Show("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
if (Msg.ShowMsg("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
{
return;
}
if (TabList_Column.Items.Count ==1) {
MessageBox.Show("请至少保留一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("请至少保留一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
DataProvider mydb = new DataProvider();
@ -485,7 +491,7 @@ namespace VSoft
if (mydb.GetValue(ds) > 0)
{
ds.Dispose();
MessageBox.Show("当前栏目下还有分类,请先移除再删除栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前栏目下还有分类,请先移除再删除栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
db.Free();
return;
}
@ -534,7 +540,7 @@ namespace VSoft
{
if (TabList_Column.SelectedItems.Count == 0)
{
MessageBox.Show("请先选择一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("请先选择一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
var id = TabList_Column.SelectedItems[0].Tag.ToInt();
@ -564,17 +570,17 @@ namespace VSoft
{
if (TabList_Column.SelectedItems.Count == 0)
{
MessageBox.Show("请先选择一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("请先选择一个栏目。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (TabList_Type.SelectedItems.Count == 0)
{
MessageBox.Show("请先选择一个分类。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("请先选择一个分类。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
var id = TabList_Type.SelectedItems[0].Tag.ToInt();
if (id == 0) {
MessageBox.Show("默认分类不支持修改", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("默认分类不支持修改", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
FrmAddType frm = new FrmAddType();
@ -591,14 +597,14 @@ namespace VSoft
private void Menu删除分类_Click(object sender, EventArgs e)
{
if (TabList_Type.SelectedItems.Count == 0) { return; }
if (MessageBox.Show("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
if (Msg.ShowMsg("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
{
return;
}
if (TabList_Type.SelectedItems.Count == 0) { return; }
var column_id = TabList_Type.SelectedItems[0].Tag.ToInt();
if (column_id == 0) {
MessageBox.Show("默认分类不支持删除", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("默认分类不支持删除", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
DataProvider mydb = new DataProvider();
@ -611,7 +617,7 @@ namespace VSoft
if (mydb.GetValue(ds) > 0)
{
ds.Dispose();
MessageBox.Show("当前分类下还有软件,请先移除再删除分类。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前分类下还有软件,请先移除再删除分类。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
db.Free();
return;
}
@ -693,7 +699,7 @@ namespace VSoft
var ColumnId = GetCurColumnId();
if (ColumnId == 0)
{
MessageBox.Show("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
FrmAddSoft frm = new FrmAddSoft();
@ -723,7 +729,7 @@ namespace VSoft
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (IconViewEx1.SelectedItems.Count == 0) { return; }
if (MessageBox.Show("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
if (Msg.ShowMsg("确定要删除选定项吗?一旦删除将不可恢复。", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
{
return;
}
@ -763,7 +769,7 @@ namespace VSoft
}
else
{
MessageBox.Show("没有找到文件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("没有找到文件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void RunByListSelected(bool RunasAdmin)
@ -891,17 +897,69 @@ namespace VSoft
}
if(ColumnId<=0)
{
MessageBox.Show("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
var path = ((string[])filedrop)[0];
FrmAddSoft frm = new FrmAddSoft(path);
frm.ColumnId = ColumnId;
if (frm.ShowDialog() == DialogResult.OK)
var pram = "";
var StartPath = "";
var name = System.IO.Path.GetFileNameWithoutExtension(path);
IDbInterface db3 = Itrycn_Db.CreateDataProvider(Itrycn_Db.dataType);
if (db3.ConnDb(SQLConnStr) == 1)
{
LoadDb();
if (System.IO.Path.GetExtension(path).ToLower() == ".lnk")
{
var shortcut = API.ReadShortcut(path);
path = shortcut.TargetPath;
pram = shortcut.Arguments;
StartPath = shortcut.WorkDir;
}
else
{
path = RyFiles.GetRelativePath(path);
}
RyQuickSQL mySQL = new RyQuickSQL("Softs");
mySQL.AddField("Name", name);
mySQL.AddField("CmdId", "");
mySQL.AddField("Path", path);
mySQL.AddField("RunPram", pram);
mySQL.AddField("StartPath", StartPath);//起始路径
mySQL.AddField("IconPath", "");//图标路径
Json json = new Json("");
json.Add("RunAsAdmin", false);
mySQL.AddField("SetJson", json.Text);//设置
mySQL.AddField("Des", "");//备注
mySQL.AddField("Pinyin", ryCommon.PinYin.Convert(name) + "\r\n" + ryCommon.PinYin.ConvertFirstPY(name));
mySQL.AddField("editTime", DateTime.Now);
mySQL.AddField("SoftType", 0);//0表示运行文件,1表示执行快速命令,2表示执行脚本
mySQL.AddField("ClickCount", 0);//点击量
mySQL.AddField("ColumnId", ColumnId);
mySQL.AddField("sortindex", Itrycn_Db.GetSoftCount(db3, ColumnId) + 1);
mySQL.AddField("addTime", DateTime.Now);
var ds= db3.ReadData(mySQL.GetInsertSQL()+ ";select last_insert_rowid();", mySQL);
SoftInfo info = new SoftInfo();
info.Id = ds.Tables[0].Rows[0][0].ToInt();
info.SoftType =0;
info.ColumnId = ColumnId;
info.Name = name;
info.Path = path;
info.RunPram = pram;
info.SetJson = json.Text;
info.StartPath = StartPath;
info.IconPath ="";
string img_path = info.TruePath;
if (dictCacheImg.ContainsKey(img_path))
{
info.Image = dictCacheImg[img_path];
}
else
{
info.Image = API.GetImg(img_path, 128);
dictCacheImg.Add(img_path, info.Image);
}
IconViewEx1.Items.Add(info.Name).Tag = info;
}
frm.Dispose();
db3.Free();
return;
#endregion
}
@ -1216,7 +1274,7 @@ namespace VSoft
}
else
{
MessageBox.Show(Config.Soft_Info.AboutText.Replace("#softname#", Config.Soft_Info.Soft_Title).Replace("#ver#", "V" + RySoft.VersionStr), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg(Config.Soft_Info.AboutText.Replace("#softname#", Config.Soft_Info.Soft_Title).Replace("#ver#", "V" + RySoft.VersionStr), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
@ -1340,7 +1398,7 @@ namespace VSoft
}
if (ColumnId == 0)
{
MessageBox.Show("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Msg.ShowMsg("当前模式下不支持添加软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
FrmInCMD frm = new FrmInCMD();

View File

@ -158,32 +158,6 @@
<metadata name="MenuTabType.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>346, 17</value>
</metadata>
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAFAAAAA8CAYAAADxJz2MAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAu
IwAALiMBeKU/dgAABJxJREFUeF7tmM1tGzEQhX3OIYDvObkFt6ACcnELbkFIBVEJcQtqQYc0ICBpwC24
BeW9zcxiyB2Rsz/6WYMDfIA05JIzs49c7j6cTqfGDFxnI47rbMRxnY04rrMRx3U24rjORhzX2YjjOhtx
XGcjzk3ty5+fe3AAr15wa+BmxqKBk+GdPi/Ie+ZmhmIdTfHyQj57wd4jNzEUaGMK5tEKWDIUiPueVzhy
8AK9V65uKFBNfRsv0Hvl6oYCldT37gV5z2hSj2ALPiSR7f+WZQ3jPsn451jfUxhB28Ip/P8oeS9mGPPN
zJGzOvURJuUlQxZVIcb7dOojpQIuqkKM9enUR0oFJIuoEOPU1Lf1glsDNWUsokKMwX3WG590c3jBrYGQ
OqQOkwzX8wmfP6Qsq1Uf0SQvpkJc+2nVRzTJi6gQ19XUt/OCWhO9IZnFVYhrSuojT15Qa6I3JpMll7OT
rmHDNfw05Y1F3tjHC2pNJIakqoqRrlVD3/yDaU43lhfUmkgMSdX2rE41EUPfqvpoXlBrYmBIbrYK0aem
vmfp6ga1JgaG5GarEH3Ofa4nB+nWmRfUmnANSU5WIdqKH0y//v71/duPv3twEo7gIGyFV7ARFv8qdHFD
opNViLbi53opkBZvLKNPAjczJDtahfBVP9ejCHMKmCz/JQxjPoEd+ABHcc83JDtahfAVP9ezD4K0BeTv
R6DLlUuXPsJlrktb+4dPATXDWJzXbiXKRrrMNyQdViF/Z205r+yHAJMCdhffwDA3VWcLR6jCF+kyMLTZ
2PfiLhsSD53n+Dtrs3Tqo2FiG/isAuJ6T7k5bkHgt8p+B90NLhn6cDy9JrYakHz1TAdC6qNhYhv45AIy
ATNOjUER4bNxeO12ayEsHk8Meg2LHtuTUYCSCrnvhdRH46QmCAZlA1XV6P7HILUvldsfaYw/wuBGwWfj
GOx7pq2IdC8bilBTYYkkeExqAx9Lr5TMr4VXeDOsQr0Ccr/T9ssWkIZClFR4jsFnMEw6p4B9IaxfXImx
r+njFbC/HngFpOIZK+HNsOOR7kZJ97qhEFNU6AX+DOzd7/YSoEGqgrrg5L/27fYcthnfEgUMve1k1/Tv
82FDQcaocKC+KYZAB8XyfLnBnxQeJGoxbaFliH7cq0ddMzAUZIwKF3ntygMHVLAt4FG6Jga/LWCOXQGE
fckL4NiDGy/+/hpxjzcUJqrC6mevqCFge3xgojz36X/3KCH9tM9YvD3RFjA5WYwyFKb2vksmv3IhOL6b
MliiB2R7nOERxxaHbfxvoZLycyKXsR2nhFdAO+e8d3IUqPTOS1z1YWIWxyaqTzmrsBrsb5OJkCSM/yyw
tnFujUefvIMHhLTbMXkzpm1TKFBJhWfVhwnHJu7R7VEgqiaSJIr/No6QmtAv2QMVaR5vKBSL6HH2yYsJ
7d7lwc1dValLVWECvTLw2y51kr8Pq5oGKpF2nTO8HNGXc3DMPmb3M/WlwIR2CffJS3xXM5lfizA4I9YM
13AFcBvYuYlek1sYEqeSdAsYXcDEvKQacVxnI47rbMRxnY04rrMRx3U24rjORhzX2YhyevgH9KfBo50b
JekAAAAASUVORK5CYII=
</value>
</data>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>482, 17</value>
</metadata>

View File

@ -0,0 +1,87 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace VSoft.Prams
{
public static class Msg
{
/// <summary>
/// 显示对话框
/// </summary>
/// <param name="msgText"></param>
/// <param name="title"></param>
/// <returns></returns>
public static DialogResult ShowMsg(string msgText, string title)
{
return ShowMsg(msgText, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
/// <summary>
/// 显示对话框
/// </summary>
/// <param name="msgText"></param>
/// <param name="title"></param>
/// <param name="button"></param>
/// <returns></returns>
public static DialogResult ShowMsg(string msgText, string title, MessageBoxButtons button)
{
return ShowMsg(msgText, title, button, MessageBoxIcon.Information);
}
/// <summary>
/// 显示对话框
/// </summary>
/// <param name="msgText"></param>
/// <param name="title"></param>
/// <param name="button"></param>
/// <param name="Icon"></param>
/// <param name="defaultButton"></param>
/// <returns></returns>
public static DialogResult ShowMsg(string msgText, string title, MessageBoxButtons button, MessageBoxIcon Icon,MessageBoxDefaultButton defaultButton)
{
return ShowMsg(msgText, title, button, Icon);
}
/// <summary>
/// 显示对话框
/// </summary>
/// <param name="msgText"></param>
/// <param name="title"></param>
/// <param name="button"></param>
/// <param name="Icon"></param>
/// <returns></returns>
public static DialogResult ShowMsg(string msgText, string title, MessageBoxButtons button, MessageBoxIcon Icon)
{
Skins.FrmMessageBox frm = new Skins.FrmMessageBox
{
Text = title
};
frm.lblMsg.Text = msgText;
frm.lblMsg.UpdateInfo();
frm.ResultDg = button;
switch (button)
{
case MessageBoxButtons.OK:
frm.btnYes.Location = new System.Drawing.Point(frm.ClientSize.Width - frm.btnYes.Width - 8, frm.ClientSize.Height - frm.btnYes.Height - 8);
frm.btnCancel.Visible = false;
break;
case MessageBoxButtons.OKCancel:
case MessageBoxButtons.YesNo:
frm.btnCancel.Location = new System.Drawing.Point(frm.ClientSize.Width - frm.btnYes.Width - 8, frm.ClientSize.Height - frm.btnYes.Height - 8);
frm.btnYes.Location = new System.Drawing.Point(frm.btnCancel.Left - frm.btnYes.Width - 8, frm.btnCancel.Top);
break;
case MessageBoxButtons.RetryCancel:
frm.btnCancel.Location = new System.Drawing.Point(frm.ClientSize.Width - frm.btnYes.Width - 8, frm.ClientSize.Height - frm.btnYes.Height - 8);
frm.btnYes.Location = new System.Drawing.Point(frm.btnCancel.Left - frm.btnYes.Width - 8, frm.btnCancel.Top);
frm.btnYes.Text = "重试";
break;
default:
frm.btnYes.Location = new System.Drawing.Point(frm.ClientSize.Width - frm.btnYes.Width - 8, frm.ClientSize.Height - frm.btnYes.Height - 8);
frm.btnCancel.Visible = false;
break;
}
if (frm.Owner == null) { frm.StartPosition = FormStartPosition.CenterScreen; }
return frm.ShowDialog();
}
}
}

View File

@ -81,7 +81,7 @@ namespace VSoft.Prams
{
case "emptyrecyclebin"://清空回收站
switch (MessageBox.Show("是否确认要清空回收站?\r\n\r\n该操作不可逆", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2))
switch (Msg.ShowMsg("是否确认要清空回收站?\r\n\r\n该操作不可逆", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2))
{
case DialogResult.Yes:
SHEmptyRecycleBin(IntPtr.Zero, "", SHERB_NOCONFIRMATION + SHERB_NOPROGRESSUI + SHERB_NOSOUND);

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.2102.1301")]
[assembly: AssemblyFileVersion("1.0.2102.1301")]
[assembly: AssemblyVersion("1.0.2102.2701")]
[assembly: AssemblyFileVersion("1.0.2102.2701")]

View File

@ -0,0 +1,100 @@

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

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,48 @@

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

View File

@ -0,0 +1,29 @@
using MGdu.WinFormUI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace VSoft.Skins
{
public partial class SKinForm : GMForm
{
public SKinForm()
{
InitializeComponent();
}
public SKinForm(string[] args)
{
InitializeComponent();
}
private void SKinForm_Load(object sender, EventArgs e)
{
if (!this.DesignMode)
{ base.XTheme = new VSoft.Skins.ThemeForm(); }
}
}
}

View File

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

View File

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

View File

@ -109,7 +109,21 @@
<Compile Include="Prams\GlobalMouseHandler.cs" />
<Compile Include="Prams\Json.cs" />
<Compile Include="Prams\MouseHook.cs" />
<Compile Include="Prams\Msg.cs" />
<Compile Include="Prams\Run.cs" />
<Compile Include="Skins\FrmMessageBox.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Skins\FrmMessageBox.Designer.cs">
<DependentUpon>FrmMessageBox.cs</DependentUpon>
</Compile>
<Compile Include="Skins\SKinForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Skins\SKinForm.Designer.cs">
<DependentUpon>SKinForm.cs</DependentUpon>
</Compile>
<Compile Include="Skins\ThemeForm.cs" />
<Compile Include="TabList.cs">
<SubType>Component</SubType>
</Compile>
@ -150,6 +164,12 @@
<EmbeddedResource Include="FrmVSoft.resx">
<DependentUpon>FrmVSoft.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Skins\FrmMessageBox.resx">
<DependentUpon>FrmMessageBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Skins\SKinForm.resx">
<DependentUpon>SKinForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="TabList.resx">
<DependentUpon>TabList.cs</DependentUpon>
</EmbeddedResource>