上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 56 下一页
摘要: 通过 & 位与操作,然后 >> 移位。 public int getHeight4(byte data){//获取高四位 int height; height = ((data & 0xf0) >> 4); return height; } public int getLow4(byte data) 阅读全文
posted @ 2021-11-11 20:29 double64 阅读(1676) 评论(0) 推荐(0)
摘要: 使用 EventHandler<> 委托来实现标准事件,通过 EventArgs 传递事件参数,其本身不能传递任何参数,需要被继承。 using System; using System.Collections.Generic; using System.Linq; using System.Tex 阅读全文
posted @ 2021-11-10 19:56 double64 阅读(1251) 评论(0) 推荐(0)
摘要: Topmost属性控制窗口置顶,WindowState属性控制窗体最大化,最小化,还原等状态。 private void SetTopMost_Checked(object sender, RoutedEventArgs e) { Topmost = SetTopMost.IsChecked is 阅读全文
posted @ 2021-11-10 18:47 double64 阅读(2004) 评论(0) 推荐(0)
摘要: SerialPort 是 C# 的串口类。 先创建一个串口实例对象: _serialPort = new SerialPort(); 基本的串口参数属性 BaudRate // 波特率 Parity // 校验位:奇校验,偶校验,无校验 DataBits // 数据位:6,7,8 StopBits 阅读全文
posted @ 2021-11-08 23:02 double64 阅读(5117) 评论(1) 推荐(1)
摘要: <Window x:Class="WpfApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006 阅读全文
posted @ 2021-11-08 08:48 double64 阅读(184) 评论(0) 推荐(0)
摘要: <Window.Resources> <Style TargetType="Button"> <Setter Property="FontFamily" Value="./Resources/#SF2015"/> </Style> </Window.Resources> <Grid> <StackP 阅读全文
posted @ 2021-11-06 10:09 double64 阅读(220) 评论(0) 推荐(0)
摘要: C#程序 :是由一个或多个类型声明组成; // 面向对象,面向接口编程,都依赖的是类型。 C程序 :一组函数和数据类型; // 枚举,数组和指针,结构体。 C++程序:一组函数和类。 对 C 语言构成要素的一点思考: https://www.cnblogs.com/huvjie/p/18590658 阅读全文
posted @ 2021-11-04 23:43 double64 阅读(62) 评论(0) 推荐(0)
摘要: 动词 V:动词总称,分为 vt(及物动词) vi(不及物动词)。 vi:不及物动词,后面不能直接接名词,需要加一个介词。 不及物动词后面不跟宾语, 也没有被动语态; vt:及物动词,后面可以直接接名词。 如play basketball。 You must consider the matter c 阅读全文
posted @ 2021-10-05 19:57 double64 阅读(900) 评论(0) 推荐(0)
摘要: 如果在安装 PhpStudy 环境之前本地已经配置过一次 MySQL 的话,本地的 MySQL 会和 PhpStudy 环境中的 MySQL 冲突,导致 PhpStudy 环境中 MySQL 不能启动。以下是我的解决办法。 (一) 进入 MySQL 环境路径,这里进入 PhpStudy 路径下的吧。 阅读全文
posted @ 2021-09-29 08:48 double64 阅读(702) 评论(0) 推荐(0)
摘要: WPF 中好像没有 OpenFileDialog 的控件,只能借用其他的了。 SaveFileDialog 应该也是类似的。 ▲ 测试界面 <Grid> <StackPanel Orientation="Vertical" > <TextBox Height="50" Margin="10" Bor 阅读全文
posted @ 2021-09-29 08:44 double64 阅读(802) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 56 下一页