自动更新
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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访问对象获取响应内容
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user