摘要: private void StackPanel_MouseMove(object sender, MouseEventArgs e) { Debug.WriteLine("Move"); Point spRel = e.GetPosition((IInputElement)e.OriginalSou 阅读全文
posted @ 2019-07-25 16:58 马肯尼煤牙巴骨 阅读(316) 评论(0) 推荐(0)
摘要: private void Parallel(object sender, RoutedEventArgs e) { Task.Run(() => ChangeColour(Brushes.Red)); } private void Standard(object sender, RoutedEventArgs e) { ChangeColour(Brushes.Green);... 阅读全文
posted @ 2019-07-24 20:58 马肯尼煤牙巴骨 阅读(881) 评论(0) 推荐(0)
摘要: private IntPtr WidProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { if (msg == 0x112) { if (wParam.ToInt32() == 0xF0... 阅读全文
posted @ 2019-06-05 16:59 马肯尼煤牙巴骨 阅读(363) 评论(0) 推荐(0)
摘要: https://blog.walterlv.com/post/windows-high-dpi-development.html https://blog.csdn.net/ZslLoveMiwa/article/details/81294311 https://blog.csdn.net/blea 阅读全文
posted @ 2019-05-16 16:09 马肯尼煤牙巴骨 阅读(360) 评论(0) 推荐(0)
摘要: Install-Package Microsoft.Xaml.Behaviors.Wpf 阅读全文
posted @ 2019-04-15 10:50 马肯尼煤牙巴骨 阅读(850) 评论(1) 推荐(0)
摘要: private void Button_Click(object sender, RoutedEventArgs e) { string savePth = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "richtextboxData.data"); ... 阅读全文
posted @ 2019-04-09 15:18 马肯尼煤牙巴骨 阅读(414) 评论(0) 推荐(0)
摘要: public class VirtualizingWrapPanel : VirtualizingPanel, IScrollInfo { #region Fields UIElementCollection _children; ItemsControl _itemsControl; IItemContaine... 阅读全文
posted @ 2019-04-09 11:31 马肯尼煤牙巴骨 阅读(200) 评论(2) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Windows.Forms; namespace DocDecrypt.Common { public class FileHelper { private stati... 阅读全文
posted @ 2019-04-04 09:13 马肯尼煤牙巴骨 阅读(582) 评论(0) 推荐(0)
摘要: 首先在添加引用中选中System.Management 再在开始部门: using System.Management; using System.Management.Instrumentation; private void GetInfo() { string cpuInfo = "";//cpu序列号 ManagementClass cimobject = new Managem... 阅读全文
posted @ 2019-03-27 16:09 马肯尼煤牙巴骨 阅读(844) 评论(0) 推荐(0)
摘要: string outPutString = null; string prikey; string pubkey; bool isSeccess = false; using (RSACryptoServiceProvider rsa = new RSACryptoServic... 阅读全文
posted @ 2019-03-27 15:48 马肯尼煤牙巴骨 阅读(169) 评论(0) 推荐(0)