wince通过串口控制继电器的程序 C#

时间:2017-02-06 11:00:08
【文件属性】:

文件名称:wince通过串口控制继电器的程序 C#

文件大小:523KB

文件格式:RAR

更新时间:2017-02-06 11:00:08

wince 串口 c#

wince通过串口控制继电器的程序 包括串口通信全部底层代码 30多个按钮 互锁等处理都用类规范化 3种 1按钮和灯 2按钮和文字 3按钮文字和互锁另一组 public Form1 f1; public bool bigbl; public struct tp1 { public int n; public led LED led; public bool onoff; public bool onoff1; public Button btn; }; public List<tp1> t1 new List<tp1> ; public void t1add int n Button btn led LED led bool onoff1 { tp1 t new tp1 ; t n n; t btn btn; t led led; t onoff1 onoff1; t onoff onoff1; t led onoff onoff1; t1 Add t ; btn Click + new System EventHandler t1 click ; } public void t1 click object sender EventArgs e { for int i 0; i < t1 Count;i++ { if t1[i] btn sender { tp1 t; t t1[i]; MessageBox Show t btn Text ; t onoff t onoff; t led onoff t onoff; if t onoff f1 f3 on t n ; else f1 f3 off t n ; t1[i] t; } } } 调用: private void Form2 Load object sender EventArgs e { this Left 0; this Top 0; this Height 480; this Width 800; b new btns ; b f1 f1; b t1add 3 button6 led1 false ; b t1add 4 button7 led2 false ; b t1add 5 button8 led3 true ; b t1add 6 button4 led4 true ; b t1add 7 button5 led5 false ; b t2add 1 button2 label1 "IN" "OUT" false ; b t2add 2 button3 label2 "IN" "OUT" false ; } 注led小灯控件源码也在我资源内 ">wince通过串口控制继电器的程序 包括串口通信全部底层代码 30多个按钮 互锁等处理都用类规范化 3种 1按钮和灯 2按钮和文字 3按钮文字和互锁另一组 public Form1 f1; public bool bigbl; public struct tp1 { [更多]


【文件预览】:
wince
----bin()
--------Release()
--------Debug()
----Form1.Designer.cs(3KB)
----Form3.cs(8KB)
----Form2.resx(6KB)
----wince.csproj(6KB)
----Form3.Designer.cs(14KB)
----Program.cs(350B)
----obj()
--------Release()
--------Debug()
----meroot.cs(2KB)
----Sound.cs(1KB)
----wince.csproj.user(236B)
----Form4.Designer.cs(28KB)
----gsm.cs(22KB)
----Form3.resx(6KB)
----btns.cs(7KB)
----Form2.cs(1KB)
----Form1.cs(23KB)
----Form4.cs(2KB)
----Form4.resx(6KB)
----Form2.Designer.cs(10KB)
----Form1.resx(11KB)
----FullScreenClass.cs(13KB)
----Properties()
--------Resources.resx(5KB)
--------AssemblyInfo.cs(1KB)
--------Resources.Designer.cs(2KB)

网友评论

  • 测试了,可以运行。正在研究
  • 打开出错了。。。