上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页
摘要: 串口中断 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { CmdAnalyze();//命令分析 if(cmd == cmd_event1) event1 = true; else if(cmd == cmd_event2) eve 阅读全文
posted @ 2022-09-01 17:36 阿坦 阅读(69) 评论(0) 推荐(0)
摘要: 小工具下载地址(阿里云盘):https://www.aliyundrive.com/s/ajfSmURRwGg 源码下载地址:https://www.aliyundrive.com/s/Z8xnAu1G8UB 发票名称按照要求写:采购人-购买平台-购买日期-名称-数量-金额-备注 阅读全文
posted @ 2022-08-22 11:28 阿坦 阅读(197) 评论(0) 推荐(0)
摘要: 在上一个博客中增加一个RelayCommand.cs,然后在User1ViewModel.cs中增加一个BtnCommand,最后在User1.xaml中绑定Command="{Binding BtnCommand}"这个命令。 using System; using System.Collecti 阅读全文
posted @ 2022-08-09 17:33 阿坦 阅读(68) 评论(0) 推荐(0)
摘要: public static class Singleton<T> where T : new() { // Use ConcurrentDictionary for thread safety. private static ConcurrentDictionary<Type, T> _instan 阅读全文
posted @ 2022-08-09 17:02 阿坦 阅读(134) 评论(0) 推荐(0)
摘要: 第一种方法:共享内存只存tiff图像里的灰度信息 using System; using System.IO; using System.IO.MemoryMappedFiles; using System.Runtime.InteropServices; using System.Windows; 阅读全文
posted @ 2022-02-17 15:51 阿坦 阅读(914) 评论(0) 推荐(0)
摘要: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schem 阅读全文
posted @ 2021-08-02 17:14 阿坦 阅读(199) 评论(0) 推荐(0)
摘要: using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { double a, b, c, d; a = 0.123456789; b = Math.Round(a,5);//四舍五入 阅读全文
posted @ 2021-07-05 13:33 阿坦 阅读(413) 评论(0) 推荐(0)
摘要: // Instantiate the dialog box var dlg = new Microsoft.Win32.OpenFileDialog { FileName = "", Filter = "All Files|*.*|PNG Files|*.png|JPG Files|*.jpg|TI 阅读全文
posted @ 2021-06-28 17:12 阿坦 阅读(2130) 评论(0) 推荐(0)
摘要: <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
posted @ 2021-06-14 09:25 阿坦 阅读(491) 评论(1) 推荐(0)
摘要: 运行效果图 程序集整体如下 <Window x:Class="MVVMLightDemo.View.MainView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas. 阅读全文
posted @ 2021-06-07 14:45 阿坦 阅读(2396) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页