摘要:private void Tb_PreviewKeyDown(object sender, KeyEventArgs e) { bool isNumber = e.Key >= Key.D0 && e.Key <= Key.D9 || e.Key >= Key.NumPad0 && e.Key <=
阅读全文
摘要:/// <sumary>/// 接收方/// </sumary>public void StartClient() { var factory = new NMSConnectionFactory(new Uri("activemq:failover:(tcp://localhost:61616/?
阅读全文
摘要:1 public class DragMoveBehavior : Behavior<UIElement> { Window window; Canvas parent; bool isDown; Point prePosition = new Point(); public Type Target
阅读全文
摘要:来自:https://stackoverflow.com/questions/8311805/bitmapsource-copypixels-byte-bitmapsource-how-to-do-this-simple
阅读全文
摘要:class Program { static void Main(string[] args) { Console.WriteLine("ICO文件转PNG"); string path = null; bool got = false; while (...
阅读全文
摘要:public class StringToVisualConverter : IValueConverter { #region IValueConverter 成員 public object Convert(object value, Type targetType, object parameter, System.Globalizatio...
阅读全文
摘要:public class BytesConverter : IValueConverter { public bool IsSpeed { get; set; } public object Convert(object value, Type targetType, object paramete
阅读全文
摘要:一、功能需求: 1、打开图片、打开文件夹; 2、下一张、上一张图片; 3、支持拖动、缩放、还原图片显示适当大小; cs部分代码 查看代码 /// <summary> /// Interaction logic for ImageView.xaml /// </summary> public part
阅读全文
摘要:double a = 123456, b = 123456.1, c = 123456.12, d = 123456.123, e = 123456.126; Console.WriteLine(a.ToString("N")); //123,456.00 Console.WriteLine(b.T
阅读全文
摘要:问题: a) 客户端请求的是https,但服务端Request.Url获取的却是http; b) 负载均衡连接协议服务端与客户端协议不一致。 有时候我们需要获取或拼接连接,但是可能会出现客户端使用https请求但我们获取的确是http的情况,这个时就无法访问拼接出来的http连接。 这通常是由于服务
阅读全文
摘要:setwindowcompositionattribute
阅读全文
摘要:返回类型 System.Windows.Media.Imaging.BitmapSource
阅读全文
摘要:在系统盘里找到该项目对应的dll文件(我的是在C:\Windows\Microsoft.NET\assembly\GAC_MSIL目录下),删除该dll后重新生成项目即可。
阅读全文
摘要:备注:内容仅提供参考。 ⒈添加引用:using Gecko; ⒉然后根据自己的情况在某个方法内添加事件: ⒊再声明方法:
阅读全文
摘要:1、双斜杠\\ 处理;2、将编码分组,将编码转换为int,再转换为char。string sss = "\\u6c88\\u9633";char sOut = '1'; string[] arr = a.Split(new string[] { "\\u" }, StringSplitOption...
阅读全文
摘要:引用:using System.Net.Mail;public class EmailHelper { public static bool SendEmail(string title, string body, string address) ...
阅读全文
摘要:添加引用: 获取模版文件路径: 接下来保存文件:
阅读全文