zoukankan      html  css  js  c++  java
  • 一行代码去掉Devexpress弹窗

    使用的是.net hook方法:
    使用代码:

    using System;
    using System.Windows.Forms;
    
    namespace AlexDevexpressToolTest
    {
        static class Program
        {
            /// <summary>
            /// The main entry point for the application.
            /// </summary>
            [STAThread]
            static void Main()
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                //Alex.DevexpressTools.Hit.Init();
                Application.Run(new Form1());
            }
        }
    }
    
    

    工具方法:

    using DotNetDetour;
    
    namespace Alex.DevexpressTools
    {
    	public class Hit
    	{
    		public static void Init()
    		{
    			MethodHook.Install();
    		}
    	}
    
    	public class Utils : IMethodHook
    	{
    		#region 去掉弹窗
    		[HookMethod("DevExpress.Utils.About.Utility", null, null)]
    		public static bool ShouldShowAbout()
    		{
    			return false;
    		}
    		
    		[OriginalMethod]
    		public static bool ShouldShowAbout_Original()
    		{
    			return false;
    		}
    		#endregion
    	}
    }
    
    
  • 相关阅读:
    NumPy线性代数
    NumPy矩阵库
    NumPy副本和视图
    NumPy字节交换
    NumPy排序、搜索和计数函数
    NumPy统计函数
    NumPy算数运算
    NumPy数学算数函数
    NumPy
    dp 动规 最佳加法表达式
  • 原文地址:https://www.cnblogs.com/AlexanderZhao/p/12229221.html
Copyright © 2011-2022 走看看