当前位置: 首页> 科技> IT业 > 网站设置反爬虫的常用方法有哪些_汕头seo专家_做什么推广最赚钱_百度服务电话6988

网站设置反爬虫的常用方法有哪些_汕头seo专家_做什么推广最赚钱_百度服务电话6988

时间:2025/7/14 5:49:32来源:https://blog.csdn.net/yongshiqq/article/details/143183481 浏览次数:0次
网站设置反爬虫的常用方法有哪些_汕头seo专家_做什么推广最赚钱_百度服务电话6988

本例实现的效果如下:

第一步:添加引用

using UserControl = System.Windows.Controls.UserControl;
using System.Windows.Forms.Integration;//PaletteSet integration 

第二步

 

<UserControl x:Class="AcTools.UserControl1"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:AcTools"mc:Ignorable="d" MinWidth="100" MinHeight="600"><Grid><ItemsControl ItemsSource="{Binding Dic}"><ItemsControl.ItemTemplate><DataTemplate><Button Content="{Binding Path=Key}" Tag="{Binding Path=Value}"Click="Button_Click"/></DataTemplate></ItemsControl.ItemTemplate></ItemsControl></Grid>
</UserControl>

 

 代码:

using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AcTools;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Colors;
using System.Runtime.CompilerServices;
using Wform = System.Windows.Forms;
using System.IO;
using System.Windows.Forms;
using Excel=  Microsoft.Office.Interop.Excel.Application;
using Autodesk.AutoCAD.Windows;
using UserControl = System.Windows.Controls.UserControl;
using System.Windows.Forms.Integration;
using Autodesk.AutoCAD.Internal;//PaletteSet integrationnamespace AcTools
{public static class Class1{private static PaletteSet pset;[CommandMethod("xx")]public static void CaiYang(){   var db = Z.db;//var ed = Z.ed;if (pset is null){pset = new PaletteSet("山水  QQ:443440204");var args = new Z.PsetArgs();args.Dic.Add("直线","line");args.Dic.Add("圆", "xx");args.Dic.Add("删除", "erase");var wpf = new UserControl1();wpf.DataContext = args;var host = new ElementHost(){AutoSize = true,Dock = DockStyle.Fill,Child = wpf,};pset.Add("abc",host);pset.Visible = true;pset.Dock = DockSides.Left; return;}pset.Visible = !pset.Visible;}}
}

关键字:网站设置反爬虫的常用方法有哪些_汕头seo专家_做什么推广最赚钱_百度服务电话6988

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: