摘要:
1 public enum MyEnum 2 { 3 [Description("S117200")] 4 S71200 = 1, 5 [Description("S117300")] 6 S71300 = 2, 7 [Desc... 阅读全文
摘要:
思路记录下,免得忘记 设置spFlag =false; 在SendCmd时,spFlag=false;触发IsRec(); 在Received事件中,spFlag=true; 实测:收不到数据是可以报错的。PC条件不够,没法测试接收到数据后是否正常,通过模拟点击一个按钮,设置spFlag=true后 阅读全文
摘要:
1 using System; 2 using System.Drawing; 3 using System.Collections; 4 using System.ComponentModel; 5 using System.Windows.Forms; 6 using System.Data; 7 using System.Runtime.InteropServi... 阅读全文
摘要:
double temp=3.1415926; (F)Fixed point:string str1=temp.toString("f1");//保留一位小数 四舍五入 结果:3.1 (F)Fixed point:string str2=temp.toString("f2");//保留两位小数,四舍五 阅读全文
摘要:
BigDecimal一共有4个够造方法,让我先来看看其中的两种用法: 第一种:BigDecimal(double val)Translates a double into a BigDecimal. 第二种:BigDecimal(String val)Translates the String re 阅读全文
摘要:
1 public partial class Form1 : Form 2 { 3 public Form1() 4 { 5 InitializeComponent(); 6 } 7 8 private void button1_Click(object sender, EventArgs e) 9 阅读全文