自动更新

This commit is contained in:
liufei
2021-07-20 17:30:12 +08:00
parent 1c692d5fa6
commit 9f24601ff2
17 changed files with 317 additions and 102 deletions

View File

@@ -47,7 +47,7 @@ namespace GeekDesk.Util
public static IntPtr GetJumboIcon(int iImage)
{
IImageList spiml = null;
Guid guil = new Guid(IID_IImageList2);//or IID_IImageList
Guid guil = new Guid(IID_IImageList);//or IID_IImageList
Shell32.SHGetImageList(Shell32.SHIL_JUMBO, ref guil, ref spiml);
IntPtr hIcon = IntPtr.Zero;

View File

@@ -13,6 +13,8 @@ namespace GeekDesk.Util
#region Get请求
public static string Get(string url)
{
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
//创建Web访问对 象
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(url);
//通过Web访问对象获取响应内容

View File

@@ -1,23 +0,0 @@
using SharpShell.SharpContextMenu;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GeekDesk.Util
{
class ShellContextMenu : SharpContextMenu
{
protected override bool CanShowMenu()
{
throw new NotImplementedException();
}
protected override ContextMenuStrip CreateMenu()
{
throw new NotImplementedException();
}
}
}

View File

@@ -10,9 +10,9 @@ namespace GeekDesk.Util
{
public static bool IsEmpty(string str)
public static bool IsEmpty(object str)
{
if (str == null || str.Length == 0 || str.Trim().Length == 0)
if (str == null || str.ToString().Length == 0 || str.ToString().Trim().Length == 0)
{
return true;
}