超声波电路程序4
private void button3_Click(object sender, EventArgs e)
{
API_BEEP_Delay(50);
//line();
Form2 adcform = new Form2();
adcform.ShowDialog();
}
private void button4_Click(object sender, EventArgs e)
{
API_BEEP_Delay(50);
// API_BEEP_Delay(50);
textBox6.Text="";
string strtxt = textBox1.Text.ToString();
// 连接数据库
string connStr = "data source=" + dbname + ";Pooling=true;FailIfMissing=false";
sqliteConnection conn = new sqliteConnection(connStr);
conn.open();
//MessageBox.Show("数据库连接完成。");
sqliteCommand cmd = new System.Data.sqlite.sqliteCommand();
cmd.Connection = conn;
// 插入数据
// string sql = "INSERT INTO test VALUES(strtxt)";
string sql = "INSERT INTO test VALUES('textBox1.Text', 'textBox2.Text')";
cmd.CommandText = sql;
cmd.ExecuteNonQuery();
// MessageBox.Show("插入数据完成。");
// 取出数据
sql = "SELECT * FROM test";
cmd.CommandText = sql;
System.Data.sqlite.sqliteDataReader reader = cmd.ExecuteReader();
StringBuilder sb = new StringBuilder();
while (reader.Read())
{
sb.Append("username:").Append(reader.GetString(0)).Append("\n");
sb.Append("password:").Append(reader.GetString(1));
}
// MessageBox.Show(sb.ToString());
textBox5.Text = sb.ToString();
}
private void timer2_Tick(object sender, EventArgs e)
{
DateTime dt = DateTime.Now;
label4.Text = dt.ToString();
}
private void button5_Click(object sender, EventArgs e)
{
API_PWM_SetDiv(0, 2);
API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
API_BEEP_Delay(50);
//API_PWM_SetDiv(0, 2);2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//
// API_BEEP_Delay(50);
}
private void button8_Click(object sender, EventArgs e)
{
API_PWM_SetDiv(0, 1);
API_PWM_Start(0, 66600, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
API_BEEP_Delay(50);
}
private void button9_Click(object sender, EventArgs e)
{
API_PWM_SetDiv(0, 3);
API_PWM_Start(0, 66600, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
API_BEEP_Delay(50);
}
private void timer3_Tick(object sender, EventArgs e)
{
// btnout1l.Enabled = false;
//btnout1h.Enabled = true;
API_GPIO_Output(0, 0);
API_BEEP_Delay(100);
//btnout1l.Enabled = false;
// btnout1h.Enabled = true;
API_GPIO_Output(0, 1);
// API_BEEP_Delay(5);
}
private void button7_Click_1(object sender, EventArgs e)
{
this.timer3.Enabled = true;//可以使用
}
private void button9_Click_1(object sender, EventArgs e)
{
API_BEEP_Delay(50);
//表示清空 txt
StreamWriter sw = new StreamWriter("ResidentFlash2\\dtm.txt");
string w = "";
sw.Write(w);
sw.Close();
}
namespace SmartDeviceProject5
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void dispose(bool disposing)
{
if (disposing && (components != null))
{
components.dispose();
}
base.dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button3 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.timer1 = new System.Windows.Forms.Timer();
this.label4 = new System.Windows.Forms.Label();
this.timer2 = new System.Windows.Forms.Timer();
this.textBox6 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.csbpl = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.sjbh = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.jyry = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.sjcc = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.sjzl = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.gzpl = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.dtml = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.clxh = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.clsj = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.textBox16 = new System.Windows.Forms.TextBox();
this.timer3 = new System.Windows.Forms.Timer();
this.button9 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(75, 391);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(85, 39);
this.button1.TabIndex = 0;
this.button1.Text = "自动测量";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(393, 391);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(76, 39);
this.button2.TabIndex = 1;
this.button2.Text = "停止测量";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// textBox1
//
this.textBox1.Enabled = false;
this.textBox1.Location = new System.Drawing.Point(660, 407);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(66, 23);
this.textBox1.TabIndex = 3;
this.textBox1.Visible = false;
//
// button3
//
this.button3.Location = new System.Drawing.Point(241, 390);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(76, 39);
this.button3.TabIndex = 5;
this.button3.Text = "新建实验";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// textBox2
//
this.textBox2.Enabled = false;
this.textBox2.Location = new System.Drawing.Point(660, 405);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(66, 23);
this.textBox2.TabIndex = 13;
this.textBox2.Visible = false;
//
// textBox3
//
this.textBox3.Enabled = false;
this.textBox3.Location = new System.Drawing.Point(660, 407);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(66, 23);
this.textBox3.TabIndex = 14;
this.textBox3.Visible = false;
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(501, 84);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(68, 23);
this.textBox4.TabIndex = 15;
//
// timer1
//
this.timer1.Interval = 1;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// label4
//
this.label4.BackColor = System.Drawing.Color.White;
this.label4.ForeColor = System.Drawing.Color.Black;
this.label4.Location = new System.Drawing.Point(646, 405);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(122, 22);
this.label4.Text = "label4";
//
// timer2
//
this.timer2.Interval = 1;
this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
//
// textBox6
//
this.textBox6.Location = new System.Drawing.Point(616, 49);
this.textBox6.Multiline = true;
this.textBox6.Name = "textBox6";
this.textBox6.ReadOnly = true;
this.textBox6.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBox6.Size = new System.Drawing.Size(166, 93);
this.textBox6.TabIndex = 31;
//
// label3
//
this.label3.Location = new System.Drawing.Point(10, 161);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(18, 155);
this.label3.Text = "动弹模量(MPa)";
//
// label2
//
this.label2.Location = new System.Drawing.Point(27, 371);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(72, 18);
this.label2.Text = "0";
//
// pictureBox2
//
this.pictureBox2.BackColor = System.Drawing.Color.Blue;
this.pictureBox2.Location = new System.Drawing.Point(38, 368);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(730, 2);
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Blue;
this.pictureBox1.Location = new System.Drawing.Point(37, 161);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(2, 209);
//
// label5
//
this.label5.Location = new System.Drawing.Point(484, 49);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(126, 26);
this.label5.Text = "混凝土震动量:";
//
// label6
//
this.label6.Location = new System.Drawing.Point(484, 17);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(108, 26);
this.label6.Text = "超声波频率:";
//
// csbpl
//
this.csbpl.Location = new System.Drawing.Point(616, 17);
this.csbpl.Multiline = true;
this.csbpl.Name = "csbpl";
this.csbpl.Size = new System.Drawing.Size(106, 26);
this.csbpl.TabIndex = 48;
//
// label7
//
this.label7.Location = new System.Drawing.Point(18, 17);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(85, 26);
this.label7.Text = "试件编号:";
//
// sjbh
//
this.sjbh.Location = new System.Drawing.Point(109, 17);
this.sjbh.Multiline = true;
this.sjbh.Name = "sjbh";
this.sjbh.ReadOnly = true;
this.sjbh.Size = new System.Drawing.Size(89, 26);
this.sjbh.TabIndex = 53;
//
// label8
//
this.label8.Location = new System.Drawing.Point(18, 49);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(81, 26);
this.label8.Text = "检验人员:";
//
// jyry
//
this.jyry.Location = new System.Drawing.Point(109, 49);
this.jyry.Multiline = true;
this.jyry.Name = "jyry";
this.jyry.ReadOnly = true;
this.jyry.Size = new System.Drawing.Size(88, 26);
this.jyry.TabIndex = 52;
//
// label9
//
this.label9.Location = new System.Drawing.Point(18, 84);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(81, 26);
this.label9.Text = "试件尺寸:";
//
// sjcc
//
this.sjcc.Location = new System.Drawing.Point(109, 84);
this.sjcc.Multiline = true;
this.sjcc.Name = "sjcc";
this.sjcc.ReadOnly = true;
this.sjcc.Size = new System.Drawing.Size(88, 26);
this.sjcc.TabIndex = 59;
//
// label10
//
this.label10.Location = new System.Drawing.Point(18, 116);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(81, 26);
this.label10.Text = "试件质量:";
//
// sjzl
//
this.sjzl.Location = new System.Drawing.Point(109, 116);
this.sjzl.Multiline = true;
this.sjzl.Name = "sjzl";
this.sjzl.ReadOnly = true;
this.sjzl.Size = new System.Drawing.Size(89, 26);
this.sjzl.TabIndex = 58;
//
// label11
//
this.label11.Location = new System.Drawing.Point(241, 17);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(85, 26);
this.label11.Text = "共振频率:";
//
// gzpl
//
this.gzpl.Location = new System.Drawing.Point(332, 17);
this.gzpl.Multiline = true;
this.gzpl.Name = "gzpl";
this.gzpl.ReadOnly = true;
this.gzpl.Size = new System.Drawing.Size(91, 26);
this.gzpl.TabIndex = 65;
//
// label12
//
this.label12.Location = new System.Drawing.Point(241, 49);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(81, 26);
this.label12.Text = "动弹摸量:";
//
// dtml
//
this.dtml.Location = new System.Drawing.Point(332, 49);
this.dtml.Multiline = true;
this.dtml.Name = "dtml";
this.dtml.ReadOnly = true;
this.dtml.Size = new System.Drawing.Size(91, 26);
this.dtml.TabIndex = 64;
//
// label13
//
this.label13.Location = new System.Drawing.Point(241, 84);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(85, 26);
this.label13.Text = "测量序号:";
//
// clxh
//
this.clxh.Location = new System.Drawing.Point(332, 84);
this.clxh.Multiline = true;
this.clxh.Name = "clxh";
this.clxh.ReadOnly = true;
this.clxh.Size = new System.Drawing.Size(91, 26);
this.clxh.TabIndex = 71;
//
// label14
//
this.label14.Location = new System.Drawing.Point(241, 116);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(81, 26);
this.label14.Text = "测量时间:";
//
// clsj
//
this.clsj.Location = new System.Drawing.Point(332, 116);
this.clsj.Multiline = true;
this.clsj.Name = "clsj";
this.clsj.ReadOnly = true;
this.clsj.Size = new System.Drawing.Size(91, 26);
this.clsj.TabIndex = 70;
//
// label15
//
this.label15.Location = new System.Drawing.Point(429, 17);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(40, 26);
this.label15.Text = "Hz";
//
// label16
//
this.label16.Location = new System.Drawing.Point(429, 49);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(35, 26);
this.label16.Text = "MPa";
//
// label17
//
this.label17.Location = new System.Drawing.Point(199, 84);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(36, 26);
this.label17.Text = "mm";
//
// label18
//
this.label18.Location = new System.Drawing.Point(199, 116);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(36, 26);
this.label18.Text = "kg";
//
// label20
//
this.label20.Location = new System.Drawing.Point(737, 17);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(45, 26);
this.label20.Text = "Hz";
//
// textBox16
//
this.textBox16.Location = new System.Drawing.Point(501, 116);
this.textBox16.Multiline = true;
this.textBox16.Name = "textBox16";
this.textBox16.Size = new System.Drawing.Size(91, 26);
this.textBox16.TabIndex = 161;
//
// timer3
//
this.timer3.Interval = 1;
this.timer3.Tick += new System.EventHandler(this.timer3_Tick);
//
// button9
//
this.button9.Location = new System.Drawing.Point(552, 390);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(80, 40);
this.button9.TabIndex = 230;
this.button9.Text = "清除数据";
this.button9.Click += new System.EventHandler(this.button9_Click_1);
//
// label1
//
this.label1.Location = new System.Drawing.Point(694, 374);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(104, 17);
this.label1.Text = "时间(ms)";
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(484, 148);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(136, 23);
this.textBox5.TabIndex = 22;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.Sizef(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(798, 455);
this.Controls.Add(this.button9);
this.Controls.Add(this.textBox16);
this.Controls.Add(this.label20);
this.Controls.Add(this.label15);
this.Controls.Add(this.label16);
this.Controls.Add(this.label17);
this.Controls.Add(this.label18);
this.Controls.Add(this.label13);
this.Controls.Add(this.clxh);
this.Controls.Add(this.label14);
this.Controls.Add(this.clsj);
this.Controls.Add(this.label11);
this.Controls.Add(this.gzpl);
this.Controls.Add(this.label12);
this.Controls.Add(this.dtml);
this.Controls.Add(this.label9);
this.Controls.Add(this.sjcc);
this.Controls.Add(this.label10);
this.Controls.Add(this.sjzl);
this.Controls.Add(this.label7);
this.Controls.Add(this.sjbh);
this.Controls.Add(this.label8);
this.Controls.Add(this.jyry);
this.Controls.Add(this.label6);
this.Controls.Add(this.csbpl);
this.Controls.Add(this.label5);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox6);
this.Controls.Add(this.label4);
this.Controls.Add(this.textBox5);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "混凝土动弹模测定仪";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Timer timer2;
public System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
public System.Windows.Forms.TextBox csbpl;
private System.Windows.Forms.Label label7;
public System.Windows.Forms.TextBox sjbh;
private System.Windows.Forms.Label label8;
public System.Windows.Forms.TextBox jyry;
private System.Windows.Forms.Label label9;
public System.Windows.Forms.TextBox sjcc;
private System.Windows.Forms.Label label10;
public System.Windows.Forms.TextBox sjzl;
private System.Windows.Forms.Label label11;
public System.Windows.Forms.TextBox gzpl;
private System.Windows.Forms.Label label12;
public System.Windows.Forms.TextBox dtml;
private System.Windows.Forms.Label label13;
public System.Windows.Forms.TextBox clxh;
private System.Windows.Forms.Label label14;
public System.Windows.Forms.TextBox clsj;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label20;
public System.Windows.Forms.TextBox textBox16;
private System.Windows.Forms.Timer timer3;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox5;
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
varIoUs data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.soap.soapformatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="Metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<Metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</Metadata>
<Metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>107, 17</value>
</Metadata>
<Metadata name="timer3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>203, 16</value>
</Metadata>
<Metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
<value>WEBPAD</value>
</Metadata>
<Metadata name="$this.Skin" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</Metadata>
<Metadata name="$this.TrayHeight" type="system.int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>54</value>
</Metadata>
</root>
using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Runtime.InteropServices;
using System.Drawing.drawing2d;
using System.Data.sqlite;
namespace SmartDeviceProject5
{
public partial class Form2 : Form
{
[DllImport("HDI_API.dll")]
public static extern bool API_BEEP_Delay(int channel);
[DllImport("HDI_API.dll")]
public static extern bool API_PWM_SetDiv(int channel, int div);
[DllImport("HDI_API.dll")]
public static extern bool API_PWM_Start(int channel, int cntb, int cmpb);
[DllImport("HDI_API.dll")]
public static extern bool API_PWM_Stop(int channel);
[DllImport("HDI_API.dll")]
public static extern bool API_PWM_GetFrequency(int channel, int frequency);
// char dw ;//用于实例化一个画图对象
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
}
public void line()
{
Graphics g = this.CreateGraphics();
// Create pen.
Pen blackPen = new Pen(Color.Red, 3);
// Create coordinates of points that define line.
int x1 = 100;
int y1 = 300;
int x2 = 200;
int y2 = 300;
// Draw line to screen.
g.DrawLine(blackPen, 2, 3, 40, 50);
g.DrawLine(blackPen, x1, y1, x2, y2);
Pen mypen3 = new Pen(Color.Green, 2);
Point[] points2 = new Point[18];
// points2[0].X = 60; points2[0].Y = 340 - Count2[0];
//points2[1].X = 140; points2[1].Y = 340 - Count2[1];
// points2[2].X = 220; points2[2].Y = 340 - Count2[2];
// points2[3].X = 300;
// points2[3].Y = 340 - Count2[3];
// points2[4].X = 380; points2[4].Y = 340 - Count2[4];
// points2[5].X = 460;
// points2[5].Y = 340 - Count2[5];
// points2[6].X = 540; points2[6].Y = 340 - Count2[6];
// g.DrawLines(mypen3, points2);?//绘制折线?
points2[0].X = 50; points2[0].Y = 320;
// thread.sleep(int);
// Thread.Sleep(1000);
//Application.DoEvents();
// Delay1(10);
points2[1].X = 60; points2[1].Y = 300;
points2[2].X = 70; points2[2].Y = 310;
points2[3].X = 80; points2[3].Y = 290;
points2[4].X = 90; points2[4].Y = 300;
points2[5].X = 100; points2[5].Y = 330;
points2[6].X = 110; points2[6].Y = 290;
points2[7].X = 120; points2[7].Y = 280;
points2[8].X = 130; points2[8].Y = 300;
points2[9].X = 140; points2[9].Y = 270;
points2[10].X = 150; points2[10].Y = 300;
points2[11].X = 160; points2[11].Y = 260;
points2[12].X = 170; points2[12].Y = 270;
points2[13].X = 180; points2[13].Y = 200;
points2[14].X = 190; points2[14].Y = 210;
points2[15].X = 200; points2[15].Y = 220;
points2[16].X = 210; points2[16].Y = 180;
points2[17].X = 220; points2[17].Y = 160;
g.DrawLines(mypen3, points2);//绘制折线?
}
private void button7_Click_1(object sender, EventArgs e)
{
}
private void button6_Click(object sender, EventArgs e)
{
}
private void button5_Click(object sender, EventArgs e)
{
}
private void button6_Click_1(object sender, EventArgs e)
{
API_PWM_SetDiv(0, 16);
API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
API_BEEP_Delay(50);
//API_PWM_SetDiv(0, 2);2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//
// API_BEEP_Delay(50);
}
private void button7_Click(object sender, EventArgs e)
{
// API_PWM_SetDiv(0, 16);
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// this.timer1.Enabled = true;//可以使用
// GlobalFld.Fld1 = "aaa";
//DrawLines();
// cd.j = "aaa";
// cd();
// rm = "aaa";
// DateTime dt = DateTime.Now;
// datagrid();
// string strtxt = textBox4.Text.ToString();
// FileStream fs1 = new FileStream("ResidentFlash2\\dtm.txt", FileMode.Create, FileAccess.Write);//创建写入文件
// StreamWriter sw = new StreamWriter(fs1);
//sw.WriteLine(this.textBox3.Text.Trim() + "+" + this.textBox4.Text);//开始写入值
//sw.Write(strtxt);//开始写入值
// sw.Write(textBox3.Text);//开始写入值
//sw.Close();
// fs1.Close();
//表示清空 txt
// StreamWriter sw = new StreamWriter("D:\\1.txt");
//string w = "";
//sw.Write(w);
//sw.Close();
//表示向txt写入文本
sjbh1.Text = "BJNH001";
sjcd1.Text = "400";
sjkd1.Text = "100";
sjgd1.Text = "100";
sjzl1.Text = "9.67";
jyry1.Text = "BJNH00A";
clxh1.Text = "2016.3.6";
kspl1.Text = "1000";
jspl1.Text = "3000";
// this.textBox6.SelectedText = dt + "混凝土震动量" + textBox4.Text + ",";
// label2.Text = textBox6.Text;
//listBox1.Text = textBox6.Text;
API_BEEP_Delay(50);
//this.Close();
// Form2 adcform = new Form2();
// adcform.ShowDialog();
// this.close();
//this.Form2.Close;
//adcform.Visible=false;
// adcform.Close();
// adcform.Hide();
//adcform.ShowDialog();
// this.Visible = false;
// Form2.();//退出程序
// Application.Exit();//退出程序
//API_BEEP_Delay(50);
//API_PWM_SetDiv(0, 2);2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//
// API_BEEP_Delay(50);
}
private void button4_Click(object sender, EventArgs e)
{
// API_PWM_SetDiv(0, 16);
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// this.timer1.Enabled = true;//可以使用
// GlobalFld.Fld1 = "aaa";
//DrawLines();
// cd.j = "aaa";
// cd();
// rm = "aaa";
// DateTime dt = DateTime.Now;
// datagrid();
// string strtxt = textBox4.Text.ToString();
// FileStream fs1 = new FileStream("ResidentFlash2\\dtm.txt", FileMode.Create, FileAccess.Write);//创建写入文件
// StreamWriter sw = new StreamWriter(fs1);
//sw.WriteLine(this.textBox3.Text.Trim() + "+" + this.textBox4.Text);//开始写入值
//sw.Write(strtxt);//开始写入值
// sw.Write(textBox3.Text);//开始写入值
//sw.Close();
// fs1.Close();
//表示清空 txt
// StreamWriter sw = new StreamWriter("D:\\1.txt");
//string w = "";
//sw.Write(w);
//sw.Close();
//表示向txt写入文本
StreamWriter sw = new StreamWriter("ResidentFlash2\\sjbh1.txt");
string w = sjbh1.Text;
sw.Write(w);
sw.Close();
StreamWriter sw1 = new StreamWriter("ResidentFlash2\\sjcd1.txt");
string w1 = sjcd1.Text;
sw1.Write(w1);
sw1.Close();
StreamWriter sw2 = new StreamWriter("ResidentFlash2\\sjkd1.txt");
string w2 = sjkd1.Text;
sw2.Write(w2);
sw2.Close();
StreamWriter sw3 = new StreamWriter("ResidentFlash2\\sjgd1.txt");
string w3 = sjgd1.Text;
sw3.Write(w3);
sw3.Close();
StreamWriter sw4 = new StreamWriter("ResidentFlash2\\sjzl1.txt");
string w4 = sjzl1.Text;
sw4.Write(w4);
sw4.Close();
StreamWriter sw5 = new StreamWriter("ResidentFlash2\\jyry1.txt");
string w5 = jyry1.Text;
sw5.Write(w5);
sw5.Close();
StreamWriter sw6 = new StreamWriter("ResidentFlash2\\clxh1.txt");
string w6 = clxh1.Text;
sw6.Write(w6);
sw6.Close();
StreamWriter sw7 = new StreamWriter("ResidentFlash2\\kspl1.txt");
string w7 = kspl1.Text;
sw7.Write(w7);
sw7.Close();
StreamWriter sw8 = new StreamWriter("ResidentFlash2\\jspl1.txt");
string w8 = jspl1.Text;
sw8.Write(w8);
sw8.Close();
//表示追加文本
//StreamWriter sw = File.AppendText("D:\\1.txt");
//StreamWriter sw = File.AppendText("ResidentFlash2\\dtm.txt");
//string w = dt+"混凝土震动量"+textBox4.Text+",";
// string w = dt + "混凝土震动量" + textBox4.Text + ",";
// sw.Write(w);
//sw.Close();
// this.textBox6.SelectedText = dt + "混凝土震动量" + textBox4.Text + ",";
// label2.Text = textBox6.Text;
//listBox1.Text = textBox6.Text;
API_BEEP_Delay(50);
this.Close();
// Form2 adcform = new Form2();
// adcform.ShowDialog();
// this.close();
//this.Form2.Close;
//adcform.Visible=false;
// adcform.Close();
// adcform.Hide();
//adcform.ShowDialog();
// this.Visible = false;
// Form2.();//退出程序
// Application.Exit();//退出程序
//API_BEEP_Delay(50);
//API_PWM_SetDiv(0, 2);2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//
// API_BEEP_Delay(50);
}
private void button5_Click_1(object sender, EventArgs e)
{
API_PWM_SetDiv(0, 2);
API_PWM_Start(0, 3330, 1665); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
API_BEEP_Delay(50);
//API_PWM_SetDiv(0, 2);2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//
// API_BEEP_Delay(50);
}
private void button8_Click(object sender, EventArgs e)
{
API_PWM_SetDiv(0, 2);
API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
API_BEEP_Delay(50);
//API_PWM_SetDiv(0, 2);2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//
// API_BEEP_Delay(50);
}
private void button10_Click(object sender, EventArgs e)
{
API_PWM_SetDiv(0, 2);
API_PWM_Start(0, 1665, 832); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
API_BEEP_Delay(50);
//API_PWM_SetDiv(0, 2);2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//
// API_BEEP_Delay(50);
}
private void timer1_Tick(object sender, EventArgs e)
{
}
public static class GlobalFld
{
public static string Fld1;
}
private void button9_Click(object sender, EventArgs e)
{
// GlobalFld.Fld1 = "aaa";
//DrawLines();
// cd.j = "aaa";
// cd();
// rm = "aaa";
// DateTime dt = DateTime.Now;
// datagrid();
// string strtxt = textBox4.Text.ToString();
// FileStream fs1 = new FileStream("ResidentFlash2\\dtm.txt", FileMode.Create, FileAccess.Write);//创建写入文件
// StreamWriter sw = new StreamWriter(fs1);
//sw.WriteLine(this.textBox3.Text.Trim() + "+" + this.textBox4.Text);//开始写入值
//sw.Write(strtxt);//开始写入值
// sw.Write(textBox3.Text);//开始写入值
//sw.Close();
// fs1.Close();
//表示清空 txt
// StreamWriter sw = new StreamWriter("D:\\1.txt");
//string w = "";
//sw.Write(w);
//sw.Close();
//表示向txt写入文本
// StreamWriter sw = new StreamWriter("ResidentFlash2\\sjbh1.txt");
// string w = sjbh1.Text;
// sw.Write(w);
// sw.Close();
//表示追加文本
//StreamWriter sw = File.AppendText("D:\\1.txt");
//StreamWriter sw = File.AppendText("ResidentFlash2\\dtm.txt");
//string w = dt+"混凝土震动量"+textBox4.Text+",";
// string w = dt + "混凝土震动量" + textBox4.Text + ",";
// sw.Write(w);
//sw.Close();
// this.textBox6.SelectedText = dt + "混凝土震动量" + textBox4.Text + ",";
// label2.Text = textBox6.Text;
//listBox1.Text = textBox6.Text;
this.Close();
API_BEEP_Delay(50);
// Form2 adcform = new Form2();
// adcform.ShowDialog();
// this.close();
//this.Form2.Close;
//adcform.Visible=false;
// adcform.Close();
// adcform.Hide();
//adcform.ShowDialog();
// this.Visible = false;
// Form2.();//退出程序
// Application.Exit();//退出程序
}
private void button11_Click(object sender, EventArgs e)
{
int a, b;
a = 3330;
b = 1665;
API_PWM_SetDiv(0, 2);
API_PWM_Start(0, a, b); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
// if ((a >= 3330) & (a <= 33300) & (b >= 16650) & (b <= 166500))
for (int x = 1; x <= 9000; x++)
//while (a <= 3330)
{
// a ++;
// b ++;
//a += 1;
// b += 1;
//a += 33;
//b += 16;
a =a+ 33;
b =b+ 16;
// API_BEEP_Delay(10);
API_PWM_SetDiv(0, 2);
API_PWM_Start(0, a, b); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//this.timer1.Enabled = true;//可以使用
//API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
}
//API_PWM_SetDiv(0, 2);2850656057
// API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//
API_BEEP_Delay(50);
}
private void button12_Click(object sender, EventArgs e)
{
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 33300, 16650); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
API_BEEP_Delay(100);
API_PWM_SetDiv(0, 2);//2850656057
API_PWM_Start(0, 3330, 1665); //PWM计算方法是66.6MHZ 除以DIV CNTB,此例分别为2,和33300
//
API_BEEP_Delay(100);
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
StreamWriter sw1 = new StreamWriter("ResidentFlash2\\HZXZ1.txt");
string w1 = "130";
sw1.Write(w1);
sw1.Close();
StreamWriter sw2 = new StreamWriter("ResidentFlash2\\HZXZ2.txt");
string w2 = "1000";
sw2.Write(w2);
sw2.Close();
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
StreamWriter sw1 = new StreamWriter("ResidentFlash2\\HZXZ1.txt");
string w1 = "1000";
sw1.Write(w1);
sw1.Close(); StreamWriter sw2 = new StreamWriter("ResidentFlash2\\HZXZ2.txt");
string w2 = "3000";
sw2.Write(w2);
sw2.Close();
}
private void radioButton3_CheckedChanged(object sender, EventArgs e)
{
StreamWriter sw1 = new StreamWriter("ResidentFlash2\\HZXZ1.txt");
string w1 = "3000";
sw1.Write(w1);
sw1.Close(); StreamWriter sw2 = new StreamWriter("ResidentFlash2\\HZXZ2.txt");
string w2 = "6000";
sw2.Write(w2);
sw2.Close();
}
private void radioButton4_CheckedChanged(object sender, EventArgs e)
{
StreamWriter sw1 = new StreamWriter("ResidentFlash2\\HZXZ1.txt");
string w1 = "6000";
sw1.Write(w1);
sw1.Close(); StreamWriter sw2 = new StreamWriter("ResidentFlash2\\HZXZ2.txt");
string w2 = "10000";
sw2.Write(w2);
sw2.Close();
}
private void radioButton5_CheckedChanged(object sender, EventArgs e)
{
StreamWriter sw1 = new StreamWriter("ResidentFlash2\\HZXZ1.txt");
string w1 = "130";
sw1.Write(w1);
sw1.Close(); StreamWriter sw2 = new StreamWriter("ResidentFlash2\\HZXZ2.txt");
string w2 = "10000";
sw2.Write(w2);
sw2.Close();
}
private void kspl1_TextChanged(object sender, EventArgs e)
{
StreamWriter sw9 = new StreamWriter("ResidentFlash2\\HZXZ1.txt");
string w9 = kspl1.Text;
sw9.Write(w9);
sw9.Close();
}
private void jspl1_TextChanged(object sender, EventArgs e)
{
StreamWriter sw10 = new StreamWriter("ResidentFlash2\\HZXZ2.txt");
string w10 = jspl1.Text;
sw10.Write(w10);
sw10.Close();
}
namespace SmartDeviceProject5
{
partial class Form2
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void dispose(bool disposing)
{
if (disposing && (components != null))
{
components.dispose();
}
base.dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.label4 = new System.Windows.Forms.Label();
this.radioButton3 = new System.Windows.Forms.RadioButton();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.clxh1 = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.sjcd1 = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.sjzl1 = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.sjbh1 = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.jyry1 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.sjkd1 = new System.Windows.Forms.TextBox();
this.label20 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.sjgd1 = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.kspl1 = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.jspl1 = new System.Windows.Forms.TextBox();
this.button4 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.label16 = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer();
this.label19 = new System.Windows.Forms.Label();
this.radioButton4 = new System.Windows.Forms.RadioButton();
this.label22 = new System.Windows.Forms.Label();
this.radioButton5 = new System.Windows.Forms.RadioButton();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(455, 20);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(108, 20);
this.label1.Text = "自动选择";
//
// radioButton1
//
this.radioButton1.Location = new System.Drawing.Point(455, 43);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(25, 23);
this.radioButton1.TabIndex = 215;
this.radioButton1.TabStop = false;
this.radioButton1.Text = "radioButton1";
this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
//
// label2
//
this.label2.Location = new System.Drawing.Point(485, 46);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(108, 20);
this.label2.Text = "125--1000Hz";
//
// label3
//
this.label3.Location = new System.Drawing.Point(485, 74);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(108, 20);
this.label3.Text = "1000--3000Hz";
//
// radioButton2
//
this.radioButton2.Location = new System.Drawing.Point(455, 69);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(25, 23);
this.radioButton2.TabIndex = 219;
this.radioButton2.TabStop = false;
this.radioButton2.Text = "radioButton2";
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
//
// label4
//
this.label4.Location = new System.Drawing.Point(486, 103);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(108, 20);
this.label4.Text = "3000--6000HZ";
//
// radioButton3
//
this.radioButton3.Location = new System.Drawing.Point(455, 99);
this.radioButton3.Name = "radioButton3";
this.radioButton3.Size = new System.Drawing.Size(25, 23);
this.radioButton3.TabIndex = 222;
this.radioButton3.TabStop = false;
this.radioButton3.Text = "radioButton3";
this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged);
//
// label17
//
this.label17.Location = new System.Drawing.Point(190, 56);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(36, 26);
this.label17.Text = "mm";
//
// label18
//
this.label18.Location = new System.Drawing.Point(189, 152);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(36, 26);
this.label18.Text = "kg";
//
// label13
//
this.label13.Location = new System.Drawing.Point(231, 56);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(85, 26);
this.label13.Text = "测量序号:";
//
// clxh1
//
this.clxh1.Location = new System.Drawing.Point(322, 56);
this.clxh1.Multiline = true;
this.clxh1.Name = "clxh1";
this.clxh1.Size = new System.Drawing.Size(91, 26);
this.clxh1.TabIndex = 244;
this.clxh1.Text = "2016.3.6";
//
// label9
//
this.label9.Location = new System.Drawing.Point(9, 56);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(81, 26);
this.label9.Text = "试件长度:";
//
// sjcd1
//
this.sjcd1.Location = new System.Drawing.Point(100, 56);
this.sjcd1.Multiline = true;
this.sjcd1.Name = "sjcd1";
this.sjcd1.Size = new System.Drawing.Size(88, 26);
this.sjcd1.TabIndex = 240;
this.sjcd1.Text = "400";
//
// label10
//
this.label10.Location = new System.Drawing.Point(8, 152);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(81, 26);
this.label10.Text = "试件质量:";
//
// sjzl1
//
this.sjzl1.Location = new System.Drawing.Point(99, 152);
this.sjzl1.Multiline = true;
this.sjzl1.Name = "sjzl1";
this.sjzl1.Size = new System.Drawing.Size(89, 26);
this.sjzl1.TabIndex = 239;
this.sjzl1.Text = "9.67";
//
// label7
//
this.label7.Location = new System.Drawing.Point(8, 20);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(85, 26);
this.label7.Text = "试件编号:";
//
// sjbh1
//
this.sjbh1.Location = new System.Drawing.Point(99, 20);
this.sjbh1.Multiline = true;
this.sjbh1.Name = "sjbh1";
this.sjbh1.Size = new System.Drawing.Size(89, 26);
this.sjbh1.TabIndex = 238;
this.sjbh1.Text = "BJNH001";
//
// label8
//
this.label8.Location = new System.Drawing.Point(231, 20);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(81, 26);
this.label8.Text = "检验人员:";
//
// jyry1
//
this.jyry1.Location = new System.Drawing.Point(322, 20);
this.jyry1.Multiline = true;
this.jyry1.Name = "jyry1";
this.jyry1.Size = new System.Drawing.Size(88, 26);
this.jyry1.TabIndex = 237;
this.jyry1.Text = "BJNH00A";
//
// label5
//
this.label5.Location = new System.Drawing.Point(190, 88);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(36, 26);
this.label5.Text = "mm";
//
// label6
//
this.label6.Location = new System.Drawing.Point(9, 88);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(81, 26);
this.label6.Text = "试件宽度:";
//
// sjkd1
//
this.sjkd1.Location = new System.Drawing.Point(100, 88);
this.sjkd1.Multiline = true;
this.sjkd1.Name = "sjkd1";
this.sjkd1.Size = new System.Drawing.Size(88, 26);
this.sjkd1.TabIndex = 260;
this.sjkd1.Text = "100";
//
// label20
//
this.label20.Location = new System.Drawing.Point(190, 120);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(36, 26);
this.label20.Text = "mm";
//
// label21
//
this.label21.Location = new System.Drawing.Point(9, 120);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(81, 26);
this.label21.Text = "试件高度:";
//
// sjgd1
//
this.sjgd1.Location = new System.Drawing.Point(100, 120);
this.sjgd1.Multiline = true;
this.sjgd1.Name = "sjgd1";
this.sjgd1.Size = new System.Drawing.Size(88, 26);
this.sjgd1.TabIndex = 265;
this.sjgd1.Text = "100";
//
// label11
//
this.label11.Location = new System.Drawing.Point(415, 120);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(36, 26);
this.label11.Text = "Hz";
//
// label12
//
this.label12.Location = new System.Drawing.Point(234, 120);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(81, 26);
this.label12.Text = "开始频率:";
//
// kspl1
//
this.kspl1.Location = new System.Drawing.Point(325, 120);
this.kspl1.Multiline = true;
this.kspl1.Name = "kspl1";
this.kspl1.Size = new System.Drawing.Size(88, 26);
this.kspl1.TabIndex = 270;
this.kspl1.Text = "1000";
this.kspl1.TextChanged += new System.EventHandler(this.kspl1_TextChanged);
//
// label14
//
this.label14.Location = new System.Drawing.Point(415, 152);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(36, 26);
this.label14.Text = "Hz";
//
// label15
//
this.label15.Location = new System.Drawing.Point(234, 152);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(81, 26);
this.label15.Text = "结束频率:";
//
// jspl1
//
this.jspl1.Location = new System.Drawing.Point(325, 152);
this.jspl1.Multiline = true;
this.jspl1.Name = "jspl1";
this.jspl1.Size = new System.Drawing.Size(88, 26);
this.jspl1.TabIndex = 275;
this.jspl1.Text = "3000";
this.jspl1.TextChanged += new System.EventHandler(this.jspl1_TextChanged);
//
// button4
//
this.button4.Location = new System.Drawing.Point(85, 204);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(85, 39);
this.button4.TabIndex = 278;
this.button4.Text = "确定设置";
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button7
//
this.button7.Location = new System.Drawing.Point(217, 204);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(85, 39);
this.button7.TabIndex = 279;
this.button7.Text = "重新设置";
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button9
//
this.button9.Location = new System.Drawing.Point(345, 204);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(85, 39);
this.button9.TabIndex = 280;
this.button9.Text = "返回";
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// label16
//
this.label16.Location = new System.Drawing.Point(235, 88);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(81, 26);
this.label16.Text = "手动设置:";
//
// timer1
//
this.timer1.Interval = 10000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// label19
//
this.label19.Location = new System.Drawing.Point(486, 131);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(108, 20);
this.label19.Text = "6000-10000HZ";
//
// radioButton4
//
this.radioButton4.Location = new System.Drawing.Point(455, 128);
this.radioButton4.Name = "radioButton4";
this.radioButton4.Size = new System.Drawing.Size(25, 23);
this.radioButton4.TabIndex = 350;
this.radioButton4.TabStop = false;
this.radioButton4.Text = "radioButton4";
this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged);
//
// label22
//
this.label22.Location = new System.Drawing.Point(483, 158);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(108, 20);
this.label22.Text = "130-10000HZ";
//
// radioButton5
//
this.radioButton5.Location = new System.Drawing.Point(452, 155);
this.radioButton5.Name = "radioButton5";
this.radioButton5.Size = new System.Drawing.Size(25, 23);
this.radioButton5.TabIndex = 372;
this.radioButton5.TabStop = false;
this.radioButton5.Text = "radioButton5";
this.radioButton5.CheckedChanged += new System.EventHandler(this.radioButton5_CheckedChanged);
//
// Form2
//
this.AutoScaleDimensions = new System.Drawing.Sizef(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(591, 281);
this.Controls.Add(this.label22);
this.Controls.Add(this.radioButton5);
this.Controls.Add(this.label19);
this.Controls.Add(this.radioButton4);
this.Controls.Add(this.label16);
this.Controls.Add(this.button9);
this.Controls.Add(this.button7);
this.Controls.Add(this.button4);
this.Controls.Add(this.label14);
this.Controls.Add(this.label15);
this.Controls.Add(this.jspl1);
this.Controls.Add(this.label11);
this.Controls.Add(this.label12);
this.Controls.Add(this.kspl1);
this.Controls.Add(this.label20);
this.Controls.Add(this.label21);
this.Controls.Add(this.sjgd1);
this.Controls.Add(this.label5);
this.Controls.Add(this.label6);
this.Controls.Add(this.sjkd1);
this.Controls.Add(this.label17);
this.Controls.Add(this.label18);
this.Controls.Add(this.label13);
this.Controls.Add(this.clxh1);
this.Controls.Add(this.label9);
this.Controls.Add(this.sjcd1);
this.Controls.Add(this.label10);
this.Controls.Add(this.sjzl1);
this.Controls.Add(this.label7);
this.Controls.Add(this.sjbh1);
this.Controls.Add(this.label8);
this.Controls.Add(this.jyry1);
this.Controls.Add(this.label4);
this.Controls.Add(this.radioButton3);
this.Controls.Add(this.label3);
this.Controls.Add(this.radioButton2);
this.Controls.Add(this.label2);
this.Controls.Add(this.radioButton1);
this.Controls.Add(this.label1);
this.Name = "Form2";
this.Text = "新建实验";
this.Load += new System.EventHandler(this.Form2_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.RadioButton radioButton3;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label13;
public System.Windows.Forms.TextBox clxh1;
private System.Windows.Forms.Label label9;
public System.Windows.Forms.TextBox sjcd1;
private System.Windows.Forms.Label label10;
public System.Windows.Forms.TextBox sjzl1;
private System.Windows.Forms.Label label7;
public System.Windows.Forms.TextBox sjbh1;
private System.Windows.Forms.Label label8;
public System.Windows.Forms.TextBox jyry1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
public System.Windows.Forms.TextBox sjkd1;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label21;
public System.Windows.Forms.TextBox sjgd1;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
public System.Windows.Forms.TextBox kspl1;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
public System.Windows.Forms.TextBox jspl1;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.RadioButton radioButton4;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.RadioButton radioButton5;
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
varIoUs data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.soap.soapformatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="Metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<Metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>124, 17</value>
</Metadata>
<Metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
<value>WEBPAD</value>
</Metadata>
<Metadata name="$this.Skin" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</Metadata>
</root>
Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Toolsversion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">Anycpu</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{810D79AE-6B75-4A2C-B710-260332102F11}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SmartDeviceProject5</RootNamespace>
<AssemblyName>SmartDeviceProject5</AssemblyName>
<ProjectTypeGuids>{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PlatformFamilyName>WindowsCE</PlatformFamilyName>
<PlatformID>E2BECB1F-8C8C-41ba-B736-9BE7D946A398</PlatformID>
<Osversion>5.0</Osversion>
<DeployDirsuffix>SmartDeviceProject5</DeployDirsuffix>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<NativePlatformName>Windows CE</NativePlatformName>
<FormFactorID>
</FormFactorID>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|Anycpu' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;$(PlatformFamilyName)</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<FileAlignment>512</FileAlignment>
<WarningLevel>4</WarningLevel>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|Anycpu' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;$(PlatformFamilyName)</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<FileAlignment>512</FileAlignment>
<WarningLevel>4</WarningLevel>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Content Include="HDI_API.dll">
<copyToOutputDirectory>Always</copyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}">
<HostingProcess disable="1" />
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Deploydeviceid>a6af6c6a-0178-4176-ac1a-8e9774bdb3316518ffc-710f-11d3-99f2-00105a0df099</Deploydeviceid>
</PropertyGroup>
</Project>
using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows.Forms;
namespace SmartDeviceProject5
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[MTAThread]
static void Main()
{
Application.Run(new Form1());
}
}
}
Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Toolsversion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">Anycpu</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{810D79AE-6B75-4A2C-B710-260332102F11}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SmartDeviceProject5</RootNamespace>
<AssemblyName>SmartDeviceProject5</AssemblyName>
<ProjectTypeGuids>{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PlatformFamilyName>WindowsCE</PlatformFamilyName>
<PlatformID>E2BECB1F-8C8C-41ba-B736-9BE7D946A398</PlatformID>
<Osversion>5.0</Osversion>
<DeployDirsuffix>SmartDeviceProject5</DeployDirsuffix>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<NativePlatformName>Windows CE</NativePlatformName>
<FormFactorID>
</FormFactorID>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|Anycpu' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;$(PlatformFamilyName)</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<FileAlignment>512</FileAlignment>
<WarningLevel>4</WarningLevel>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|Anycpu' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;$(PlatformFamilyName)</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<FileAlignment>512</FileAlignment>
<WarningLevel>4</WarningLevel>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data.sqlite, Version=1.0.96.0, Culture=neutral, PublicKeyToken=1fdb50b1b62b4c84, processorArchitecture=MSIL" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Draw.cs" />
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Form2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Content Include="HDI_API.dll">
<copyToOutputDirectory>Always</copyToOutputDirectory>
</Content>
<Content Include="sqlite.Interop.096.dll">
<copyToOutputDirectory>PreserveNewest</copyToOutputDirectory>
</Content>
<Content Include="System.Data.sqlite.dll">
<copyToOutputDirectory>PreserveNewest</copyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}">
<HostingProcess disable="1" />
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Deploydeviceid>81551346-886F-43a2-B707-A91FAE1B33A7</Deploydeviceid>
</PropertyGroup>
</Project>
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmartDeviceProject5", "SmartDeviceProject5\SmartDeviceProject5.csproj", "{810D79AE-6B75-4A2C-B710-260332102F11}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any cpu = Debug|Any cpu
Release|Any cpu = Release|Any cpu
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{810D79AE-6B75-4A2C-B710-260332102F11}.Debug|Any cpu.ActiveCfg = Debug|Any cpu
{810D79AE-6B75-4A2C-B710-260332102F11}.Debug|Any cpu.Build.0 = Debug|Any cpu
{810D79AE-6B75-4A2C-B710-260332102F11}.Debug|Any cpu.Deploy.0 = Debug|Any cpu
{810D79AE-6B75-4A2C-B710-260332102F11}.Release|Any cpu.ActiveCfg = Release|Any cpu
{810D79AE-6B75-4A2C-B710-260332102F11}.Release|Any cpu.Build.0 = Release|Any cpu
{810D79AE-6B75-4A2C-B710-260332102F11}.Release|Any cpu.Deploy.0 = Release|Any cpu
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
|
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。