随笔分类 - 代码收藏
平时工作中或业余时编写的一些代码
摘要:例: Install-Package CefSharp.Wpf -Version 73.1.130 Install-Package CefSharp.Common -Version 73.1.130 Install-Package CefSharp.Wpf -Source C:\Users\suxi
阅读全文
摘要:注意权限问题 1.查看是否有被锁的表: select b.owner,b.object_name,a.session_id,a.locked_modefrom v$locked_object a,dba_objects b where b.object_id = a.object_id 2.查看是哪
阅读全文
摘要:代码: public static void DoEvents(Dispatcher dispatcher) { DispatcherFrame frame = new DispatcherFrame(); dispatcher.BeginInvoke(new Action<object>((obj
阅读全文
摘要:代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataSync.Utils { ///
阅读全文
摘要:WebServiceHelper代码: using Microsoft.CSharp; using System; using System.CodeDom; using System.CodeDom.Compiler; using System.Collections.Generic; using
阅读全文
摘要:SQL代码: SELECT t.* FROM pt_org_info t START WITH t.id = 1 CONNECT BY t.par_id = PRIOR t.id ORDER SIBLINGS BY t.id; 效果图:
阅读全文
摘要:代码: private static ImageCodecInfo GetImageCodecInfo(ImageFormat imageFormat) { ImageCodecInfo[] imageCodecInfoArr = ImageCodecInfo.GetImageDecoders();
阅读全文
摘要:项目属性-->生成-->允许不安全代码勾上。 代码: /// <summary> /// 反色处理 /// </summary> private Bitmap Inverse(Bitmap bmp) { BitmapData srcdat = bmp.LockBits(new Rectangle(P
阅读全文
摘要:(地图瓦片纠偏最好的方法在这:https://www.cnblogs.com/s0611163/p/15606460.html) 对谷歌瓦片地图进行纠偏,有两种方法:一是对拼接大图进行纠偏,然后重新切片;二是直接对瓦片图进行纠偏。这里我用的是第二种方法,即直接对瓦片地图进行纠偏。 App.confi
阅读全文
摘要:// 设置为受保护的操作系统文件,并隐藏attrib d:\n.txt +s +h // 取消设置为受保护的操作系统文件,并取消隐藏attrib d:\n.txt -s -h
阅读全文
摘要:代码: #region 解压 /// <summary> /// 解压 /// </summary> public void UnZip(string zipPath, string targetPath) { using (FileStream fsZip = new FileStream(zip
阅读全文
摘要:思路:取表单值以及printkey属性标记的html内容,批量替换模板中的内容。模板设置页面代码:@{ ViewBag.Title = "PrintSet"; Layout = "~/Views/Shared/_Layout.cshtml"; Suya.Auth.Contract....
阅读全文
摘要:代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using Microsoft.Office.Interop.Excel;using Sy...
阅读全文
摘要:MachineJP类: 第1部分:串口初始化,串口数据读写 using System; using System.Collections.Generic; using System.IO.Ports; using System.Linq; using System.Text; using Syste
阅读全文
摘要:说明:支持跨线程访问控件。定义代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;...
阅读全文
摘要:CSS代码:-moz-border-radius: 15px; /* Gecko browsers */-webkit-border-radius: 15px; /* Webkit browsers */border-radius:15px; /* W3C syn...
阅读全文
摘要:一、HTML: 明细 删除 确认 添加 View Code二、JS:View Code三、完整示例页面:@{ Layout = "~/Views/Shared/_Layout.cshtm...
阅读全文
摘要:一、引用CSS和JS:View Code二、HTML: View Code三、创建编辑器对象:var ue;$(function () { $(function () { ue = UE.getEditor('ueditor', { maximumWords...
阅读全文

浙公网安备 33010602011771号