森井防暴電氣股份工業(yè)除濕機(jī)后源代碼_第1頁
森井防暴電氣股份工業(yè)除濕機(jī)后源代碼_第2頁
森井防暴電氣股份工業(yè)除濕機(jī)后源代碼_第3頁
森井防暴電氣股份工業(yè)除濕機(jī)后源代碼_第4頁
森井防暴電氣股份工業(yè)除濕機(jī)后源代碼_第5頁
已閱讀5頁,還剩33頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

using usingSystem.Drawing;usingSystem.Text;usingnamespace{publicpartialclassTabDataReceive:{public{tabData.ContextStrip=C;}{TabPagetpage=newtpage.Disposed+=newEventHandler(tpage_Disposed);tpage.Text=SourceName;Units.DataReceiveUDataReceive=newDataReceive();UDataReceive.Name=SourceName;UDataReceive.Dock=DockStyle.Fill;{return}{TabPagetpage=}#region////////////{

if(UDataReceive=={}}{}{}{{}}{{if(tpage!={}}}}}using usingSystem.Drawing;usingSystem.Text;usingusingLeafSoft.Lib;namespace{/////////publicpartialclassDataReceive:{public{}#region/////////<paramname="data">字節(jié)數(shù)組</param>publicvoidAddData(byte[]data){{case//16StringBuildersb=newStringBuilder();for(inti=0;i<data.Length;i++){sb.AppendFormat("{0:x2}"+"",}casecase//UTF8//zhaohfcase//GB2312}{}#region////////////<paramname="content"></param>{{{}}{}#region{if{EncodeType=}}{if{EncodeType=}}{if{EncodeType=}}{if{EncodeType=}}#region菜單{}{

if(CMS_Main.Visible==[]=foreach(stringdatain{{}{}}

MS_ToInt.Enabled=false;MS_ToFloat.Enabled=false;MS_ToDouble.Enabled=false;if(SelectData.Length=={MS_ToInt.Enabled=true;MS_ToFloat.Enabled=false;MS_ToDouble.Enabled=false;}elseif(SelectData.Length=={MS_ToInt.Enabled=true;MS_ToFloat.Enabled=true;MS_ToDouble.Enabled=false;}elseif(SelectData.Length=={}{

MS_ToInt.Enabled=false;MS_ToFloat.Enabled=false;MS_ToDouble.Enabled=true;MS_ToInt.Enabled=false;MS_ToFloat.Enabled=false;MS_ToDouble.Enabled=false;}{}}

MS_ToInt.Enabled=false;MS_ToFloat.Enabled=false;MS_ToDouble.Enabled=false;#region///24//////<param///<param{byte[]IntByte=StringsToBytes(SelectData);if(IntByte.Length=={}{}}

(),"(),"http:///4//////<param///<param{byte[]IntByte=StringsToBytes(SelectData);,(),"}///8//////<param///<param{

byte[]IntByte=StringsToBytes(SelectData);,}///16byte//////<param///{byte[]BToInt32=newbyte[B.Length];for(inti=0;i<B.Length;i++){if{}}return}}}using usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingnamespace{publicpartialclassfrmCheck:{public{}

#region計(jì)////////////<param///<param{Model.CMDcmd=txtContent.GetCMD();if(cmd!=null){bytecheck=}}////////////<param///<param{Model.CMDcmd=txtContent.GetCMD();if(cmd!=null){}}//////CRC16//////<param///<param{Model.CMDcmd=txtContent.GetCMD();if(cmd!=null){frmPolyfpoly=new{}}

}//////CRC16低位//////<param///<param{Model.CMDcmd=txtContent.GetCMD();if(cmd!=null){frmPolyfpoly=new{}}

}{foreach(bytebin{}}{}{}}}using usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingLeafSoft.Lib;namespace{publicpartialclassfrmCMD:{publicModel.CMDNewCMD={}public{}{NewCMD=txtContent.GetCMD();if(NewCMD!=null){this.DialogResult=}}{this.DialogResult=}{switch{MSI_Hex.Checked=true;CM_Check.Enabled=true;MSI_ASCII.Enabled=true;MSI_UTF8.Enabled=true;MSI_GB2312.Enabled=true;MSI_ASCII.Checked=false;MSI_UTF8.Checked=false;MSI_GB2312.Checked=false;MSI_ASCII.Enabled=false;MSI_UTF8.Enabled=false;MSI_GB2312.Enabled=false;CM_Check.Enabled=false;MSI_Hex.Checked=false;MSI_ASCII.Checked=true;MSI_ASCII.Enabled=false;MSI_UTF8.Enabled=false;MSI_GB2312.Enabled=false;CM_Check.Enabled=false;MSI_Hex.Checked=false;MSI_UTF8.Checked=true;MSI_ASCII.Enabled=false;MSI_UTF8.Enabled=false;MSI_GB2312.Enabled=false;CM_Check.Enabled=false;MSI_Hex.Checked=false;MSI_GB2312.Checked=true;}}#region{}{}{}{}////////////<param///<param{}#region計(jì)////////////<param///<param{if(cmd!=null){bytecheck=}}////////////<param///<param{if(cmd!=null){}}//////CRC16//////<param///<param{if(cmd!=null){frmPolyfpoly=new{}}}//////CRC16低位//////<param///<param{if(cmd!=null){frmPolyfpoly=new{}}}{foreach(bytebin{}}}}using usingSystem.Drawing;usingSystem.Text;usingnamespace{publicpartialclassTabDataReceive:{public{tabData.ContextStrip=C;}{TabPagetpage=newtpage.Disposed+=newEventHandler(tpage_Disposed);tpage.Text=SourceName;Units.DataReceiveUDataReceive=newDataReceive();UDataReceive.Name=SourceName;UDataReceive.Dock=DockStyle.Fill;{return}{TabPagetpage=}#region////////////{

if(UDataReceive=={}}{}{}{{}}{{if(tpage!={}}}}}namespace{partialclass{//////Requireddesigner/// //////Cleanupanyresourcesbeing//////<paramname="disposing">trueifmanagedresourcesshouldbedisposed;otherwise,{if(disposing&&(components!={}}#regionWindowsFormDesignergenerated//////RequiredmethodforDesignersupport-donot///thecontentsofthismethodwiththecode/// {ponents= dataGridViewCellStyle1=newthis.sbxx=newSystem.Windows.Forms.DataGridView();this.buttonconnect=newSystem.Windows.Forms.Button();this.label1=newSystem.Windows.Forms.Label();this.label2=newSystem.Windows.Forms.Label();this.label3=newSystem.Windows.Forms.Label();this.label4=newSystem.Windows.Forms.Label();this.nmDelay=newSystem.Windows.Forms.NumericUpDown();this.numericDelayMin=newSystem.Windows.Forms.NumericUpDown();this.label6=newSystem.Windows.Forms.Label();this.label8=newSystem.Windows.Forms.Label();this.label5=newSystem.Windows.Forms.Label();this.buttondis=newSystem.Windows.Forms.Button();this.timer1=newSystem.Windows.Forms.Timer( this.timersend=newSystem.Windows.Forms.Timer( this.button2=newSystem.Windows.Forms.Button();this.trackBar1=newSystem.Windows.Forms.TrackBar();this.label7=newSystem.Windows.Forms.Label();this.checkBox1=newSystem.Windows.Forms.CheckBox();this.button4=newSystem.Windows.Forms.Button();this.label10=newSystem.Windows.Forms.Label();this.button5=newSystem.Windows.Forms.Button();this.button6=newSystem.Windows.Forms.Button();Rs2321=new this.ip=newSystem.Windows.Forms.DataGridViewTextBoxColumn();this.dkh=newSystem.Windows.Forms.DataGridViewTextBoxColumn();this.bz=newSystem.Windows.Forms.DataGridViewTextBoxColumn();this.zt=newSystem.Windows.Forms.DataGridViewTextBoxColumn();this.ljzt=newSystem.Windows.Forms.DataGridViewTextBoxColumn();this.zd=newSystem.Windows.Forms.DataGridViewTextBoxColumn();this.wd=newSystem.Windows.Forms.DataGridViewTextBoxColumn();this.wg=newSystem.Windows.Forms.DataGridViewTextBoxColumn();this.djs=newSystem.Windows.Forms.DataGridViewTextBoxColumn();this.id=newSystem.Windows.Forms.DataGridViewTextBoxColumn(); //this.sbxx.BorderStyle=System.Windows.Forms.BorderStyle.None; {this.sbxx.Location=newSystem.Drawing.Point(145,111);this.sbxx.MultiSelect=false; this.sbxx.RowTemte.Height=23; this.sbxx.Size=newSystem.Drawing.Size(845,447);this.sbxx.TabIndex=1;//this.buttonconnect.Location=newSystem.Drawing.Point(537,209);this.buttonconnect.Name="buttonconnect";this.buttonconnect.Size=newSystem.Drawing.Size(75,23);this.buttonconnect.TabIndex=2;//this.label1.Location=newSystem.Drawing.Point(39,244);this.label1.Name="label1";this.label1.Size=newSystem.Drawing.Size(11,12);this.label1.TabIndex=3;//this.buttondisconnect.Location=newSystem.Drawing.Point(617,209);this.buttondisconnect.Name="buttondisconnect";this.buttondisconnect.Size=newSystem.Drawing.Size(75,23);this.buttondisconnect.TabIndex=5;//this.label2.Location=newSystem.Drawing.Point(24,218);this.label2.Name="label2";this.label2.Size=newSystem.Drawing.Size(29,12);this.label2.TabIndex=9;//this.button1.Location=newSystem.Drawing.Point(548,310);this.button1.Name="button1";this.button1.Size=newSystem.Drawing.Size(102,23);this.button1.TabIndex=12;this.button1.Text="停止刷新";this.button1.UseVisualStyleBackColortrue;this.button1.Visible=false;//this.label3.Location=newSystem.Drawing.Point(739,169);this.label3.Name="label3";this.label3.Size=newSystem.Drawing.Size(41,12);this.label3.TabIndex=17;//this.label4.Location=newSystem.Drawing.Point(826,169);this.label4.Name="label4";this.label4.Size=newSystem.Drawing.Size(17,12);this.label4.TabIndex=18;//this.nmDelay.um=newdecimal(newint[]{this.nmDelay.TabIndex=19;this.nmDelay.Value=newdecimal(newint[]{//this.numericDelayHour.um=newdecimal(newint[]{this.numericDelayHour.Name="numericDelayHour";//this.numericDelayMin.Location=newSystem.Drawing.Point(97,487);this.numericDelayMin.um=newdecimal(newint[]{this.numericDelayMin.Size=newSystem.Drawing.Size(36,21);this.numericDelayMin.TabIndex=22;//this.label6.Location=newSystem.Drawing.Point(18,491);this.label6.Name="label6";this.label6.Size=newSystem.Drawing.Size(17,12);this.label6.TabIndex=24;//this.button3.FlatAppearance.BorderSize=0;this.button3.FlatStyle=System.Windows.Forms.FlatStyle.Flat;this.button3.Location=newSystem.Drawing.Point(41,165);this.button3.Name="button3";this.button3.Size=newSystem.Drawing.Size(75,37);this.button3.TabIndex=28;this.button3.Tag="button";this.button3.Text="打開串口";this.button3.UseVisualStyleBackColortrue;this.button3.Click+=newSystem.EventHandler(this.button3_Click_2); //this.label8.Location=newSystem.Drawing.Point(77,491);this.label8.Name="label8";this.label8.Size=newSystem.Drawing.Size(17,12);this.label8.TabIndex=30;//this.label5.Location=newSystem.Drawing.Point(23,464);this.label5.Name="label5";this.label5.Size=newSystem.Drawing.Size(41,12);this.label5.TabIndex=0;//this.buttondis.FlatAppearance.BorderSize=0;this.buttondis.FlatStyle=System.Windows.Forms.FlatStyle.Flat;this.buttondis.Image=global::LeafSoft.Properties.Resources._12_03;this.buttondis.Location=newSystem.Drawing.Point(145,71);this.buttondis.Name="buttondis";this.buttondis.Size=newSystem.Drawing.Size(85,35);this.buttondis.TabIndex=1;this.buttondis.Click+=newSystem.EventHandler(this.buttondis_Click); //this.buttonprint.FlatAppearance.BorderSize=0; this.buttonprint.Location=newSystem.Drawing.Point(233,71);this.buttonprint.Size=newSystem.Drawing.Size(85,35);this.buttonprint.TabIndex=0;this.buttonprint.Click+=newSystem.EventHandler(this.buttonprint_Click); //////this.button2.FlatStyle=System.Windows.Forms.FlatStyle.Flat;this.button2.Location=newSystem.Drawing.Point(38,514);this.button2.Name="button2";this.button2.Size=newSystem.Drawing.Size(75,37);this.button2.TabIndex=36;this.button2.Tag="";//this.trackBar1.Location=newSystem.Drawing.Point(74,218);this.trackBar1.um=100;this.trackBar1.Minimum=5;this.trackBar1.Name="trackBar1";this.trackBar1.Size=newSystem.Drawing.Size(45,197);this.trackBar1.Value=20;this.trackBar1.Scroll+=newSystem.EventHandler(this.trackBar1_Scroll); // this.pictureBox3.Location=newSystem.Drawing.Point(942,4);this.pictureBox3.Name="pictureBox3";this.pictureBox3.Size=newSystem.Drawing.Size(25,23);this.pictureBox3.TabIndex=38; // this.pictureBox4.Location=newSystem.Drawing.Point(970,4);this.pictureBox4.Name="pictureBox4";this.pictureBox4.Size=newSystem.Drawing.Size(25,23);this.pictureBox4.TabIndex=39; //this.pictureBox5.BackColor=System.Drawing.Color.Transparent;this.pictureBox5.Location=newSystem.Drawing.Point(31,1);this.pictureBox5.Name="pictureBox5";this.pictureBox5.Size=newSystem.Drawing.Size(57,48);this.pictureBox5.TabIndex=40;//this.label7.Location=newSystem.Drawing.Point(28,49);this.label7.Name="label7";this.label7.Size=newSystem.Drawing.Size(149,12);this.label7.TabIndex=41;//this.checkBox1.Checked=true;this.checkBox1.Location=newSystem.Drawing.Point(876,41);this.checkBox1.Size=newSystem.Drawing.Size(72,16);this.checkBox1.TabIndex=43;this.checkBox1.UseVisualStyleBackColor=false;this.checkBox1.Visible=false;//this.button4.Enabled=false;this.button4.FlatAppearance.BorderSize=0;this.button4.FlatStyle=System.Windows.Forms.FlatStyle.Flat;this.button4.Location=newSystem.Drawing.Point(321,72);this.button4.Name="button4";this.button4.Size=newSystem.Drawing.Size(69,32);this.button4.TabIndex=44;this.button4.Text="批量設(shè)置";this.button4.UseVisualStyleBackColorfalse;//gressBar1.Location=newSystem.Drawing.Point(402,68);gressBar1.Name="progressBar1";gressBar1.Size=newSystem.Drawing.Size(406,23);gressBar1.TabIndex=46;//this.label10.Location=newSystem.Drawing.Point(418,93);this.label10.Name="label10";this.label10.Size=newSystem.Drawing.Size(221,12);this.label10.TabIndex=47;//this.button5.Enabled=false;this.button5.FlatAppearance.BorderSize=0;this.button5.FlatStyle=System.Windows.Forms.FlatStyle.Flat;this.button5.Image=global::LeafSoft.Properties.Resources.close1;this.button5.Location=newSystem.Drawing.Point(828,69);this.button5.Name="button5";this.button5.Size=newSystem.Drawing.Size(71,33);this.button5.TabIndex=48;this.button5.Tag="button";this.button5.Text=" this.button5.UseVisualStyleBackColorfalse;this.button5.Click+=newSystem.EventHandler(this.pictureBox1_Click_1); //this.button6.Enabled=false;this.button6.FlatAppearance.BorderSize=0;this.button6.FlatStyle=System.Windows.Forms.FlatStyle.Flat;this.button6.Image=global::LeafSoft.Properties.Resources.open1;this.button6.Location=newSystem.Drawing.Point(909,69);this.button6.Name="button6";this.button6.Size=newSystem.Drawing.Size(71,33);this.button6.TabIndex=49;this.button6.Tag="button";this.button6.Text=" this.button6.UseVisualStyleBackColorfalse;this.button6.Click+=newSystem.EventHandler(this.pictureBox2_Click); //Rs2321.Location=newSystem.Drawing.Point(14,102);Rs2321.Name="netRs2321";Rs2321.Size=newSystem.Drawing.Size(125,54);Rs2321.TabIndex=27;//////this.ip.HeaderText="ip";this.ip.Name="ip";this.ip.ReadOnly=true;this.ip.Visible=false;// this.dkh.DefaultCellStyledataGridViewCellStyle1;this.dkh.HeaderText="設(shè)備序號(hào)";this.dkh.Name="dkh";this.dkh.ReadOnly=true;this.dkh.Width=60;//this.bz.HeaderText備注";this.bz.Name="bz";this.bz.ReadOnly=true; //this.zt.HeaderText狀態(tài)";this.zt.Name="zt";this.zt.ReadOnly=true; this.zt.Width=250;//this.ljzt.Name="ljzt";this.ljzt.ReadOnly=true; //this.zd.HeaderText濕度";this.zd.Name="zd";this.zd.ReadOnly=true; this.zd.Width=40;//this.szsd.Name="szsd"; this.szsd.Width=60;//this.wd.Name="wd";this.wd.ReadOnly=true; this.wd.Width=40;//this.wg.Name="wg";this.wg.ReadOnly=true; this.wg.Width=40;//this.djs.HeaderText倒計(jì)時(shí)";this.djs.Name="djs";this.djs.ReadOnly=true; this.djs.Width=80;//this.clintindex.Name="clintindex";this.clintindex.Visible=false;//this.id.HeaderText="id";this.id.Name="id";this.id.Visible=false;//this.AutoScaleDimensions=newSystem.Drawing.SizeF(6F,12F);this.BackColor=System.Drawing.SystemColors.ButtonFace; this.Size=newSystem.Drawing.Size(1002,603);this.Icon=((System.Drawing.Icon)(resources.GetObject("$this.Icon")));this.izeBox=false;this.Name=="this.Load+=new }privateSystem.Windows.Forms.Buttonbuttonconnect;privateSystem.Windows.Forms.Labellabel2;privateSystem.Windows.Forms.Labellabel3;privateSystem.Windows.Forms.NumericUpDownnumericDelayMin;privateSystem.Windows.Forms.Labellabel6;privateSystem.Windows.Forms.ToolStrip ItemtoolStrip privateUnits.NetRs232netRs2321;privateSystem.Windows.Forms.Labellabel8;privateSystem.Windows.Forms.Labellabel5;privateSystem.Windows.Forms.Buttonbuttondis;privateSystem.Windows.Forms.Timertimersend;privateSystem.Windows.Forms.Buttonbutton2;privateSystem.Windows.Forms.Labellabel7;privateSystem.Windows.Forms.Buttonbutton4;privateSystem.Windows.Forms.Labellabel10;privateSystem.Windows.Forms.DataGridViewTextBoxColumnip;privateSystem.Windows.Forms.DataGridViewTextBoxColumnbz;privateSystem.Windows.Forms.DataGridViewTextBoxColumnzt;privateSystem.Windows.Forms.DataGridViewTextBoxColumnljzt;privateSystem.Windows.Forms.DataGridViewTextBoxColumnzd;privateSystem.Windows.Forms.DataGridViewTextBoxColumnwd;privateSystem.Windows.Forms.DataGridViewTextBoxColumnwg;privateSystem.Windows.For

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論